Skip to content

Commit

Permalink
Fix trustchain path dependency versions (#224)
Browse files Browse the repository at this point in the history
* Adds versions to trustchain crate path deps

* Adds trustchain deps as workspace deps

* Revises features in trustchain crate
  • Loading branch information
sgreenbury authored Jan 28, 2025
1 parent 10a28e2 commit f9cdb99
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 18 deletions.
22 changes: 14 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,22 @@ toml = "0.7.2"
tower = "0.4"
tracing = "0.1"
tracing-subscriber = "0.3"

[dependencies]
trustchain-api = { path = "crates/trustchain-api", version = "0.1.0" }
trustchain-core = { path = "crates/trustchain-core", version = "0.2.0" }
trustchain-ffi = { path = "crates/trustchain-ffi", version = "0.1.0", optional = true }
trustchain-http = { path = "crates/trustchain-http", version = "0.1.0", optional = true }
trustchain-ion = { path = "crates/trustchain-ion", version = "0.2.0", optional = true }
trustchain-ffi = { path = "crates/trustchain-ffi", version = "0.1.0" }
trustchain-http = { path = "crates/trustchain-http", version = "0.1.0" }
trustchain-ion = { path = "crates/trustchain-ion", version = "0.2.0" }

[dependencies]
trustchain-api = { workspace = true, optional = true }
trustchain-core = { workspace = true }
trustchain-ffi = { workspace = true, optional = true }
trustchain-http = { workspace = true, optional = true }
trustchain-ion = { workspace = true, optional = true }

[features]
default = []
http = ["dep:trustchain-http"]
default = ["api", "ion"]
http = ["api", "dep:trustchain-http"]
api = ["ion", "dep:trustchain-api"]
ion = ["dep:trustchain-ion"]
ffi = ["dep:trustchain-ffi"]
ffi = ["http", "dep:trustchain-ffi"]
4 changes: 2 additions & 2 deletions crates/trustchain-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ hex = { workspace = true }
serde_json = { workspace = true }
sha2 = { workspace = true }
ssi = { workspace = true, features = ["http-did", "secp256k1"] }
trustchain-core = { path = "../trustchain-core" }
trustchain-ion = { path = "../trustchain-ion" }
trustchain-core = { workspace = true }
trustchain-ion = { workspace = true }

[dev-dependencies]
tokio = { workspace = true, features = ["full"] }
8 changes: 4 additions & 4 deletions crates/trustchain-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ssi = { workspace = true, features = ["http-did", "secp256k1"] }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["rt-multi-thread"] }
toml = { workspace = true }
trustchain-api = { path = "../trustchain-api" }
trustchain-core = { path = "../trustchain-core" }
trustchain-http = { path = "../trustchain-http" }
trustchain-ion = { path = "../trustchain-ion" }
trustchain-api = { workspace = true }
trustchain-core = { workspace = true }
trustchain-http = { workspace = true }
trustchain-ion = { workspace = true }
6 changes: 3 additions & 3 deletions crates/trustchain-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ toml = { workspace = true }
tower = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
trustchain-api = { path = "../trustchain-api" }
trustchain-core = { path = "../trustchain-core" }
trustchain-ion = { path = "../trustchain-ion" }
trustchain-api = { workspace = true }
trustchain-core = { workspace = true }
trustchain-ion = { workspace = true }

[dev-dependencies]
axum-test-helper = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/trustchain-ion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ssi = { workspace = true, features = ["http-did", "secp256k1"] }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["full"] }
toml = { workspace = true }
trustchain-core = { path = "../trustchain-core" }
trustchain-core = { workspace = true }

[dev-dependencies]
glob = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Trustchain reference implementation.
#[cfg(feature = "api")]
pub use trustchain_api as api;
pub use trustchain_core as core;
#[cfg(feature = "ffi")]
Expand Down

0 comments on commit f9cdb99

Please sign in to comment.