Cargo Features

[dependencies]
ink_primitives = { version = "6.0.0-alpha", default-features = false, features = ["std"] }
default = std

The std feature is set by default whenever ink_primitives is added without default-features = false somewhere in the dependency tree.

std default = scale-encode, serde

Enables scale-info and std of primitive-types, std of alloy-sol-types, derive_more, ink_prelude, num-traits, and pallet-revive and std of parity-scale-codec, scale-decode ^0.14.0, scale-info, serde, sp-core, sp-io, sp-runtime-interface, xxhash-rust, and optional scale-encode ^0.8.0

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

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.

scale-encode std

Enables scale-encode ^0.8.0

scale-info std
serde std