aboutsummaryrefslogtreecommitdiff
path: root/patches/deprecated.diff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2020-09-20 04:46:26 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-09-20 11:46:45 +0200
commit483ec7256d6c4d01ba6c41513fdf8bbd7df6b4b3 (patch)
tree1731929765dc470e66ab714bc6ad79e2cd2521eb /patches/deprecated.diff
parent90bcfc8cc905b09d99064fc17a745c8ae2288c62 (diff)
downloadnitrokey-sys-rs-483ec7256d6c4d01ba6c41513fdf8bbd7df6b4b3.tar.gz
nitrokey-sys-rs-483ec7256d6c4d01ba6c41513fdf8bbd7df6b4b3.tar.bz2
Re-generate bindings in src/ffi.rs
Older versions of bindgen rendered C++ doc comments as Rust doc comments using the /// syntax. Newer versions use the doc attribute instead. This patch re-generates the src/ffi.rs file with bindgen 0.55.1 so that it uses the new format. This makes it easier to perform changes in the future.
Diffstat (limited to 'patches/deprecated.diff')
-rw-r--r--patches/deprecated.diff8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/deprecated.diff b/patches/deprecated.diff
index dff4b55..a7d2359 100644
--- a/patches/deprecated.diff
+++ b/patches/deprecated.diff
@@ -6,10 +6,10 @@ Index: nitrokey-sys-rs/src/ffi.rs
===================================================================
--- nitrokey-sys-rs.orig/src/ffi.rs
+++ nitrokey-sys-rs/src/ffi.rs
-@@ -763,6 +763,7 @@ extern "C" {
- /// deprecated in favor of NK_get_status_as_string.
- /// @return string representation of the status or an empty string
- /// if the command failed
+@@ -762,6 +762,7 @@ extern "C" {
+ #[doc = " deprecated in favor of NK_get_status_as_string."]
+ #[doc = " @return string representation of the status or an empty string"]
+ #[doc = " if the command failed"]
+ #[deprecated(since = "3.5.0", note="use `NK_get_status_as_string` instead")]
pub fn NK_status() -> *mut ::std::os::raw::c_char;
}