Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: Re-export `radicle_core::NodeId`
Fintan Halpenny committed 3 months ago
commit 73827f5362d9b1ade84c52eb4da1ee3d1e9f0072
parent 7c016f9219d5d5d32b9b3dfe213372e0d62d4d14
4 files changed +4 -3
modified Cargo.lock
@@ -2825,6 +2825,7 @@ dependencies = [
 "qcheck",
 "qcheck-macros",
 "radicle-cob",
+
 "radicle-core",
 "radicle-crypto",
 "radicle-git-metadata",
 "radicle-git-ref-format",
modified Cargo.toml
@@ -45,6 +45,7 @@ radicle = { version = "0.20", path = "crates/radicle" }
radicle-cli = { version = "0.17", path = "crates/radicle-cli" }
radicle-cli-test = { path = "crates/radicle-cli-test" }
radicle-cob = { version = "0.17", path = "crates/radicle-cob" }
+
radicle-core = { version = "0.1", path = "crates/radicle-core" }
radicle-crypto = { version = "0.14", path = "crates/radicle-crypto" }
radicle-dag = { version = "0.10", path = "crates/radicle-dag" }
radicle-fetch = { version = "0.16", path = "crates/radicle-fetch" }
modified crates/radicle/Cargo.toml
@@ -33,6 +33,7 @@ multibase = { workspace = true }
nonempty = { workspace = true, features = ["serialize"] }
qcheck = { workspace = true, optional = true }
radicle-cob = { workspace = true, features = ["git2"] }
+
radicle-core = { workspace = true, features = ["git2"] }
radicle-crypto = { workspace = true, features = ["git-ref-format-core", "ssh", "sqlite", "cyphernet"] }
radicle-git-ref-format = { workspace = true, features = ["macro", "serde"] }
radicle-localtime = { workspace = true, features = ["serde"] }
modified crates/radicle/src/node.rs
@@ -50,6 +50,7 @@ pub use cyphernet::addr::{HostName, PeerAddr, PeerAddrParseError};
pub use db::Database;
pub use events::{Event, Events};
pub use features::Features;
+
pub use radicle_core::NodeId;
pub use seed::SyncedAt;
pub use timestamp::Timestamp;

@@ -1002,9 +1003,6 @@ impl<T: DeserializeOwned> Iterator for LineIter<T> {
    }
}

-
/// Public node & device identifier.
-
pub type NodeId = PublicKey;
-

/// Node controller.
#[derive(Debug, Clone)]
pub struct Node {