Cargo Features

[dependencies]
positions = { version = "0.2.1", default-features = false, features = ["std", "alloc", "serde"] }
default = std

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

std default = alloc, thiserror

Enables std of optional serde and optional smol_str ^0.1.23

serde:

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

alloc std = hashbrown, smol_str

Enables alloc of optional serde

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

Affects positions::position, positions::asset, positions::instrument, positions::tree, positions::prelude

serde = serde_with

Enables serde, serde of optional hashbrown ^0.13.1, serde of optional smol_str ^0.1.23

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.

smol_str alloc?

Enables smol_str ^0.1.23

serde_with serde?

Enables serde_with ^2.1

hashbrown alloc?

Enables hashbrown ^0.13.1

thiserror std