rpm-ostree/rust/libdnf-sys
Jonathan Lebon b640892f04 libdnf-sys: Drop C API, replace with cxx.rs bridge
Right now, we're using libdnf APIs from Rust via hand-crafted `extern C`
interfaces, which is extra dangerous because there is no signature
checking that happens at compile-time.

Until either we can automate libdnf bindings or use its C++ API directly
via cxx.rs, let's do some basic wrapping in C++ ourselves and use libdnf
through that API only instead. That gives us a lot more confidence and
makes the libdnf API feel more natural to use in Rust.
2021-02-10 13:39:38 -05:00
..
cxx libdnf-sys: Drop C API, replace with cxx.rs bridge 2021-02-10 13:39:38 -05:00
build.rs libdnf-sys: Drop C API, replace with cxx.rs bridge 2021-02-10 13:39:38 -05:00
Cargo.toml libdnf-sys: Drop C API, replace with cxx.rs bridge 2021-02-10 13:39:38 -05:00
lib.rs libdnf-sys: Drop C API, replace with cxx.rs bridge 2021-02-10 13:39:38 -05:00