diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/ffi.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index c5bf152..feca334 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Unreleased +- Mark deprecated functions using the `deprecated` attribute. - Update to libnitrokey 3.5, causing all following changes. - New constant `NK_PWS_SLOT_COUNT`. - New structures: @@ -759,6 +759,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 + #[deprecated(since = "3.5.0", note="use `NK_get_status_as_string` instead")] pub fn NK_status() -> *mut ::std::os::raw::c_char; } extern "C" { @@ -1013,6 +1014,7 @@ extern "C" { pub fn NK_totp_set_time_soft(time: u64) -> ::std::os::raw::c_int; } extern "C" { + #[deprecated(since = "3.4.0", note="use `NK_totp_set_time_soft` instead")] pub fn NK_totp_get_time() -> ::std::os::raw::c_int; } extern "C" { |