Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the util bin to a package #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 5 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,22 @@ version = "0.1.0"
authors = ["Ryan Kurte <[email protected]>"]
edition = "2021"

[features]
std = [ "thiserror", "anyhow" ]
util = ["structopt", "tracing", "tracing-subscriber", "humantime", "driver-pal/hal", "radio/helpers" ]
default = [ "std", "util", "driver-pal/hal-cp2130", "driver-pal/hal-linux" ]

[workspace]
members = ["util"]

[dependencies]
embedded-hal = "1.0.0-alpha.5"
embedded-hal = "=1.0.0-alpha.5"
radio = "0.10.0"
modular-bitfield = "0.11.2"
log = "0.4.14"
num_enum = { version = "0.5.4", default_features = false }

# Util dependencies
driver-pal = { version = "0.8.0-alpha.5", default_features = false }
structopt = { version = "0.3.25", optional = true }
num_enum = "0.5.4"
# Optional features
thiserror = { version = "1.0.30", optional = true }
humantime = { version = "2.1.0", optional = true }
tracing = { version = "0.1.25", optional = true }
tracing-subscriber = { version = "0.2.16", optional = true }
serde = { version = "1.0.130", optional = true }
defmt = { version = "0.2.3", optional = true }
anyhow = { version = "1.0.44", optional = true }

[dev-dependencies]
embedded-hal-mock = { version = "0.8.0" }
simplelog = "0.5.3"


[[bin]]
name = "s2lp-util"
path = "src/util/main.rs"
required-features = [ "util" ]


[patch.crates-io]
24 changes: 24 additions & 0 deletions util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "util"
version = "0.1.0"
edition = "2021"

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

[dependencies]
anyhow = "1.0.44"
structopt = "0.3.25"
tracing = "0.1.25"
tracing-subscriber = "0.2.16"
log = "0.4.14"

[dependencies.driver-pal]
version = "0.8.0-alpha.5"
features = ["hal", "hal-cp2130", "hal-linux"]

[dependencies.radio]
version = "0.10.0"
features = ["helpers"]

[dependencies.radio-s2lp]
path = ".."
File renamed without changes.