Cargo Features

[dependencies]
ac-primitives = { version = "0.9.1", default-features = false, features = ["disable_target_static_assertions", "std", "staking-xt", "contracts-xt"] }
default = std

The std feature is set by default whenever ac-primitives is added without default-features = false somewhere in the dependency tree.

disable_target_static_assertions

To support no_std builds in non-32 bit environments.

Enables disable_target_static_assertions of sp-runtime-interface ^26.0

std default contracts-xt? staking-xt? = frame-system, pallet-assets, pallet-balances

Enables std of sp-application-crypto ^32.0

need to add this for the app_crypto macro

and std of parity-scale-codec, primitive-types, scale-info, serde, and serde_json

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

and std of sp-core ^30.0, sp-crypto-hashing, sp-runtime ^33.0, sp-staking ^28.0, sp-version ^31.0, and sp-weights ^29.0

sp-core:

substrate no_std

staking-xt = pallet-staking, std
contracts-xt = pallet-contracts, std

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.

frame-system std

Enables frame-system ^30.0

substrate std / wasm only

pallet-assets std

Enables pallet-assets ^31.0

pallet-balances std

Enables pallet-balances ^30.0

pallet-contracts contracts-xt?

Enables pallet-contracts ^29.0

pallet-staking staking-xt?

Enables pallet-staking ^30.0