Cargo Features

[dependencies]
ac-node-api = { version = "1.16.0", default-features = false, features = ["disable_target_static_assertions", "std", "mocks"] }
default = std

The std feature is set by default whenever ac-node-api 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

Enables either and std of bitvec and parity-scale-codec

bitvec:

The standard library includes the allocator.

and std of sp-core ^34.0.0, sp-runtime ^39.0.1, sp-runtime-interface ^28.0.0, and sp-storage ^21.0.0

sp-core:

substrate

and std of frame-metadata ^16.0, hex, log, scale-info, serde, serde_json, and sp-application-crypto ^38.0.0

sp-application-crypto:

need to add this for no_std

mocks

Enable import of test_utils also outside of crate (feature test does not allow to do so).