lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

lib.rs (1595B)


      1 pub mod backoff;
      2 #[cfg(feature = "cli")]
      3 pub mod cli;
      4 pub mod config;
      5 pub mod error;
      6 pub mod json;
      7 pub mod secret_file;
      8 pub mod service;
      9 pub mod signals;
     10 pub mod tracing;
     11 
     12 #[cfg(feature = "cli")]
     13 pub use cli::{parse_and_load_path, parse_and_load_path_with_env_overrides};
     14 #[cfg(feature = "cli")]
     15 pub use cli::{parse_and_load_path_with_env_overrides_and_init, parse_and_load_path_with_init};
     16 
     17 pub use backoff::{Backoff, BackoffConfig};
     18 
     19 pub use config::{
     20     ConfigKeySpec, ConfigSourceKind, RuntimeConfigValueError, RuntimeEnvFileError,
     21     StrictEnvFileValues, load_required_file, load_required_file_with_env,
     22     load_required_file_with_env_and_overrides, load_strict_env_file,
     23     load_strict_env_file_with_specs, parse_bool_value, parse_optional_path_value,
     24     parse_optional_string_value, parse_strict_env_file, parse_strict_env_file_with_specs,
     25     parse_string_list_value, parse_u64_value, parse_usize_value,
     26 };
     27 
     28 #[cfg(feature = "cli")]
     29 pub use error::RuntimeCliError;
     30 pub use error::RuntimeProtectedFileError;
     31 pub use error::{RuntimeConfigError, RuntimeError, RuntimeTracingError};
     32 
     33 pub use json::{JsonFile, JsonWriteOptions, RuntimeJsonError};
     34 pub use secret_file::{local_wrapping_key_path, open_local_secret_file, seal_local_secret_file};
     35 pub use service::RadrootsNostrServiceConfig;
     36 #[cfg(feature = "cli")]
     37 pub use service::RadrootsServiceCliArgs;
     38 pub use service::{DEFAULT_SERVICE_IDENTITY_PATH, service_bootstrap_paths_for};
     39 pub use signals::shutdown_signal;
     40 pub use tracing::{
     41     default_shared_runtime_logs_dir, default_shared_runtime_logs_dir_for, init, init_with_logs_dir,
     42 };