Cargo Features
[dependencies]
cargo-contract = { version = "5.0.2", default-features = false, features = ["std", "test-ci-only", "integration-tests"] }
- default = std
-
This
std
feature is required for testing using an inline contract's metadata, becauseink!
annotates the metadata generation code with#[cfg(feature = "std")]
. - std default
- test-ci-only
-
Enable this to execute long running tests, which usually are only run on the CI server
Disabled by default - integration-tests
-
Enable this to execute tests which depend on a locally running contracts enabed chain e.g.https://github.com/paritytech/substrate-contracts-node