We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16cf03e commit 610b3bbCopy full SHA for 610b3bb
Cargo.toml
@@ -18,6 +18,10 @@ thiserror = "2.0"
18
name = "hostname"
19
path = "bin/hostname.rs"
20
21
+[[bin]]
22
+name = "nameif"
23
+path = "bin/nameif.rs"
24
+
25
[lints.rust]
26
unsafe_op_in_unsafe_fn = { level = "deny" }
27
bin/nameif.rs
@@ -0,0 +1,3 @@
1
+fn main() {
2
+ net_tools_rs::nameif_main();
3
+}
src/lib.rs
@@ -1,8 +1,10 @@
pub mod error;
pub mod hostname;
+pub mod nameif;
4
5
pub use error::{NetToolsError, Result};
6
pub use hostname::main as hostname_main;
7
+pub use nameif::main as nameif_main;
8
9
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
10
pub const RELEASE: &str = concat!("net-tools-rs ", env!("CARGO_PKG_VERSION"));
0 commit comments