Cargo Features
[dependencies]
scrypto-compiler = { version = "1.3.0", default-features = false, features = ["std", "alloc"] }
- default = std
-
The
std
feature is set by default wheneverscrypto-compiler
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of radix-common, moka and std of radix-engine, std of radix-engine-interface, radix-rust, and serde_json
Affects
scrypto-compiler::is_scrypto_cargo_locked_env_var_active
… - alloc
-
Enables alloc of radix-common, alloc and lru of radix-engine and alloc of radix-engine-interface, radix-rust, and serde_json
serde_json:
Provide integration for heap-allocated collections without depending on the rest of the Rust standard library. NOTE: Disabling both
std
andalloc
features is not supported yet.