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 ^28.0.0

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

Enables std of sp-application-crypto ^38.0.0

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 ^34.0.0, sp-crypto-hashing, sp-runtime ^39.0.1, sp-staking ^36.0.0, sp-version ^37.0.0, 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 ^38.0.0

substrate std / wasm only

pallet-assets std

Enables pallet-assets ^40.0.0

pallet-balances std

Enables pallet-balances ^39.0.0

pallet-contracts contracts-xt?

Enables pallet-contracts ^38.0.0

pallet-staking staking-xt?

Enables pallet-staking ^38.0.0