rpm-ostree/cbindgen.toml
Colin Walters 764de41cc6 Switch to using cxx-rs for treefile
This is one half of https://github.com/coreos/rpm-ostree/issues/2544
which aims to drop our use of `cbindgen`.
2021-02-11 15:44:38 -05:00

21 lines
743 B
TOML

autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
language = "C"
header = "#pragma once\n#include \"rpmostree-rust-prelude.h\"\nG_BEGIN_DECLS\n"
trailer = """
G_END_DECLS
"""
[export]
prefix = "ROR"
# Here we exclude entries belonging to the C side which we use on the Rust side and so
# doesn't make sense to re-export.
exclude = ["RpmOstreeOrigin",
"rpmostree_get_repodata_chksum_repr",
"rpmostree_origin_get_live_state" ]
[parse]
# We don't want cbindgen to parse libdnf-sys, since we're clients of the library, not
# providers. This should already be guaranteed by `parse_deps` being `false`, but include
# this here too to be explicit.
exclude = ["libdnf-sys"]