Skip to content

Commit

Permalink
refactor: project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Mar 2, 2024
1 parent 86851e6 commit b884925
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
[package]
name = "knockd"
version = "0.1.0"
edition = "2021"

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

[dependencies]
clap = { Version = "4.5.1", features = ["derive"] }
pnet = "0.34.0"
serde = { version = "1.0.197", features = ["derive"] }
serde_yaml = "0.9.32"
[workspace]
members = ["knockd", "knock-cli"]
resolver = "2"
9 changes: 9 additions & 0 deletions knock-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "knock-cli"
version = "0.1.0"
edition = "2021"

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

[dependencies]
clap = { version = "4.5.1", features = ["derive"] }
3 changes: 3 additions & 0 deletions knock-cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
12 changes: 12 additions & 0 deletions knockd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "knockd"
version = "0.1.0"
edition = "2021"

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

[dependencies]
clap = { version = "4.5.1", features = ["derive"] }
pnet = "0.34.0"
serde = { version = "1.0.197", features = ["derive"] }
serde_yaml = "0.9.32"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b884925

Please sign in to comment.