Cargo Features

[dependencies]
ac-node-api = { version = "0.6.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 ^26.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 ^30.0, sp-runtime ^33.0, sp-runtime-interface ^26.0, and sp-storage ^20.0

sp-core:

substrate

and std of frame-metadata, hex, log, scale-info, serde, serde_json, and sp-application-crypto ^32.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).