Cargo Features

[dependencies]
ratman = { version = "0.5.0", default-features = false, features = ["netmod", "client", "proto", "metrics", "daemon"] }
default = client, netmod

TODO: figure out if it makes sense to disable one or both of these features by default

netmod default

Affects ratman::netmod

client default = proto

Affects ratman::client

proto client = protobuf, protoc-rust

Affects types::api, types::parse_message, types::decode_message, types::encode_message

metrics = prometheus-client
daemon = nix

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.

protobuf proto?

Enables protobuf ^2.19

prometheus-client metrics?

Enables prometheus-client ^0.16

nix daemon?

Enables nix ^0.23

protoc-rust build proto?