6 releases
new 0.3.2 | Nov 19, 2024 |
---|---|
0.3.1 | Nov 14, 2024 |
0.3.0 | Oct 30, 2024 |
0.2.0 | Oct 16, 2024 |
0.1.1 | Sep 13, 2024 |
#657 in Magic Beans
3,715 downloads per month
Used in 4 crates
(2 directly)
145KB
3.5K
SLoC
Crate features
- build_script - Adds [extended] module for use in build scripts
- abi_build - Additional functionality, needed for build of ABI separately
- docker -
Adds
docker
module for functionality of building in docker with WASM reproducibility.
Default features
None are enabled by default
Re-exports
- [camino] is re-exported, because it is used in [BuildOpts], and [BuildArtifact] as type of some of fields
- [near_abi] is re-exported, because details of ABI generated depends on specific version of
near-abi
dependency - [bon] is re-exported for the convenience of bon::vec helper macro
Sample usage:
Default:
let artifact = cargo_near_build::build(Default::default()).expect("some error during build");
With some options set:
let build_opts = cargo_near_build::BuildOpts::builder().features("some_contract_feature_1").build();
let artifact = cargo_near_build::build(build_opts).expect("some error during build");
Dependencies
~16–28MB
~468K SLoC