Skip to content

Commit 910d915

Browse files
committed
mono-repo re-org
Signed-off-by: Dave Grantham <[email protected]>
1 parent d03d5c2 commit 910d915

File tree

223 files changed

+25871
-2265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+25871
-2265
lines changed

Cargo.toml

Lines changed: 49 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,53 @@
1-
[package]
2-
name = "bs"
3-
version = "1.0.5"
1+
[workspace]
2+
resolver = "2"
3+
default-members = ["crates/bs"]
4+
members = [
5+
"crates/*",
6+
"cli",
7+
]
8+
9+
[workspace.package]
10+
version = "1.0.0"
11+
edition = "2021"
412
authors = ["Dave Grantham <[email protected]>"]
5-
edition = "2018"
6-
description = "BetterSign signing tool"
7-
repository = "https://github.com/cryptidtech/bs"
13+
description = "The BetterSign Provenance-Based Identity Solution"
814
readme = "README.md"
9-
keywords = ["provenance logs", "decentralized identity"]
10-
license = "Functional Source License 1.1"
15+
license = "FSL-1.1 OR Apache-2.0"
1116

12-
[dependencies]
13-
best-practices = { version = "0.1", git = "https://github.com/cryptidtech/best-practices.git" }
14-
log = "0.4"
15-
multibase = { version = "1.0", git = "https://github.com/cryptidtech/rust-multibase.git" }
16-
multicid = { version = "1.0", git = "https://github.com/cryptidtech/multicid.git" }
17-
multicodec = { version = "1.0", git = "https://github.com/cryptidtech/rust-multicodec.git" }
18-
multihash = { version = "1.0", git = "https://github.com/cryptidtech/multihash.git" }
19-
multikey = { version = "1.0", git = "https://github.com/cryptidtech/multikey.git" }
20-
multisig = { version = "1.0", git = "https://github.com/cryptidtech/multisig.git" }
21-
provenance-log = { version = "1.0", git = "ssh://[email protected]/cryptidtech/provenance-log.git" }
22-
rand = "0.8"
23-
serde_cbor = "0.11.2"
24-
thiserror = "1.0"
25-
wacc = { version = "1.0", git = "ssh://[email protected]/cryptidtech/wacc.git" }
17+
[workspace.lints.rust]
18+
unexpected_cfgs = { level = "warn", check-cfg = [
19+
'cfg(feature, values("cargo-clippy"))',
20+
'cfg(fuzzing)',
21+
]}
2622

27-
[workspace]
28-
members = ["cli"]
23+
[workspace.dependencies]
24+
# Crate ependencies
25+
bs = { path = "crates/bs" }
26+
multibase = { path = "crates/multibase" }
27+
multicid = { path = "crates/multicid" }
28+
multicodec = { path = "crates/multicodec" }
29+
multihash = { path = "crates/multihash" }
30+
multikey = { path = "crates/multikey" }
31+
multisig = { path = "crates/multisig" }
32+
multitrait = { path = "crates/multitrait" }
33+
multiutil = { path = "crates/multiutil" }
34+
provenance-log = { path = "crates/provenance-log" }
35+
rng = { path = "crates/rng" }
36+
wacc = { path = "crates/wacc" }
37+
38+
# Core dependencies
39+
best-practices = { version = "0.1.0", git = "https://github.com/cryptidtech/best-practices.git" }
40+
elliptic-curve = "0.13.8"
41+
hex = "0.4.3"
42+
rand = { version = "0.9.0", features = ["os_rng"] }
43+
rand_core = "0.9.3"
44+
rand_6 = { version = "0.6.4", package = "rand" }
45+
rand_core_6 = { version = "0.6.4", package = "rand_core" }
46+
serde = { version = "1.0.219", default-features = false, features = ["alloc", "derive"]}
47+
serde_cbor = { version = "0.11.2", features = ["tags"]}
48+
serde_json = { version = "1.0.104"}
49+
serde_test = { version = "1.0.104"}
50+
thiserror = "2.0.12"
51+
tracing = "0.1.41"
52+
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
53+
unsigned-varint = { version = "0.8.0", features = ["std"] }

LICENSE-APACHE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2019 David Huseby <[email protected]>
189+
Copyright [yyyy] [name of copyright owner]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

cli/Cargo.toml

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,53 @@
11
[package]
22
name = "bs-cli"
3-
version = "1.0.5"
3+
version.workspace = true
4+
edition.workspace = true
45
authors = ["Dave Grantham <[email protected]>"]
5-
edition = "2018"
6-
description = "BetterSign Provenance Tool"
7-
repository = "https://github.com/cryptidtech/bs"
6+
description = "BetterSign Provenance-Identity Tool"
87
readme = "README.md"
98
keywords = ["signing", "provenance logs", "decentralized identity"]
109
license = "Functional Source License 1.1"
1110

11+
[[bin]]
12+
name = "bs"
13+
path = "src/bin/bs.rs"
14+
1215
[features]
1316
default = ["serde"]
1417

