No need for specific feature, use std instead

This commit is contained in:
Egor Duda
2022-06-05 22:40:32 +03:00
parent f2cb2f72e7
commit c0299c3225
3 changed files with 3 additions and 4 deletions

View File

@@ -12,4 +12,3 @@ tempfile = "3"
[features] [features]
std = [] std = []
hostenv = ["std"]

View File

@@ -365,7 +365,7 @@ extern crate alloc;
mod buffer; mod buffer;
#[cfg(feature = "std")] #[cfg(feature = "std")]
mod driver; mod driver;
#[cfg(feature = "hostenv")] #[cfg(feature = "std")]
mod file; mod file;
mod format; mod format;
pub mod fragment; pub mod fragment;
@@ -382,7 +382,7 @@ pub use self::buffer::{BufferCorruptFunction, BufferOptions, BufferStorage};
pub use self::driver::{ pub use self::driver::{
StoreDriver, StoreDriverOff, StoreDriverOn, StoreInterruption, StoreInvariant, StoreDriver, StoreDriverOff, StoreDriverOn, StoreInterruption, StoreInvariant,
}; };
#[cfg(feature = "hostenv")] #[cfg(feature = "std")]
pub use self::file::FileStorage; pub use self::file::FileStorage;
#[cfg(feature = "std")] #[cfg(feature = "std")]
pub use self::model::{StoreModel, StoreOperation}; pub use self::model::{StoreModel, StoreOperation};

View File

@@ -120,7 +120,7 @@ then
cargo test --features std cargo test --features std
cd ../.. cd ../..
cd libraries/persistent_store cd libraries/persistent_store
cargo test --features std,hostenv cargo test --features std
cd ../.. cd ../..
cargo test --features std cargo test --features std