Cargo Features

[dependencies]
sunsniff = { version = "0.3.2", default-features = false, features = ["mqtt", "modbus", "pcap", "influxdb2"] }
default = influxdb2, modbus, mqtt, pcap

These default features are set whenever sunsniff is added without default-features = false somewhere in the dependency tree.

mqtt default

Enables mqtt-async-client and serde_json

Affects sunsniff::mqtt

modbus default

Enables modbus-robust and serde_with, tokio-modbus ^0.9.0 and tokio-serial, clock of chrono, time of tokio

Affects sunsniff::modbus

pcap default

Enables chrono-tz ^0.8.2, etherparse ^0.13.0, and pcap ^1.0.0

Affects sunsniff::pcap

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.

influxdb2 default

Enables influxdb2 ^0.4.0

Affects sunsniff::influxdb2