diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-09-05 11:59:07 +0200 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-09-05 11:59:07 +0200 |
commit | 70ea2c55d16e0a958c5694be3b4e9f086ce09844 (patch) | |
tree | d6d86d9367a20da185e68e905ee8c6ce2610f77e | |
parent | 3b174bb8ac962a8054a369d7191f910f478807a8 (diff) | |
download | nitrokey-rs-70ea2c55d16e0a958c5694be3b4e9f086ce09844.tar.gz nitrokey-rs-70ea2c55d16e0a958c5694be3b4e9f086ce09844.tar.bz2 |
Export the FirmwareVersion struct
This patch adds the FirmwareVersion struct to the re-exports in lib.rs.
Previosuly, nitrokey users where able to access FirmwareVersion values
as part of the Status struct and the Device::get_firmware_version method
but could not see its definition.
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | src/lib.rs | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 121d0a2..cd43612 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Copyright (C) 2019-2020 Robin Krahl <robin.krahl@ireas.org> SPDX-License-Identifier: CC0-1.0 --> +# Unreleased +- Export the `FirmwareVersion` struct. + # v0.7.1 (2020-08-30) - Remove the custom `std::error::Error::source` implementation for `error::Error` to avoid duplicate error messages. @@ -136,8 +136,8 @@ use std::sync; pub use crate::auth::{Admin, Authenticate, User}; pub use crate::config::Config; pub use crate::device::{ - Device, DeviceInfo, DeviceWrapper, Model, OperationStatus, Pro, SdCardData, SerialNumber, - Status, Storage, StorageProductionInfo, StorageStatus, VolumeMode, VolumeStatus, + Device, DeviceInfo, DeviceWrapper, FirmwareVersion, Model, OperationStatus, Pro, SdCardData, + SerialNumber, Status, Storage, StorageProductionInfo, StorageStatus, VolumeMode, VolumeStatus, }; pub use crate::error::{CommandError, CommunicationError, Error, LibraryError}; pub use crate::otp::{ConfigureOtp, GenerateOtp, OtpMode, OtpSlotData}; |