File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " opaque-pointer"
3
- version = " 0.8.1 "
3
+ version = " 0.8.2 "
4
4
description = " Generic functions to work with opaque pointers when use FFI to expose Rust structs"
5
5
authors = [" Jesus Hernandez <jesushdez@protonmail.com>" ]
6
6
license = " Unlicense"
@@ -25,4 +25,4 @@ log = "^0"
25
25
lazy_static = { version = " ^1" , optional = true }
26
26
27
27
[package .metadata .docs .rs ]
28
- features = [" std" , " c-types " ]
28
+ features = [" std" , " lender " ]
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ You can find more information about using Rust from other languages in
17
17
[ The Rust FFI Omnibus objects section] ( http://jakegoulding.com/rust-ffi-omnibus/objects/ )
18
18
of [ Jake Goulding] ( https://github.com/shepmaster ) .
19
19
20
+ ## Lender feature
21
+
22
+ If you activate the feature ` lender ` the functions like ` own_back<T>() ` will check if the pointer is valid.
23
+ It means, the function result will be a error if the pointer was not returned by ` raw<T>() ` .
24
+
20
25
## Examples
21
26
22
27
Creating FFIs to use a Rust's ` struct ` methods from C or C++:
You can’t perform that action at this time.
0 commit comments