src/lib.rs

fuel-core · crates/services/src/lib.rs · rust · Apache-2.0
infra

Core traits and utilities for managing service lifecycles in Rust.

// Source: https://github.com/FuelLabs/fuel-core | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Common traits and logic for managing the lifecycle of services
#![deny(clippy::arithmetic_side_effects)]
#![deny(clippy::cast_possible_truncation)]
#![deny(unused_crate_dependencies)]
#![deny(missing_docs)]
#![deny(warnings)]

mod async_processor;
pub mod seqlock;
mod service;
mod state;
mod sync;
#[cfg(feature = "sync-processor")]
mod sync_processor;
pub mod yield_stream;

/// Re-exports for streaming utilities
pub mod stream {
    #[doc(no_inline)]
    pub use futures::stream::{
        Stream,
        pending,
        unfold,
    };

    /// A `Send` + `Sync` BoxStream with stat

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key