Cargo Features
[dependencies]
nostr-extensions = { version = "0.4.7", default-features = false, features = ["search", "metrics", "rate_limiter", "count"] }
- default = count, metrics, rate_limiter, search
-
These default features are set whenever
nostr-extensions
is added without
somewhere in the dependency tree.default-features = false - search default
-
Enables search of nostr-relay
Affects
nostr-extensions::search
… - metrics default = metrics-exporter-prometheus, metrics-util
-
Affects
nostr-extensions::metrics
… - rate_limiter default = governor
-
Affects
nostr-extensions::rate_limiter
… - count default
-
Affects
nostr-extensions::count
…
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.