forked from anza-xyz/agave
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SVM: Move protobuf into separate conformance crate (anza-xyz#1946)
* init svm-conformance crate * svm-conformance: add protos * svm: use svm-conformance for tests * svm: drop protos
- Loading branch information
1 parent
f8deb45
commit 2d71367
Showing
13 changed files
with
54 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "solana-svm-conformance" | ||
description = "Solana SVM conformance" | ||
documentation = "https://docs.rs/solana-svm-conformance" | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
edition = { workspace = true } | ||
publish = false | ||
|
||
[dependencies] | ||
prost = { workspace = true } | ||
prost-types = { workspace = true } | ||
|
||
[build-dependencies] | ||
prost-build = { workspace = true } | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
fn main() { | ||
let proto_base_path = std::path::PathBuf::from("proto"); | ||
let protos = ["context.proto", "invoke.proto", "sysvar.proto", "txn.proto"]; | ||
let protos_path: Vec<_> = protos | ||
.iter() | ||
.map(|name| proto_base_path.join(name)) | ||
.collect(); | ||
|
||
protos_path | ||
.iter() | ||
.for_each(|proto| println!("cargo:rerun-if-changed={}", proto.display())); | ||
|
||
prost_build::compile_protos(protos_path.as_ref(), &[proto_base_path]) | ||
.expect("Failed to compile protobuf files"); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub mod proto { | ||
include!(concat!(env!("OUT_DIR"), "/org.solana.sealevel.v1.rs")); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters