Cargo Features

[dependencies]
ac-primitives = { version = "1.16.0", default-features = false, features = ["disable_target_static_assertions", "std", "disable-metadata-hash-check", "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

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

Enables std of sp-application-crypto

need to add this for the app_crypto macro

and std of parity-scale-codec, primitive-types ^0.12.1, 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, sp-crypto-hashing, sp-runtime, sp-staking, sp-version, and sp-weights

sp-core:

substrate no_std

disable-metadata-hash-check

Affects extrinsic_params::GenericSignedExtra.check_hash, extrinsic_params::GenericAdditionalSigned

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

substrate std / wasm only

pallet-assets std
pallet-balances std
pallet-contracts contracts-xt?
pallet-staking staking-xt?