hyperopt_storage/lib.rs
1//! # hyperopt-storage
2//!
3//! Storage backends for `hyperopt-rs`. A [`hyperopt_core::Storage`] backend
4//! decides where a study's trial history lives.
5//!
6//! - [`InMemoryStorage`] — a `Vec`/map behind a lock; zero setup, no
7//! persistence across process restarts. The default for quick runs.
8//! - [`SqliteStorage`] — trials persisted to a SQLite file (feature `sqlite`,
9//! on by default), so a study can be resumed after a restart and multiple
10//! local processes can share one study file.
11
12mod memory;
13pub use memory::InMemoryStorage;
14
15#[cfg(feature = "sqlite")]
16mod sqlite;
17#[cfg(feature = "sqlite")]
18pub use sqlite::SqliteStorage;