Skip to content

Commit

Permalink
Merge pull request #153 from open-quantum-safe/update-edition
Browse files Browse the repository at this point in the history
Bump rust edition and derive Eq
  • Loading branch information
thomwiggers authored Aug 15, 2022
2 parents f8e3291 + 9d2969a commit 31808e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion oqs-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "oqs-sys"
version = "0.7.1"
authors = ["Thom Wiggers <[email protected]>"]
edition = "2018"
edition = "2021"
links = "oqs"
description = "Bindings to liboqs"
readme = "../README.md"
Expand Down
2 changes: 1 addition & 1 deletion oqs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "oqs"
version = "0.7.1"
authors = ["Thom Wiggers <[email protected]>"]
edition = "2018"
edition = "2021"
description = "A Rusty interface to Open-Quantum-Safe's liboqs"
readme = "../README.md"
repository = "https://github.com/open-quantum-safe/liboqs-rust"
Expand Down
4 changes: 2 additions & 2 deletions oqs/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ macro_rules! newtype_buffer {
/// New owned buffer
///
/// Optional support for `serde` if that feature is enabled.
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct $name {
bytes: Vec<u8>,
Expand All @@ -24,7 +24,7 @@ macro_rules! newtype_buffer {
///
/// Allows for copy-less usage
/// Construct it through the algorithm API functions
#[derive(Debug, Clone, Copy, PartialEq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct $name_ref<'a> {
bytes: &'a [u8],
}
Expand Down

0 comments on commit 31808e3

Please sign in to comment.