meta: prepare for publishing

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I02ee54baee048c58a480522ce79159eb6a6a6964
This commit is contained in:
raf 2026-05-11 13:25:19 +03:00
commit 265a30d3c8
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
18 changed files with 102 additions and 78 deletions

View file

@ -1,9 +1,11 @@
[package]
name = "ncro-config"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
name = "ncro-config"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
hex.workspace = true

View file

@ -1,9 +1,11 @@
[package]
name = "ncro-db"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
name = "ncro-db"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
chrono = { workspace = true, features = [ "serde" ] }

View file

@ -32,7 +32,7 @@ pub struct RouteEntry {
}
impl RouteEntry {
#[must_use]
#[must_use]
pub fn is_valid(&self) -> bool {
Utc::now() < self.ttl
}

View file

@ -1,9 +1,11 @@
[package]
name = "ncro-discovery"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
name = "ncro-discovery"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
anyhow.workspace = true

View file

@ -1,9 +1,11 @@
[package]
name = "ncro-health"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
name = "ncro-health"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]

View file

@ -16,7 +16,7 @@ pub enum Status {
}
impl Status {
#[must_use]
#[must_use]
pub const fn as_str(self) -> &'static str {
match self {
Self::Active => "ACTIVE",
@ -66,7 +66,7 @@ struct ProberInner {
}
impl Prober {
#[must_use]
#[must_use]
pub fn new(alpha: f64) -> Self {
Self {
inner: Arc::new(ProberInner {

View file

@ -1,9 +1,11 @@
[package]
name = "ncro-mesh"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
name = "ncro-mesh"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
chrono.workspace = true

View file

@ -72,11 +72,11 @@ impl Node {
})
}
#[must_use]
#[must_use]
pub fn id(&self) -> String {
hex::encode(&self.public_key()[..8])
}
#[must_use]
#[must_use]
pub fn public_key(&self) -> [u8; 32] {
self.signing_key.verifying_key().to_bytes()
}

View file

@ -1,9 +1,11 @@
[package]
name = "ncro-metrics"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
name = "ncro-metrics"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
prometheus.workspace = true

View file

@ -99,7 +99,7 @@ pub fn get() -> &'static Metrics {
})
}
#[must_use]
#[must_use]
pub fn gather() -> String {
let mut buf = Vec::new();
let encoder = TextEncoder::new();

View file

@ -1,9 +1,11 @@
[package]
name = "ncro-narinfo"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
name = "ncro-narinfo"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
base64.workspace = true

View file

@ -164,7 +164,7 @@ impl NarInfo {
Ok(narinfo)
}
#[must_use]
#[must_use]
pub fn fingerprint(&self) -> String {
let refs = self
.references

View file

@ -1,9 +1,11 @@
[package]
name = "ncro-router"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
name = "ncro-router"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
chrono.workspace = true

View file

@ -57,7 +57,7 @@ struct RaceResult {
}
impl Router {
#[must_use]
#[must_use]
pub fn new(
db: Db,
prober: Prober,

View file

@ -1,9 +1,11 @@
[package]
name = "ncro-server"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
name = "ncro-server"
version.workspace = true
edition.workspace = true
license.workspace = true
description.workspace = true
homepage.workspace = true
repository.workspace = true
[dependencies]
axum = { workspace = true, features = [ "macros" ] }