about summary refs log tree commit diff
path: root/tests/embedded.rs
AgeCommit message (Collapse)Author
2026-10-14rustfmt: apply rustfmt across the treeAlexander_Kabui
Pure formatting sweep (import ordering, line wrapping); the tree had accumulated rustfmt drift. Separated from any semantic change so it stays reviewable and revertable on its own.
2026-10-11guix: build xapian-rs with libclang 13, not 22Pjotr
autocxx-bindgen with libclang 22 mis-parses Xapian 1.4.29: the C++ it generates for xapian-rs instantiates the abstract Xapian::Weight (via a bogus std::vector<Xapian::Weight> bridge) and emits an out-of-scope '::op', so the build failed in the cargo build phase. The xapian-rs fork was built (and target/ produced) with libclang 13.0.1, whose parse is correct. Depend on clang-13 and point LIBCLANG_PATH at it in the set-duckdb-paths phase. (clang-13's package name is "clang", so it replaces the clang-22 input rather than colliding with it.) Also create the scratch directory in tests/embedded.rs: the SQLite test opened test.db under a directory that did not exist yet. guix build -f guix.scm now completes end to end (Rust check phase and the Python REST suite), producing /gnu/store/3avgh789ffy3lrfiql334dghp9sa4sqd-genenetwork4-git-0.1.0.
2026-10-11Embedded stores: add LMDB, DuckDB and SQLite supportPjotr
Add src/embedded.rs with lmdb/duckdb/sqlite round-trip helpers and tests/embedded.rs integration tests: an LMDB put/get (surviving a fresh environment handle), an in-memory DuckDB query, and a SQLite query. Depend on the system libraries rather than bundled builds: duckdb 1.10506.0, lmdb 0.8.0 and rusqlite 0.40.2 with their default features, so the Guix build reuses libduckdb/liblmdb/libsqlite3 instead of compiling its own. Guix wiring (guix.scm): add the duckdb, lmdb and sqlite inputs ((gnu packages duckdb)/(gnu packages databases)/(gnu packages sqlite)), a set-duckdb-paths phase that points libduckdb-sys at the system libduckdb via DUCKDB_LIB_DIR/DUCKDB_INCLUDE_DIR (there is no duckdb.pc), and the 79 new crate sources in rust-package.scm (regenerated with `guix import crate -f Cargo.lock genenetwork4`).