recutils-rs
Rust FFI bindings to GNU recutils (librec).
The crate has two layers:
- A raw
unsafeFFI underrecutils_rs::ffi, generated at build time bybindgenfrom<rec.h>— covers the fullrec_*/REC_*/MSET_*surface. - A small safe wrapper at the crate root:
Db(parse + construct empty),Rset(borrowed from a parsedDb),OwnedRset(freshly built, transferred into aDbviaDb::append_rset),Record,SelectionExpression, etc.
The optional arrow feature covers both directions: rec_to_record_batch reads an rset into Arrow, and record_batches_to_rec_string serializes Arrow batches back to rec text with %rec: / %type: / %mandatory: declarations derived from the schema.
Status
The raw FFI is complete; the safe layer is intentionally minimal to what's needed in recsql and rec2parquet.