1518
[dependencies]
1619
anyhow = "1.0"
1720
async-trait = "0.1"
18-
best-practices = { version = "0.1", git = "https://github.com/cryptidtech/best-practices.git" }
19-
bs = { path = ".." }
20-
clap = { version = "4.5.6", features = ["cargo"] }
21-
directories = "5.0"
22-
ed25519-dalek = "2.0"
23-
log = "0.4"
24-
multibase = { version = "1.0", git = "https://github.com/cryptidtech/rust-multibase.git" }
25-
multicid = { version = "1.0", git = "https://github.com/cryptidtech/multicid.git" }
26-
multicodec = { version = "1.0", git = "https://github.com/cryptidtech/rust-multicodec.git" }
27-
multihash = { version = "1.0", git = "https://github.com/cryptidtech/multihash.git" }
28-
multikey = { version = "1.0", git = "https://github.com/cryptidtech/multikey.git" }
29-
multisig = { version = "1.0", git = "https://github.com/cryptidtech/multisig.git" }
30-
multitrait = { version = "1.0", git = "https://github.com/cryptidtech/multitrait.git" }
31-
multiutil = { version = "1.0", git = "https://github.com/cryptidtech/multiutil.git" }
32-
provenance-log = { version = "1.0", git = "ssh://[email protected]/cryptidtech/provenance-log.git" }
33-
rand = "0.8"
34-
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"], optional = true }
35-
serde_cbor = "0.11"
36-
serde_json = "1.0"
21+
best-practices.workspace = true
22+
bs.workspace = true
23+
clap = { version = "4.5.36", features = ["cargo"] }
24+
directories = "6.0.0"
25+
ed25519-dalek = "2.1.1"
26+
elliptic-curve.workspace = true
27+
multibase.workspace = true
28+
multicid.workspace = true
29+
multicodec.workspace = true
30+
multihash.workspace = true
31+
multikey.workspace = true
32+
multisig.workspace = true
33+
multitrait.workspace = true
34+
multiutil.workspace = true
35+
provenance-log.workspace = true
36+
rand.workspace = true
37+
rand_core_6.workspace = true
38+
rng.workspace = true
39+
serde = { workspace = true, optional = true }
40+
serde_cbor.workspace = true
41+
serde_json.workspace = true
3742
ssh-key = { version = "0.6.2", features = ["crypto", "ed25519"]}
38-
ssh-agent-client-rs = "0.9"
39-
structopt = "0.3"
40-
stderrlog = "0.6"
41-
thiserror = "1.0"
42-
tokio = { version = "1.37", features = ["full"] }
43-
toml = "0.8"
44-
wacc = { version = "1.0", git = "ssh://[email protected]/cryptidtech/wacc.git" }
43+
ssh-agent-client-rs = "1.0.0"
44+
structopt = "0.3.26"
45+
thiserror.workspace = true
46+
tokio = { version = "1.44.2", features = ["full"] }
47+
toml = "0.8.20"
48+
tracing.workspace = true
49+
tracing-subscriber.workspace = true
50+
wacc.workspace = true
4551

4652
[dev-dependencies]
47-
tokio-test = "0.4"
53+
tokio-test = "0.4.4"

cli/src/bin/bs.rs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//use bs::prelude::*;
77
use bs_cli::prelude::*;
88
//use commands::prelude::*;
9-
//use log::debug;
9+
//use tracing::debug;
1010
//use multicodec::Codec;
1111
//use multihash::EncodedMultihash;
1212
//use multikey::{mk, EncodedMultikey, Views};
@@ -80,7 +80,7 @@ enum Command {
8080
Plog {
8181
/// Provenance log subcommand
8282
#[structopt(subcommand)]
83-
cmd: subcmds::plog::Command,
83+
cmd: Box<subcmds::plog::Command>,
8484
},
8585
}
8686

@@ -99,10 +99,15 @@ async fn main() -> Result<(), Error> {
9999
let opt = Opt::from_args();
100100

101101
// set up the logger
102-
stderrlog::new()
103-
.quiet(opt.quiet)
104-
.verbosity(opt.verbosity)
105-
.init()
102+
tracing_subscriber::fmt()
103+
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
104+
.with_target(false)
105+
.with_writer(std::io::stderr)
106+
.with_ansi(true)
107+
.with_line_number(true)
108+
.with_file(true)
109+
.without_time()
110+
.try_init()
106111
.map_err(bs_cli::Error::Log)?;
107112

108113
// load the config
@@ -112,7 +117,7 @@ async fn main() -> Result<(), Error> {
112117
// process a config command
113118
Command::Config { cmd } => subcmds::config::go(cmd, &config).await,
114119
// process a plog command
115-
Command::Plog { cmd } => subcmds::plog::go(cmd, &config).await,
120+
Command::Plog { cmd } => subcmds::plog::go(*cmd, &config).await,
116121
};
117122

118123
if let Err(ref e) = ret {

0 commit comments

Comments
 (0)