From da4d9e3d78cfe4f9eff9a7eff4010d173253f765 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Tue, 13 Feb 2024 21:36:09 +0100 Subject: [PATCH 1/2] warnings --- biscuit-auth/Cargo.toml | 2 +- biscuit-auth/src/crypto/mod.rs | 4 +++- biscuit-auth/src/token/authorizer.rs | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/biscuit-auth/Cargo.toml b/biscuit-auth/Cargo.toml index a78bde15..abcf20f6 100644 --- a/biscuit-auth/Cargo.toml +++ b/biscuit-auth/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "biscuit-auth" -version = "4.0.0" +version = "4.1.0" description = "an authorization token with decentralized verification and offline attenuation" authors = ["Geoffroy Couprie "] edition = "2018" diff --git a/biscuit-auth/src/crypto/mod.rs b/biscuit-auth/src/crypto/mod.rs index 37873ff9..c7ded117 100644 --- a/biscuit-auth/src/crypto/mod.rs +++ b/biscuit-auth/src/crypto/mod.rs @@ -16,7 +16,9 @@ use ed25519_dalek::*; use nom::Finish; use rand_core::{CryptoRng, RngCore}; -use std::{convert::TryInto, fmt::Display, hash::Hash, ops::Drop, path::Path, str::FromStr}; +#[cfg(feature = "pem")] +use std::path::Path; +use std::{convert::TryInto, fmt::Display, hash::Hash, ops::Drop, str::FromStr}; use zeroize::Zeroize; /// pair of cryptographic keys used to sign a token's block diff --git a/biscuit-auth/src/token/authorizer.rs b/biscuit-auth/src/token/authorizer.rs index 7162ca76..bed6eb6e 100644 --- a/biscuit-auth/src/token/authorizer.rs +++ b/biscuit-auth/src/token/authorizer.rs @@ -24,7 +24,6 @@ use std::{ }; mod snapshot; -pub use snapshot::*; /// used to check authorization policies on a token /// From c4a16e40599ed3fb7e746073d6969da76e96acd7 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Tue, 13 Feb 2024 21:46:31 +0100 Subject: [PATCH 2/2] update changelog --- biscuit-auth/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/biscuit-auth/CHANGELOG.md b/biscuit-auth/CHANGELOG.md index a47864cc..33e0fa06 100644 --- a/biscuit-auth/CHANGELOG.md +++ b/biscuit-auth/CHANGELOG.md @@ -1,5 +1,7 @@ # not released +# `4.1.0` + - fix: typo in documentation (#190) (Rémi Duraffort) - fix: include all authorizer facts and rules when using `Display` (#195) (Clément Delafargue) - Add optional support for PEM/DER parsing (#204) (Baran Yildirim)