Skip to main content

radicle_node/
lib.rs

1// N.b. Rust 1.85 introduced some annoying clippy warnings about using `b""`
2// syntax in place of `b''`, but in our cases they were u8 and not [u8] so the
3// suggestions did not make sense.
4#![allow(clippy::byte_char_slices)]
5
6pub mod fingerprint;
7pub(crate) mod reactor;
8pub mod runtime;
9
10mod control;
11mod wire;
12mod worker;
13
14#[cfg(any(test, feature = "test"))]
15pub mod test;
16#[cfg(test)]
17pub mod tests;
18
19extern crate radicle_fetch as fetch;
20extern crate radicle_localtime as localtime;
21extern crate radicle_protocol as protocol;
22
23use radicle::version::Version;
24
25/// Node version.
26pub const VERSION: Version = Version {
27    name: env!("CARGO_PKG_NAME"),
28    commit: env!("GIT_HEAD"),
29    version: env!("RADICLE_VERSION"),
30    timestamp: env!("SOURCE_DATE_EPOCH"),
31};