RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
21
zeroidc/vendor/cbindgen/tests/rust/forward_declaration.rs
vendored
Normal file
21
zeroidc/vendor/cbindgen/tests/rust/forward_declaration.rs
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
#[repr(C)]
|
||||
struct TypeInfo {
|
||||
data: TypeData,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
enum TypeData {
|
||||
Primitive,
|
||||
Struct(StructInfo),
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
struct StructInfo {
|
||||
fields: *const *const TypeInfo, // requires forward declaration
|
||||
num_fields: usize,
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn root(
|
||||
x: TypeInfo,
|
||||
) {}
|
||||
Reference in New Issue
Block a user