microsd 0.1.0

Light‐weight systemd auxiliars
Documentation
//! # Light‐weight systemd daemon auxiliars.
//!
//! This is a set of light‐weight functions to enable socket‐based activation
//! and service manager notification.
//!
//! Since the environment variables of a process cannot be safely modified in
//! a multi‐threaded setting, the relevant variables passed by the service
//! manager are processed during programme initialisation with the help of
//! the [`ctor`] crate.
//!
//! The primary interface are the [`listen_fds`] and [`notify_socket`]
//! functions. They are thread‐safe and can each be called only once,
//! consuming any data passed by the service manager.

#![cfg_attr(docsrs, feature(doc_cfg))]

mod env;
mod fd;
mod iter;
pub mod std;

#[cfg(test)]
mod tests;

#[cfg(feature = "compio")]
pub mod compio;

#[doc(no_inline)]
pub use nix::Error;

pub use env::*;
pub use fd::*;
pub use iter::*;