diff --git a/Cargo.toml b/Cargo.toml index be77c31..1d75669 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,9 +2,11 @@ name = "nxray" version = "0.1.0" edition = "2021" +authors = ["Eric Mrak "] [[bin]] name = "nx" +path = "src/main.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/bin/nx/args.rs b/src/lib.rs similarity index 99% rename from src/bin/nx/args.rs rename to src/lib.rs index 522da6b..25747e3 100644 --- a/src/bin/nx/args.rs +++ b/src/lib.rs @@ -10,7 +10,7 @@ use pnet::ipnetwork::Ipv6Network; use std::str::FromStr; #[derive(Parser)] -#[grammar = "bin/nx/args.pest"] +#[grammar = "nx.pest"] pub struct ARGParser; #[derive(PartialEq, Debug)] diff --git a/src/bin/nx/main.rs b/src/main.rs similarity index 99% rename from src/bin/nx/main.rs rename to src/main.rs index ab5fe63..e2fc5a5 100644 --- a/src/bin/nx/main.rs +++ b/src/main.rs @@ -1,6 +1,5 @@ -mod args; +use nxray::*; -use crate::args::*; use colored::Colorize; use pnet::datalink; use pnet::datalink::Channel::Ethernet; diff --git a/src/bin/nx/args.pest b/src/nx.pest similarity index 100% rename from src/bin/nx/args.pest rename to src/nx.pest