Skip to main content

rings_node/
lib.rs

1#![doc = include_str!("../README.md")]
2#![deny(missing_docs)]
3#![cfg_attr(target_arch = "wasm32", allow(clippy::arc_with_non_send_sync))]
4#![cfg_attr(
5    test,
6    allow(
7        clippy::expect_used,
8        clippy::indexing_slicing,
9        clippy::panic,
10        clippy::unwrap_used
11    )
12)]
13// The `dummy` feature selects rings-core's in-memory test transport. Combined with `ffi`, it
14// would ship a C library whose nodes cannot reach any peer; the `rings` binary refuses the
15// feature on its own (see `bin/rings.rs`).
16#[cfg(all(feature = "dummy", feature = "ffi"))]
17compile_error!("the `dummy` test transport cannot back the FFI library; build `ffi` without it");
18
19/// Shared protocol constants used by the node runtime.
20pub mod consts;
21pub mod descriptor;
22#[cfg(rings_native)]
23pub mod dns_relay;
24pub mod error;
25pub mod extension;
26pub mod logging;
27pub mod mail;
28pub mod measure;
29#[cfg(all(feature = "node", not(target_family = "wasm")))]
30/// Native-node configuration, CLI, and runtime adapters.
31pub mod native;
32/// Bounded, privacy-safe operator observability models and exporters.
33pub mod observability;
34pub mod onion;
35pub mod online;
36mod peer_quota;
37pub mod prelude;
38pub mod processor;
39pub mod provider;
40pub mod registration;
41pub mod release;
42// Documented by its own module docs; an outer doc would make rustdoc resolve the module's
43// intra-doc links in this scope instead of its own.
44pub mod remote_endpoint;
45mod rpc_dto;
46mod rpc_impl;
47pub mod seed;
48mod sync_lock;
49mod tasks;
50#[cfg(all(test, rings_native))]
51mod test_support;
52#[cfg(test)]
53mod tests;
54pub mod util;