Skip to content

Commit

Permalink
Merge pull request #548 from CosmWasm/530-refactor-indexes-into-module
Browse files Browse the repository at this point in the history
Refactor indexes into module
  • Loading branch information
maurolacy authored Nov 15, 2021
2 parents 30affd4 + 481d66b commit 37d9988
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 37d9988

Please sign in to comment.