recutils-rs 0.1.0

Rust FFI bindings to GNU recutils (librec) with an optional Arrow conversion layer
docs.rs failed to build recutils-rs-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: recutils-rs-0.1.1

recutils-rs

Rust FFI bindings to GNU recutils (librec).

The crate has two layers:

  • A raw unsafe FFI under recutils_rs::ffi, generated at build time by bindgen from <rec.h> — covers the full rec_* / REC_* / MSET_* surface.
  • A small safe wrapper at the crate root: Db (parse + construct empty), Rset (borrowed from a parsed Db), OwnedRset (freshly built, transferred into a Db via Db::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.