Cargo Features
[dependencies]
stratum-server = { version = "5.7.5", default-features = false, features = ["api", "tcp", "btcagent", "v1", "dhat-heap"] }
- default = api, tcp, v1
-
These default features are set whenever
stratum-server
is added without
somewhere in the dependency tree.default-features = false - api default = axum, hyper, tower-http
-
Affects
builder::StratumServerBuilder.api_host
,builder::StratumServerBuilder.api_port
… - tcp default
- upstream btcagent
- v1 default
- v2 dhat-heap
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.
- axum api
-
Enables axum
API
- hyper api
- tower-http api
-
Enables tower-http ^0.5.1