API question & Rust API bindings



Hi,

I've been trying to build my own version of ostree-push [1], mostly for learning purposes. I'm pulling objects from the source repo using ostree_repo_load_object_stream, but there doesn't seem to be an equivalent function for writing objects. I thought ostree_repo_write_content would be that, but it appears to only understand file objects, feeding it metadata objects just makes it error. I suspect I might have to use ostree_repo_write_metadata for, well, metadata (I haven't had a chance to try yet). But that seems fiddly; is there something I'm missing here?

---

And, semi-unrelated to that, I built some Rust bindings for libostree, automatically generated from the gobject-introspection metadata. They're pretty incomplete because I only needed Repo so that's all I added for now. The code lives here: https://gitlab.com/fkrull/rust-libostree There's also a crates.io release: https://crates.io/crates/libostree

-Felix

[1] https://github.com/dbnicholson/ostree-push
[2] https://github.com/gtk-rs/gir


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]