Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Oct 21, 2024
1 parent 11db604 commit 86e555d
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ keywords = ["did"]
jose-jwk = "0.1.2"
serde_json = "1.0.132"
thiserror = "1.0.64"

[workspace.metadata.release]
shared-version = true
tag-name = "v{{version}}"
1 change: 1 addition & 0 deletions crates/xdid-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "xdid-core"
description = "Core types for DID methods to implement."
version.workspace = true
edition.workspace = true
repository.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion crates/xdid-method-key/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "xdid-method-key"
description = "xdid implementation of did:key"
version.workspace = true
edition.workspace = true
repository.workspace = true
Expand All @@ -24,4 +25,4 @@ ring = { version = "0.17.8", optional = true }
serde_json = { workspace = true, optional = true }
thiserror.workspace = true
unsigned-varint = { version = "0.8.0" }
xdid-core = { path = "../xdid-core" }
xdid-core = { path = "../xdid-core", version = "0.0.0" }
2 changes: 1 addition & 1 deletion crates/xdid-method-key/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

<!-- cargo-rdme start -->

Implementation of [did:key](https://w3c-ccg.github.io/did-method-key/), using [xdid](https://github.com/unavi-xyz/xdid).
[xdid](https://github.com/unavi-xyz/xdid) implementation of [did:key](https://w3c-ccg.github.io/did-method-key/).

<!-- cargo-rdme end -->
2 changes: 1 addition & 1 deletion crates/xdid-method-key/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Implementation of [did:key](https://w3c-ccg.github.io/did-method-key/), using [xdid](https://github.com/unavi-xyz/xdid).
//! [xdid](https://github.com/unavi-xyz/xdid) implementation of [did:key](https://w3c-ccg.github.io/did-method-key/).
use multibase::Base;
use parser::DidKeyParser;
Expand Down
3 changes: 2 additions & 1 deletion crates/xdid-method-web/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[package]
name = "xdid-method-web"
description = "xdid implementation of did:web"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
keywords.workspace = true

[dependencies]
xdid-core = { path = "../xdid-core" }
xdid-core = { path = "../xdid-core", version = "0.0.0" }
2 changes: 1 addition & 1 deletion crates/xdid-method-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

<!-- cargo-rdme start -->

Implementation of [did:web](https://w3c-ccg.github.io/did-method-web/), using [xdid](https://github.com/unavi-xyz/xdid).
[xdid](https://github.com/unavi-xyz/xdid) implementation of [did:web](https://w3c-ccg.github.io/did-method-web/).

<!-- cargo-rdme end -->
2 changes: 1 addition & 1 deletion crates/xdid-method-web/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//! Implementation of [did:web](https://w3c-ccg.github.io/did-method-web/), using [xdid](https://github.com/unavi-xyz/xdid).
//! [xdid](https://github.com/unavi-xyz/xdid) implementation of [did:web](https://w3c-ccg.github.io/did-method-web/).
pub struct DidWeb {}
7 changes: 4 additions & 3 deletions crates/xdid/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "xdid"
description = "Simple DID library."
version.workspace = true
edition.workspace = true
repository.workspace = true
Expand All @@ -12,9 +13,9 @@ did-key = ["dep:xdid-method-key"]
did-web = ["dep:xdid-method-web"]

[dependencies]
xdid-core = { path = "../xdid-core" }
xdid-method-key = { path = "../xdid-method-key", optional = true }
xdid-method-web = { path = "../xdid-method-web", optional = true }
xdid-core = { path = "../xdid-core", version = "0.0.0" }
xdid-method-key = { path = "../xdid-method-key", version = "0.0.0", optional = true }
xdid-method-web = { path = "../xdid-method-web", version = "0.0.0", optional = true }

[dev-dependencies]
tokio = { version = "1.40.0", features = ["macros", "rt"] }
2 changes: 1 addition & 1 deletion crates/xdid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
Simple [DID](https://www.w3.org/TR/did-core/) library.

Add support for new methods using the [Method](xdid_core::Method) trait,
then create a [Resolver](resolver::Resolver) to parse and resolve DIDs.
then create a [Resolver](resolver::Resolver) to resolve DID documents.

<!-- cargo-rdme end -->

0 comments on commit 86e555d

Please sign in to comment.