Cargo Features

[dependencies]
smoldot = { version = "0.18.0", default-features = false, features = ["std", "database-sqlite", "wasmtime"] }
default = database-sqlite, std, wasmtime

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

std default database-sqlite wasmtime = futures-util

Enables pin-project, soketto, thread-pool of futures-executor and getrandom of schnorrkel

schnorrkel:

We cannot make getrandom a direct dependency because rand_core makes getrandom a feature name, which requires forwarding.

database-sqlite default = std

Enables parking_lot and rusqlite ^0.31.0

rusqlite:

database-sqlite feature

wasmtime default = std

Enables wasmtime ^21.0.0

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.

futures-util std

Enables futures-util

std feature Add here the crates that cannot function without the help of the operating system or environment. TODO: slim down these features