search for: nomicon

Displaying 3 results from an estimated 3 matches for "nomicon".

2019 Jul 17
0
Re: [PATCH] Rust bindings: Add Rust bindings
...they can be optimized out. Also #[repr(C)] it. You should rather have a struct with an empty member: struct guestfs_handle { _unused: [u32; 0], } I'll try to find the official info in rust docs, I just do not know on which docs page it was. /me goes looking Oh yeah, it was in the nomicon: https://doc.rust-lang.org/nomicon/ffi.html#representing-opaque-structs It will be even nicer when RFC 1861 gets stabilized, but that's long long in the future, I guess: https://github.com/rust-lang/rust/issues/43467 Otherwise it looks very similar to what I started, so that should be g...
2019 Jul 17
2
[PATCH] Rust bindings: Add Rust bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com> Rust bindings: Add create / close functions Rust bindings: Add 4 bindings tests Rust bindings: Add generator of structs Rust bindings: Add generator of structs for optional arguments Rust bindings: Add generator of function signatures Rust bindings: Complete actions Rust bindings: Fix memory management Rust bindings: Add
2019 Jul 20
2
Re: [PATCH] Rust bindings: Add Rust bindings
...ould rather have a struct with an empty member: > > struct guestfs_handle { > _unused: [u32; 0], > } > > I'll try to find the official info in rust docs, I just do not know on > which > docs page it was. > > /me goes looking > > Oh yeah, it was in the nomicon: > > https://doc.rust-lang.org/nomicon/ffi.html#representing-opaque-structs > > It will be even nicer when RFC 1861 gets stabilized, but that's long long > in the > future, I guess: > > https://github.com/rust-lang/rust/issues/43467 > > Otherwise it looks very...