16be1a0bad
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
25 lines
398 B
TOML
25 lines
398 B
TOML
[package]
|
|
name = "rpmostree-rust"
|
|
version = "0.1.0"
|
|
authors = ["Colin Walters <walters@verbum.org>"]
|
|
|
|
[dependencies]
|
|
serde = "1.0"
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
serde_yaml = "0.7"
|
|
libc = "0.2"
|
|
glib-sys = "0.6.0"
|
|
gio-sys = "0.6.0"
|
|
glib = "0.5.0"
|
|
tempfile = "3.0.3"
|
|
|
|
[lib]
|
|
name = "rpmostree_rust"
|
|
path = "src/lib.rs"
|
|
crate-type = ["staticlib"]
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
lto = true
|