Commit e6adc1d5 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

use feature for some modules

parent 1f444845
......@@ -22,8 +22,14 @@ path = "src/main.rs"
[dependencies]
byteorder = "1.0.0"
clap = { version = "4.5.13", features = ["derive"] }
clap_complete = "4.5.23"
clap = { version = "4.5.13", features = ["derive"], optional = true }
clap_complete = { version = "4.5.23", optional = true }
[profile.release]
strip = true
[features]
default = []
example = []
cli = ["dep:clap", "dep:clap_complete", "example"]
full = ["cli"]
......@@ -2,5 +2,8 @@ pub mod openflow;
pub mod etherparser;
#[cfg(feature = "example")]
pub mod example;
#[cfg(feature = "cli")]
pub mod cli;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment