Skip to content

Commit

Permalink
Bump bitflags dependency to v2.0 (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-iqlusion authored Mar 14, 2023
1 parent 3e6cf9b commit edd2ad5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rust-version = "1.65"

[dependencies]
aes = "0.8"
bitflags = "1"
bitflags = "2"
cmac = "0.7"
cbc = "0.1"
ecdsa = { version = "0.16", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://raw.githubusercontent.com/iqlusioninc/yubihsm.rs/main/img/logo.png" width="150" height="110">

# yubihsm.rs [![crate][crate-image]][crate-link][![Docs][docs-image]][docs-link] ![Apache2/MIT licensed][license-image] ![MSRV][rustc-image] [![Build Status][build-image]][build-link] [![dependency status][deps-image]][deps-link]
# yubihsm.rs [![crate][crate-image]][crate-link] [![Docs][docs-image]][docs-link] ![Apache2/MIT licensed][license-image] ![MSRV][rustc-image] [![Build Status][build-image]][build-link] [![dependency status][deps-image]][deps-link]

Pure Rust client for [YubiHSM 2] devices from [Yubico].

Expand Down
1 change: 1 addition & 0 deletions src/capability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ bitflags! {
/// Object attributes specifying which operations are allowed to be performed
///
/// <https://developers.yubico.com/YubiHSM2/Concepts/Capability.html>
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct Capability: u64 {
/// `derive-ecdh`: perform ECDH operation
const DERIVE_ECDH = 0x800;
Expand Down
1 change: 1 addition & 0 deletions src/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ bitflags! {
/// basis. For more information, see the Yubico documentation:
///
/// <https://developers.yubico.com/YubiHSM2/Concepts/Domain.html>
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct Domain: u16 {
const DOM1 = 0x0001;
const DOM2 = 0x0002;
Expand Down

0 comments on commit edd2ad5

Please sign in to comment.