Skip to content

Commit

Permalink
Separate library and ectool into different workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
WeirdTreeThing committed Apr 28, 2024
1 parent 5275acd commit 7d3bf41
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 41 deletions.
59 changes: 33 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 3 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
[package]
name = "crosec-rs"
version = "0.1.0"
edition = "2021"

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

[dependencies]
color-eyre = "0.6.2"
nix = { version = "0.27.1", features = ["ioctl"] }
num-derive = "0.4.2"
num-traits = "0.2.18"
thiserror = "1.0.57"
[workspace]
members = ["crosec", "ectool"]
resolver = "2"
12 changes: 12 additions & 0 deletions crosec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "crosec"
version = "0.1.0"
edition = "2021"

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

[dependencies]
nix = { version = "0.27.1", features = ["ioctl"] }
num-derive = "0.4.2"
num-traits = "0.2.18"
thiserror = "1.0.57"
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.
10 changes: 10 additions & 0 deletions ectool/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "ectool"
version = "0.1.0"
edition = "2021"

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

[dependencies]
crosec = { version = "0.1.0", path = "../crosec" }
color-eyre = "0.6.2"
4 changes: 2 additions & 2 deletions src/bin/ectool.rs → ectool/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use color_eyre::eyre::Result;
use crosec_rs::commands::{
use crosec::commands::{
get_chip_info::ec_cmd_get_chip_info, hello::ec_cmd_hello, version::ec_cmd_version,
};

Expand Down Expand Up @@ -30,4 +30,4 @@ fn main() -> Result<()> {
println!(" revision: {revision}");

Ok(())
}
}

0 comments on commit 7d3bf41

Please sign in to comment.