Skip to content

Commit

Permalink
combine cli and lib using workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Nov 26, 2024
1 parent 90ebbc3 commit 58031a9
Show file tree
Hide file tree
Showing 25 changed files with 1,477 additions and 39 deletions.
79 changes: 69 additions & 10 deletions Cargo.lock

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

31 changes: 3 additions & 28 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
[package]
name = "bpb_pkgx"
description = "boats's personal barricade - pkgx updates"
license = "MIT OR Apache-2.0"
version = "1.1.1"
repository = "https://github.com/pkgxdev/bpb-pkgx"
edition = "2021"
authors = ["Without Boats <[email protected]>", "Jacob Heider <[email protected]>"]

[dependencies]
toml = "0.4.6"
rand = { version = "0.8.5", features = ["std"] }
sha2 = "0.7.1"
serde_derive = "1.0.215"
serde = "1.0.215"
hex = "0.3.2"
failure = "0.1.1"

[dependencies.pbp_pkgx]
version = "0.4.1"
git = "https://github.com/pkgxdev//pbp-pkgx.git"
rev = "5aa86ffeb794a8c120b33b85f8ae463b7cc05f3d"
features = ["dalek"]

[dependencies.ed25519-dalek]
# [dependencies.ed25519]
# package = "ed25519-dalek"
version = "2.1.1"
[workspace]
members = ["bpb-pkgx-cli", "pbp-pkgx-lib"]
default-members = ["bpb-pkgx-cli"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ do.
```sh
git clone https://github.com/pkgxdev/bpb-pkgx
cd bpb-pkgx
cargo install --path .
cargo install --path bpb-pkgx-cli
```

## How to Set Up
Expand Down
26 changes: 26 additions & 0 deletions bpb-pkgx-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "bpb_pkgx"
description = "boats's personal barricade - pkgx updates"
license = "MIT OR Apache-2.0"
version = "1.1.1"
repository = "https://github.com/pkgxdev/bpb-pkgx"
edition = "2021"
authors = ["Without Boats <[email protected]>", "Jacob Heider <[email protected]>"]

[dependencies]
toml = "0.4.6"
rand = { version = "0.8.5", features = ["std"] }
sha2 = "0.7.1"
serde_derive = "1.0.215"
serde = "1.0.215"
hex = "0.3.2"
failure = "0.1.1"

[dependencies.pbp_pkgx]
path = "../pbp-pkgx-lib"
features = ["dalek"]

[dependencies.ed25519-dalek]
# [dependencies.ed25519]
# package = "ed25519-dalek"
version = "2.1.1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions pbp-pkgx-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
authors = ["Without Boats <[email protected]>", "Jacob Heider <[email protected]>"]
description = "bridge non-PGP system to PGP data format - pkgx updates"
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
name = "pbp_pkgx"
version = "0.4.1"
repository = "https://github.com/pkgxdev/bpb-pkgx"

[dependencies]
base64 = "0.9.2"
byteorder = "1.1.0"
digest = "0.7.0"
sha1 = "0.2.0"
typenum = "1.9.0"
failure = "0.1.1"
bitflags = "1.3.2"

[dependencies.ed25519-dalek]
version = "2.1.1"
optional = true

[features]
dalek = ["ed25519-dalek"]

[dev-dependencies]
rand = "0.7.3"
sha2 = "0.7.1"
Loading

0 comments on commit 58031a9

Please sign in to comment.