Cargo Features
[dependencies]
light-sdk = { version = "0.11.0", default-features = false, features = ["no-entrypoint", "no-log-ix-name", "cpi", "custom-heap", "bench-sbf", "idl-build", "legacy"] }
- default = custom-heap
-
The
custom-heap
feature is set by default wheneverlight-sdk
is added without
somewhere in the dependency tree.default-features = false - no-entrypoint cpi?
- no-idl no-log-ix-name
- cpi = no-entrypoint
- custom-heap default = light-heap
- mem-profiling test-sbf bench-sbf
- idl-build
-
Enables idl-build of anchor-lang =0.29.0
Anchor
- legacy = account-compression, light-system-program
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.