From a51fc8ae300602c0ecb6065657a4e240bc008505 Mon Sep 17 00:00:00 2001 From: Georg Bramm Date: Sun, 19 May 2024 01:14:19 +0200 Subject: [PATCH] final v0.4.0 --- Cargo.toml | 2 +- rabe-console/Cargo.toml | 2 +- src/utils/policy/pest/mod.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 59d6df2..061b550 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rabe" -version = "0.4.1" +version = "0.4.0" description = "ABE Schemes implemented in rust." authors = [ "Schanzenbach, Martin ", diff --git a/rabe-console/Cargo.toml b/rabe-console/Cargo.toml index 22d9d2c..af00199 100644 --- a/rabe-console/Cargo.toml +++ b/rabe-console/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rabe-console" -version = "0.4.1" +version = "0.4.0" description = "Console App for the ABE Schemes implemented in rabe." authors = [ "Schanzenbach, Martin ", diff --git a/src/utils/policy/pest/mod.rs b/src/utils/policy/pest/mod.rs index d90dd15..e6913bc 100644 --- a/src/utils/policy/pest/mod.rs +++ b/src/utils/policy/pest/mod.rs @@ -3,7 +3,7 @@ use std::string::String; use crate::error::RabeError; use self::human::HumanPolicyParser; use self::json::JSONPolicyParser; -#[cfg(not(feature = "borsh"))] +#[cfg(feature = "serde")] use serde::{Serialize, Deserialize}; #[cfg(feature = "borsh")] use borsh::{BorshSerialize, BorshDeserialize}; @@ -14,7 +14,7 @@ pub(crate) mod human; /// Policy Language Type. Currently two types are available: #[derive(Copy, Clone, PartialEq, Eq, Debug)] #[cfg_attr(feature = "borsh", derive(BorshSerialize, BorshDeserialize))] -#[cfg_attr(not(feature = "borsh"), derive(Serialize, Deserialize))] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub enum PolicyLanguage { /// A JSON policy language JsonPolicy,