Cargo Features
[dependencies]
aquatic_udp = { version = "0.9.0", default-features = false, features = ["prometheus", "io-uring", "mimalloc"] }
- default = mimalloc, prometheus
-
These default features are set whenever
aquatic_udp
is added without
somewhere in the dependency tree.default-features = false - prometheus default = metrics
-
Export prometheus metrics
Enables prometheus of aquatic_common
Affects
config::StatisticsConfig.run_prometheus_endpoint
,config::StatisticsConfig.prometheus_endpoint_address
,config::StatisticsConfig.prometheus_peer_id_prefixes
… - io-uring
-
Experimental io_uring support (Linux 6.0 or later required)
Enables io-uring ^0.6
io-uring feature
Affects
config::NetworkConfig.use_io_uring
,config::NetworkConfig.ring_size
… - mimalloc default
-
Use mimalloc allocator for much better performance.
Requires cmake and a C compilerEnables mimalloc
mimalloc feature
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 prometheus
-
Enables metrics ^0.22
prometheus feature