Files
nexus/crates/nexus-core/src/lib.rs

26 lines
727 B
Rust

//! Gemeinsame Typen, Fehler und Konfiguration für alle Nexus-Crates.
//!
//! Dieses Crate hat keine Abhängigkeit zu Datenbank oder Netzwerk.
mod apikey;
mod config;
mod error;
mod password;
mod priority;
#[path = "../../startparams.rs"]
pub mod startparams;
mod time;
pub use apikey::{generate_api_key, hash_api_key, random_hex};
pub use config::{Config, SchedulerConfig};
pub use error::{Error, Result};
pub use password::{
MAX_PASSWORD_CHARS, MIN_PASSWORD_CHARS, check_password_rules, generate_one_time_password,
hash_password, verify_password,
};
pub use priority::Priority;
pub use time::{iso8601_from_unix, now_iso8601};
/// Version des Nexus-Workspaces.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");