Skip to content

Commit

Permalink
Refactor indexes into its own module
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Nov 15, 2021
1 parent 264e84b commit 6eb222d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// this module requires iterator to be useful at all
#![cfg(feature = "iterator")]
mod multi;
mod unique;

pub use multi::MultiIndex;
pub use unique::UniqueIndex;

use serde::de::DeserializeOwned;
use serde::Serialize;
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 4 additions & 6 deletions packages/storage-plus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,27 @@ mod item;
mod iter_helpers;
mod keys;
mod map;
mod multi_index;
mod path;
mod prefix;
mod snapshot;
mod unique_index;

pub use endian::Endian;
#[cfg(feature = "iterator")]
pub use indexed_map::{IndexList, IndexedMap};
#[cfg(feature = "iterator")]
pub use indexed_snapshot::IndexedSnapshotMap;
#[cfg(feature = "iterator")]
pub use indexes::MultiIndex;
#[cfg(feature = "iterator")]
pub use indexes::UniqueIndex;
#[cfg(feature = "iterator")]
pub use indexes::{index_string, index_string_tuple, index_triple, index_tuple, Index};
pub use item::Item;
pub use keys::{I128Key, I16Key, I32Key, I64Key, I8Key};
pub use keys::{Prefixer, PrimaryKey, U128Key, U16Key, U32Key, U64Key, U8Key};
pub use map::Map;
#[cfg(feature = "iterator")]
pub use multi_index::MultiIndex;
pub use path::Path;
#[cfg(feature = "iterator")]
pub use prefix::{range_with_prefix, Bound, Prefix};
#[cfg(feature = "iterator")]
pub use snapshot::{SnapshotItem, SnapshotMap, Strategy};
#[cfg(feature = "iterator")]
pub use unique_index::UniqueIndex;

0 comments on commit 6eb222d

Please sign in to comment.