From c0299c3225103a31dd9f9cc3fa49a928b146431a Mon Sep 17 00:00:00 2001 From: Egor Duda Date: Sun, 5 Jun 2022 22:40:32 +0300 Subject: [PATCH] No need for specific feature, use std instead --- libraries/persistent_store/Cargo.toml | 1 - libraries/persistent_store/src/lib.rs | 4 ++-- run_desktop_tests.sh | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libraries/persistent_store/Cargo.toml b/libraries/persistent_store/Cargo.toml index 7c778f8..b01cfdb 100644 --- a/libraries/persistent_store/Cargo.toml +++ b/libraries/persistent_store/Cargo.toml @@ -12,4 +12,3 @@ tempfile = "3" [features] std = [] -hostenv = ["std"] diff --git a/libraries/persistent_store/src/lib.rs b/libraries/persistent_store/src/lib.rs index 31332f5..a36d945 100644 --- a/libraries/persistent_store/src/lib.rs +++ b/libraries/persistent_store/src/lib.rs @@ -365,7 +365,7 @@ extern crate alloc; mod buffer; #[cfg(feature = "std")] mod driver; -#[cfg(feature = "hostenv")] +#[cfg(feature = "std")] mod file; mod format; pub mod fragment; @@ -382,7 +382,7 @@ pub use self::buffer::{BufferCorruptFunction, BufferOptions, BufferStorage}; pub use self::driver::{ StoreDriver, StoreDriverOff, StoreDriverOn, StoreInterruption, StoreInvariant, }; -#[cfg(feature = "hostenv")] +#[cfg(feature = "std")] pub use self::file::FileStorage; #[cfg(feature = "std")] pub use self::model::{StoreModel, StoreOperation}; diff --git a/run_desktop_tests.sh b/run_desktop_tests.sh index 384ba4c..a7dad81 100755 --- a/run_desktop_tests.sh +++ b/run_desktop_tests.sh @@ -120,7 +120,7 @@ then cargo test --features std cd ../.. cd libraries/persistent_store - cargo test --features std,hostenv + cargo test --features std cd ../.. cargo test --features std