From: Marc-André Lureau <marcandre.lur...@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- qga/lib.rs | 1 + qga/meson.build | 1 + qga/qapi.rs | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 qga/qapi.rs
diff --git a/qga/lib.rs b/qga/lib.rs index 17cf43a5e9..7f62788ff6 100644 --- a/qga/lib.rs +++ b/qga/lib.rs @@ -1 +1,2 @@ +mod qapi; mod qapi_ffi; diff --git a/qga/meson.build b/qga/meson.build index f2064c1874..16775bc905 100644 --- a/qga/meson.build +++ b/qga/meson.build @@ -58,6 +58,7 @@ qga_rs = declare_dependency() if with_rust qga_qapi_rs_outputs = [ 'qga-qapi-ffi-types.rs', + 'qga-qapi-types.rs', ] qapi_gen_rs_files = custom_target('QGA QAPI Rust bindings', diff --git a/qga/qapi.rs b/qga/qapi.rs new file mode 100644 index 0000000000..e4b9113300 --- /dev/null +++ b/qga/qapi.rs @@ -0,0 +1,6 @@ +#![allow(dead_code)] +use common::*; + +new_ptr!(); + +include!(concat!(env!("MESON_BUILD_ROOT"), "/qga/qga-qapi-types.rs")); -- 2.33.0.113.g6c40894d24