Cargo Features

[dependencies]
polymesh-api-client = { version = "3.8.2", default-features = false, features = ["std", "wasm", "type_info", "serde", "v12", "v13", "v14", "utoipa"] }
default = serde, std, type_info, v12, v13, v14

These default features are set whenever polymesh-api-client is added without default-features = false somewhere in the dependency tree.

std default

Enables native of subxt-signer ^0.33, std of uuid and std of parity-scale-codec, frame-metadata =15.1.0, scale-info, sp-arithmetic ^21.0, sp-core ^26.0, sp-runtime ^29.0, sp-std ^12.0, and sp-weights ^25.0

parity-scale-codec:

substrate

Affects polymesh-api-client::lockable_signer, signer::DefaultSigner

wasm = v14

Enables web of subxt-signer ^0.33 and full_crypto of sp-application-crypto ^28.0

sp-application-crypto:

This feature enables all crypto primitives for no_std builds like microcontrollers or Intel SGX. For the regular wasm runtime builds this should not be used.

type_info default = scale-info, serde

Enables scale-info of primitive-types ^0.12.0

Affects polymesh-api-client::type_def, polymesh-api-client::type_codec, polymesh-api-client::schema, polymesh-api-client::metadata

serde default type_info = impl-serde, serde-big-array

Enables serde of hex, impl-serde of primitive-types ^0.12.0, impl-serde and serde of sp-core ^26.0, serde of sp-runtime ^29.0, sp-weights ^25.0, and uuid and serde of sp-application-crypto ^28.0 and sp-arithmetic ^21.0

sp-application-crypto:

Serde support without relying on std features.

Affects basic_types::AccountTraits, block::block_number, client::RuntimeVersion.extra, transaction::RuntimeTraits

v12 default

Enables v12 of frame-metadata =15.1.0

v13 default

Enables v13 of frame-metadata =15.1.0

v14 default wasm?

Enables v14 of frame-metadata =15.1.0

Affects schema::is_type_compact, schema::get_type_name

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.

impl-serde serde

Enables impl-serde ^0.3.1

serde-big-array serde

Enables serde-big-array ^0.4.1

scale-info std type_info
utoipa implicit feature

Enables utoipa ^4.1

utoipa:

Compile time generated OpenAPI documentation for Rust