Skip to main content

libaipm/
lib.rs

1//! Core library for AIPM — AI Plugin Manager.
2//!
3//! This crate contains the shared logic used by both the `aipm` consumer binary
4//! and the `aipm-pack` author binary: manifest parsing, dependency resolution,
5//! content-addressable store, lockfile management, and linking.
6
7pub mod fs;
8pub mod init;
9pub mod manifest;
10pub mod migrate;
11pub mod version;
12pub mod workspace_init;
13
14/// Returns the library version.
15#[must_use]
16pub const fn version() -> &'static str {
17    env!("CARGO_PKG_VERSION")
18}
19
20#[cfg(test)]
21mod tests {
22    use super::*;
23
24    #[test]
25    fn version_is_not_empty() {
26        assert!(!version().is_empty());
27    }
28}