Skip to main content

wireshift_core/
lib.rs

1#![cfg_attr(
2    not(test),
3    deny(
4        clippy::unwrap_used,
5        clippy::expect_used,
6        clippy::todo,
7        clippy::unimplemented,
8        clippy::panic
9    )
10)]
11#![warn(clippy::pedantic)]
12#![deny(unsafe_op_in_unsafe_fn)]
13//! Core primitives for `wireshift`.
14//!
15//! `wireshift-core` defines the typed operation model, pooled buffer
16//! lifecycle, completion routing, and backend traits that every higher-level
17//! crate in the workspace builds on.
18
19#![warn(missing_docs)]
20#![allow(clippy::module_name_repetitions, clippy::missing_errors_doc)]
21#![cfg_attr(not(test), deny(clippy::unwrap_used))]
22pub mod backend;
23pub mod buffer;
24pub mod completion;
25pub mod config;
26pub mod error;
27pub mod op;
28pub mod ops;
29pub mod ring;
30pub mod strategy;
31
32pub use backend::{
33    AnyBackend, Backend, BackendCompletion, BackendFactory, BackendKind, BoxedBackend,
34};
35pub use buffer::{Buffer, BufferPool, Completed, Owned, Submitted};
36pub use completion::{CompletionEvent, CompletionKind, Request};
37pub use config::{BackendPreference, RegisteredBufferConfig, RingConfig};
38pub use error::{Error, Result};
39pub use op::Op;
40pub use ring::{ChainContext, Ring};