File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11# opaque-pointer-rs
2+
23Generic functions to work with opaque pointers when use FFI to expose Rust structs
34
45[ ![ Crates.io] ( https://img.shields.io/crates/v/opaque-pointer )] ( https://crates.io/crates/opaque-pointer )
56[ ![ Crates.io] ( https://img.shields.io/crates/l/opaque-pointer )] ( https://unlicense.org/ )
6- [ ![ Crates.io] ( https://img.shields.io/crates/d/opaque-pointer )] ( )
7+ [ ![ Crates.io] ( https://img.shields.io/crates/d/opaque-pointer )] ( . )
78
89## Basic usage
10+
911With this crate you can manage raw pointers easily to expose structs that will be
1012 use as opaque pointers from C or C++ calling to Rust functions to use it. This
1113 can be used with [ cbindgen] ( https://crates.io/crates/cbindgen ) crate with option ` parse.parse_deps = true ` for it will
1214 generate opaque C/C++ structs to use pointers in the arguments. You can find
1315 more information in [ The Rust FFI Omnibus objects section] ( http://jakegoulding.com/rust-ffi-omnibus/objects/ ) of Jake Goulding.
1416
1517Example:
18+
1619``` rust
1720struct TestIt {
1821 value : u8 ,
You can’t perform that action at this time.
0 commit comments