pub struct BuildInfo {
pub build_environment: String,
pub build_command: Vec<String>,
pub contract_path: String,
pub source_code_snapshot: String,
pub output_wasm_path: Option<String>,
}Expand description
Defines all required details for formal WASM build reproducibility verification according to NEP-330 standard 1.3.0 revision
Fields§
§build_environment: StringReference to a reproducible build environment docker image
§Examples:
"sourcescan/cargo-near:0.13.3-rust-1.84.0@sha256:722198ddb92d1b82cbfcd3a4a9f7fba6fd8715f4d0b5fb236d8725c4883f97de".into()build_command: Vec<String>The exact command that was used to build the contract, with all the flags
§Examples:
vec![
"cargo".into(),
"near".into(),
"build".into(),
"non-reproducible-wasm".into(),
"--locked".into()
]contract_path: StringRelative path to contract crate within the source code
§Examples:
"near/omni-prover/wormhole-omni-prover-proxy".into()// root of a repo
"".into()source_code_snapshot: StringReference to the source code snapshot that was used to build the contract
§Examples:
"git+https://github.com/org/repo?rev=8d8a8a0fe86a1d8eb3bce45f04ab1a65fecf5a1b".into()output_wasm_path: Option<String>A path within the build environment, where the result WASM binary has been put
during build.
This should be a subpath of /home/near/code
This field is an addition of 1.3.0 NEP-330 revision
§Examples:
Some("/home/near/code/target/near/simple_package.wasm".into())Trait Implementations§
Source§impl<'de> Deserialize<'de> for BuildInfo
impl<'de> Deserialize<'de> for BuildInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BuildInfo
impl StructuralPartialEq for BuildInfo
Auto Trait Implementations§
impl Freeze for BuildInfo
impl RefUnwindSafe for BuildInfo
impl Send for BuildInfo
impl Sync for BuildInfo
impl Unpin for BuildInfo
impl UnwindSafe for BuildInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more