#![forbid(unsafe_code)]
pub mod auth;
pub mod error;
pub mod migrate;
mod store;
pub mod types;
pub use auth::{decrypt, encrypt, EncryptedBlob, MasterKey};
pub use error::{Result, StoreError};
pub use store::{epoch_secs, Store, IDEMPOTENCY_TTL_SECS};
pub use types::{
Action, ActionFilter, ActionInsert, Annotation, AnnotationTarget, AuthBlobMeta, Mark, Page,
Session, SessionStatus, SkillEntry, StoredRef,
};
#[must_use]
pub fn version() -> &'static str {
env!("CARGO_PKG_VERSION")
}
#[cfg(test)]
mod tests {
use super::version;
#[test]
fn version_matches_cargo_pkg_version() {
assert_eq!(version(), env!("CARGO_PKG_VERSION"));
}
}