use workspaces to reduce dependencies (#7)

* use workspaces to reduce dependencies

* bump version
This commit is contained in:
Hubert 2022-06-26 12:13:12 +02:00 committed by GitHub
parent 08df76357c
commit 25ca3f4be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 40 additions and 21 deletions

View File

@ -1,18 +1,5 @@
[package]
name = "wakey"
version = "0.2.1"
authors = ["Hubert Bugaj<lesny.rumcajs@gmail.com>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/LesnyRumcajs/wakey"
description = "Wake-on-LAN library for creating and sending magic WOL packets."
keywords = ["wol", "wake-on-lan"]
categories = ["network-programming"]
[dependencies]
hex = "~0.3"
arrayvec = "0.7.2"
clap = { version = "3.1.18", features = ["derive"] }
[workspace]
members = [
"wakey",
"wakey-wake"
]

View File

@ -32,8 +32,6 @@ wol.send_magic_to(src, dst);
## Included binary
The binary `bin/wake` may be directly used in scripts:
```
wake -m 00:11:22:33:44:55
cargo run --bin wakey-wake -m 00:11:22:33:44:55
```

17
wakey-wake/Cargo.toml Normal file
View File

@ -0,0 +1,17 @@
[package]
name = "wakey-wake"
version = "0.2.2"
authors = ["Hubert Bugaj<lesny.rumcajs@gmail.com>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/LesnyRumcajs/wakey"
description = "Sample CLI tool for creating and sending Wake-on-LAN packets."
keywords = ["wol", "wake-on-lan"]
categories = ["network-programming"]
[dependencies]
wakey = { path = "../wakey" }
clap = { version = "3.1.18", features = ["derive"] }

17
wakey/Cargo.toml Normal file
View File

@ -0,0 +1,17 @@
[package]
name = "wakey"
version = "0.2.2"
authors = ["Hubert Bugaj<lesny.rumcajs@gmail.com>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/LesnyRumcajs/wakey"
description = "Wake-on-LAN library for creating and sending magic WOL packets."
keywords = ["wol", "wake-on-lan"]
categories = ["network-programming"]
[dependencies]
hex = "~0.3"
arrayvec = "0.7.2"