Skip to content

Commit

Permalink
fix cargo near build
Browse files Browse the repository at this point in the history
  • Loading branch information
akorchyn committed Aug 14, 2024
1 parent a576b37 commit ea8411f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ edition.workspace = true
license.workspace = true
authors.workspace = true

# fields to configure build with WASM reproducibility, according to specs
# in https://github.com/near/NEPs/blob/master/neps/nep-0330.md
[package.metadata.near.reproducible_build]
# docker image, descriptor of build environment
image = "sourcescan/cargo-near:git-e3c8adb4b5542cbfc159bb1534f2b94c900c1648-1.80.0"
# tag after colon above serves only descriptive purpose; image is identified by digest
image_digest = "sha256:4bbcdf985936e1cb9b71c627a00cb9b53546ac0c9ef6b175da2918c1dea21363"
# build command inside of docker container
# if docker image from default gallery is used https://hub.docker.com/r/sourcescan/cargo-near/tags,
# the command may be any combination of flags of `cargo-near`,
# supported by respective version of binary inside the container besides `--no-locked` flag
container_build_command = ["cargo", "near", "build"]


[lib]
crate-type = ["cdylib"]

Expand Down

0 comments on commit ea8411f

Please sign in to comment.