Skip to main content

baracuda_core/
lib.rs

1//! Runtime machinery shared across baracuda crates.
2//!
3//! - [`error`] — loader errors, a generic per-library `Error<S>`, and the
4//!   library-erased `BaracudaError`.
5//! - [`loader`] — the dynamic loader wrapper used by every `-sys` crate.
6//! - [`platform`] — OS detection and default library search paths.
7//! - [`stream_mode`] — process-wide default-stream-semantics selector.
8//!
9//! Depending on this crate pulls in `libloading`. Crates that only need the
10//! type vocabulary should depend on `baracuda-types` instead.
11
12#![warn(missing_debug_implementations)]
13
14pub mod error;
15pub mod loader;
16pub mod platform;
17pub mod stream_mode;
18
19pub use baracuda_types::{CudaStatus, CudaVersion, Feature, StreamMode};
20pub use error::{BaracudaError, Error, LoaderError};
21pub use loader::Library;