Cargo Features

[dependencies]
cairo-lang-utils = { version = "2.17.0-rc.0", default-features = false, features = ["std", "parity-scale-codec", "schemars", "serde", "tracing", "testing"] }
default = std, tracing

These default features are set whenever cairo-lang-utils is added without default-features = false somewhere in the dependency tree.

std default schemars? tracing = salsa, vector-map

Enables std of indexmap, num-bigint, num-traits, optional serde, and smol_str

serde:

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

Affects cairo-lang-utils::graph_algos, cairo-lang-utils::heap_size, cairo-lang-utils::small_ordered_map, cairo-lang-utils::CloneableDatabase, cairo-lang-utils::Intern, unordered_hash_set::UnorderedHashSet

parity-scale-codec

Enables parity-scale-codec

Optional

schemars = serde, std

Enables schemars

serde schemars?

Enables serde, serde of smol_str, serde of indexmap and num-bigint

Affects bigint::serialize_big_uint, bigint::deserialize_big_uint, bigint::serialize_big_int, bigint::deserialize_big_int, bigint::serialize_big_ints, bigint::deserialize_big_ints

tracing default = std

Enables tracing, tracing-log, and tracing-subscriber

Affects cairo-lang-utils::logging

testing

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.

salsa std
vector-map std