Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
Tenjin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nawasan Wisitsingkhon
Tenjin
Commits
e6adc1d5
Commit
e6adc1d5
authored
Sep 29, 2024
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use feature for some modules
parent
1f444845
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
Cargo.toml
Cargo.toml
+8
-2
lib.rs
src/lib.rs
+3
-0
No files found.
Cargo.toml
View file @
e6adc1d5
...
...
@@ -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"]
src/lib.rs
View file @
e6adc1d5
...
...
@@ -2,5 +2,8 @@ pub mod openflow;
pub
mod
etherparser
;
#[cfg(feature
=
"example"
)]
pub
mod
example
;
#[cfg(feature
=
"cli"
)]
pub
mod
cli
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment