Cargo Features
[dependencies]
hassh = { version = "0.1.0", default-features = false, features = ["capi", "pcap-file", "live-capture"] }
- default = live-capture, pcap-file
-
These default features are set whenever
hassh
is added without
somewhere in the dependency tree.default-features = false - capi = libc
-
Affects
hassh::capi
… - pcap-file default = pcap-parser
-
Affects
hassh::pcap
… - live-capture default = pcap
-
Affects
hassh::live
…
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.
- libc capi?
- pcap-parser pcap-file
-
Enables pcap-parser ^0.9
- pcap live-capture
-
Enables pcap ^0.8