rpm-ostree/rust
Colin Walters 16be1a0bad rust: Rework treefile to be an object
In a later patch I'm going to add more API; basically rather
than doing the JSON parsing from C, we can add APIs to directly
access the treefile object.  This also demonstrates how we
can do more extensive APIs, in particular implement an "object"
in Rust.

The ownership across the FFI boundary becomes nicer here too,
we don't need to do a dance with the fd.

For writing this I found
http://jakegoulding.com/rust-ffi-omnibus/objects/
quite useful, as well as
https://github.com/rust-lang/regex/blob/master/regex-capi/src/rure.rs

Closes: #1474
Approved by: jlebon
2018-07-30 18:54:48 +00:00
..
include rust: Rework treefile to be an object 2018-07-30 18:54:48 +00:00
src rust: Rework treefile to be an object 2018-07-30 18:54:48 +00:00
.gitignore build-sys: Add some gitignore for Rust bits 2018-06-11 13:08:41 +00:00
cargo-vendor-config Add support for YAML treefiles 2018-06-05 13:08:33 +00:00
Cargo.toml rust: Rework treefile to be an object 2018-07-30 18:54:48 +00:00