From 8e2471c109a648a19cdaa20b9e80fb90bbb01ac5 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Sat, 29 Apr 2023 08:28:25 +0200 Subject: [PATCH] Expose bincode completely --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/crypto_wrapper.rs | 2 +- src/lib.rs | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6b3829f..2f835cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -478,7 +478,7 @@ checksum = "6a987beff54b60ffa6d51982e1aa1146bc42f19bd26be28b0586f252fccf5317" [[package]] name = "light-openid" -version = "0.2.0-alpha" +version = "0.2.1-alpha" dependencies = [ "aes-gcm", "base64", diff --git a/Cargo.toml b/Cargo.toml index 68d520c..a083cd8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "light-openid" -version = "0.2.0-alpha" +version = "0.2.1-alpha" edition = "2021" repository = "https://gitea.communiquons.org/pierre/light-openid" authors = ["Pierre HUBERT "] diff --git a/src/crypto_wrapper.rs b/src/crypto_wrapper.rs index 3e09ba0..4e33513 100644 --- a/src/crypto_wrapper.rs +++ b/src/crypto_wrapper.rs @@ -5,7 +5,7 @@ use aes_gcm::aead::{Aead, OsRng}; use aes_gcm::{Aes256Gcm, Key, KeyInit, Nonce}; use base64::engine::general_purpose::STANDARD as BASE64_STANDARD; use base64::Engine as _; -pub use bincode::{Decode, Encode}; +use bincode::{Decode, Encode}; use rand::Rng; /// The lenght of the nonce used to initialize encryption diff --git a/src/lib.rs b/src/lib.rs index ef3892e..3fdcfb9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,3 +9,6 @@ pub mod primitives; #[cfg(feature = "crypto-wrapper")] pub mod crypto_wrapper; + +#[cfg(feature = "crypto-wrapper")] +pub use bincode; \ No newline at end of file