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 default-features = false somewhere in the dependency tree.

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.

metrics-exporter-prometheus metrics

Enables metrics-exporter-prometheus ^0.15.3

metrics-util metrics

Enables metrics-util ^0.17.0

governor rate_limiter

Enables governor ^0.6.3