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" ...@@ -22,8 +22,14 @@ path = "src/main.rs"
[dependencies] [dependencies]
byteorder = "1.0.0" byteorder = "1.0.0"
clap = { version = "4.5.13", features = ["derive"] } clap = { version = "4.5.13", features = ["derive"], optional = true }
clap_complete = "4.5.23" clap_complete = { version = "4.5.23", optional = true }
[profile.release] [profile.release]
strip = true strip = true
[features]
default = []
example = []
cli = ["dep:clap", "dep:clap_complete", "example"]
full = ["cli"]
...@@ -2,5 +2,8 @@ pub mod openflow; ...@@ -2,5 +2,8 @@ pub mod openflow;
pub mod etherparser; pub mod etherparser;
#[cfg(feature = "example")]
pub mod example; pub mod example;
#[cfg(feature = "cli")]
pub mod 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