Skip to content

Commit

Permalink
restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
mrak committed Aug 26, 2024
1 parent 7134b60 commit bb46a72
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
name = "nxray"
version = "0.1.0"
edition = "2021"
authors = ["Eric Mrak <eric@mrak.online>"]

[[bin]]
name = "nx"
path = "src/main.rs"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion src/bin/nx/args.rs → src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
3 changes: 1 addition & 2 deletions src/bin/nx/main.rs → src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
mod args;
use nxray::*;

use crate::args::*;
use colored::Colorize;
use pnet::datalink;
use pnet::datalink::Channel::Ethernet;
Expand Down
File renamed without changes.

0 comments on commit bb46a72

Please sign in to comment.