Cargo Features

[dependencies]
gearbox = { version = "1.0.4", default-features = false, features = ["std", "web", "web-storage", "http-request", "http", "net-signature", "common-dirs", "did", "sign-toml", "sign-yaml", "sign-json", "sign-query-string", "full"] }
default = common-dirs, did, http-request, net-signature, std, web

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

std default

Affects hostname::gethostname, storage::io

web default full? = js-sys, web-storage, web-sys

Affects storage::web, web::local_storage

web-storage web

Enables Storage and Window of web-sys

These are mainly used for "web" feature

Affects web::local_storage

http-request default full? = http

Affects net::http

http full? http-request = reqwest
net-signature default full? = base64, bs58, hex, hmac, sha2, sign-json, sign-query-string, sign-toml, sign-yaml, simple_serde

Affects request_builder::RequestBuilder.signature, net::signature

common-dirs default = dirs
did default = didkit

Affects gearbox::did

sign-toml net-signature

Enables toml of simple_serde

sign-yaml net-signature

Enables yaml of simple_serde

sign-json net-signature

Enables json of simple_serde

sign-query-string net-signature

Enables query-string of simple_serde

full = http, http-request, net-signature, web

This is for activating all features for the current Arch

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.

dirs common-dirs

Enables dirs

These are mainly used for "dirs" feature

reqwest http?

Enables reqwest

These are mainly used for "http-request" feature

hex net-signature

Enables hex

These are mainly used for "net-signature" feature

base64 net-signature
hmac net-signature
sha2 net-signature
bs58 net-signature
simple_serde net-signature sign-json? sign-query-string? sign-toml? sign-yaml?
didkit did

Enables didkit

These are mainly used for "DID" feature

web-sys web web-storage?
js-sys web