infraqueue-lib 0.1.0

Core library for INFRAQUEUE
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod cli;
pub mod config;
pub mod model;
pub mod queue;

pub use queue::{DequeueWithReceipt, InfraQueueQueue, NackOutcome, RetryPolicy};

/// Initialize logging for binaries using env_logger; idempotent.
/// Set RUST_LOG to control verbosity (e.g., "debug" or "actix_web=info,infraqueue=debug").
pub fn init_logging() {
    let _ = env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info"))
        .try_init();
}

pub fn add(left: u64, right: u64) -> u64 {
    left + right
}