Skip to main content

mnemo_db/
lib.rs

1//! # `mnemo-db` — name-reservation pointer (intentionally empty)
2//!
3//! **This crate ships no functionality.** `mnemo` — an MCP-native memory
4//! database for AI agents — is published to crates.io as a set of focused
5//! crates, not as a single `mnemo-db` crate. Install what you need:
6//!
7//! ```text
8//! cargo add mnemo-core   # embeddable memory engine: storage, vector + full-text
9//!                        # search, hash-chained tamper-evident audit log
10//! cargo add mnemo-mcp    # MCP server exposing REMEMBER / RECALL / FORGET / SHARE
11//! ```
12//!
13//! Also on crates.io: [`mnemo-compliance`](https://crates.io/crates/mnemo-compliance)
14//! (regulatory mappings) and [`mnemo-attention-state`](https://crates.io/crates/mnemo-attention-state).
15//!
16//! Source, docs, and the full crate list:
17//! <https://github.com/sattyamjjain/mnemo>
18//!
19//! ## Why this crate exists
20//!
21//! The unqualified `mnemo` name on crates.io is held by an unrelated crate, so
22//! a Rust user might reach for `mnemo-db` by analogy. This crate reserves that
23//! name and points at the real crates instead of leaving it to a squatter.
24//!
25//! ## Not the Python package
26//!
27//! The Python bindings are distributed **on PyPI** as `mnemo-db`
28//! (`pip install mnemo-db`) — a separate registry and a real, functional
29//! package. This crates.io Rust crate is only a pointer; do not confuse the two.
30
31/// The crates that actually implement mnemo. See the crate-level documentation
32/// for install commands.
33pub const SEE_INSTEAD: &[&str] = &["mnemo-core", "mnemo-mcp", "mnemo-compliance"];
34
35/// Canonical project URL.
36pub const REPOSITORY: &str = "https://github.com/sattyamjjain/mnemo";
37
38#[cfg(test)]
39mod tests {
40    use super::*;
41
42    #[test]
43    fn pointer_names_the_real_crates() {
44        assert!(SEE_INSTEAD.contains(&"mnemo-core"));
45        assert!(SEE_INSTEAD.contains(&"mnemo-mcp"));
46        assert!(REPOSITORY.starts_with("https://github.com/sattyamjjain/mnemo"));
47    }
48}