Skip to content

Commit a7c03db

Browse files
committed
chore: Release v0.8.2
1 parent d067b26 commit a7c03db

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "opaque-pointer"
3-
version = "0.8.1"
3+
version = "0.8.2"
44
description = "Generic functions to work with opaque pointers when use FFI to expose Rust structs"
55
authors = ["Jesus Hernandez <jesushdez@protonmail.com>"]
66
license = "Unlicense"
@@ -25,4 +25,4 @@ log = "^0"
2525
lazy_static = { version = "^1", optional = true }
2626

2727
[package.metadata.docs.rs]
28-
features = ["std", "c-types"]
28+
features = ["std", "lender"]

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ You can find more information about using Rust from other languages in
1717
[The Rust FFI Omnibus objects section](http://jakegoulding.com/rust-ffi-omnibus/objects/)
1818
of [Jake Goulding](https://github.com/shepmaster).
1919

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+
2025
## Examples
2126

2227
Creating FFIs to use a Rust's `struct` methods from C or C++:

0 commit comments

Comments
 (0)