Skip to content

Commit

Permalink
use workspaces to reduce dependencies (#7)
Browse files Browse the repository at this point in the history
* use workspaces to reduce dependencies

* bump version
  • Loading branch information
LesnyRumcajs authored Jun 26, 2022
1 parent 08df763 commit 25ca3f4
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 21 deletions.
23 changes: 5 additions & 18 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
[package]
name = "wakey"
version = "0.2.1"

authors = ["Hubert Bugaj<[email protected]>"]
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"
]
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 17 additions & 0 deletions wakey-wake/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "wakey-wake"
version = "0.2.2"

authors = ["Hubert Bugaj<[email protected]>"]
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"] }
File renamed without changes.
17 changes: 17 additions & 0 deletions wakey/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "wakey"
version = "0.2.2"

authors = ["Hubert Bugaj<[email protected]>"]
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"
File renamed without changes.

0 comments on commit 25ca3f4

Please sign in to comment.