Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
make sure to only export conditional aliases under the same condition…
Browse files Browse the repository at this point in the history
…s where they are defined
  • Loading branch information
bonsairobo committed Dec 17, 2020
1 parent 92319fd commit c3b7e66
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions crates/building_blocks_storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,26 @@ pub mod prelude {
copy_extent, Array, Array2, Array3, ArrayN, Chunk, Chunk2, Chunk3, ChunkHashMap2,
ChunkHashMap3, ChunkIndexer, ChunkMap, ChunkMap2, ChunkMap3, ChunkMapBuilder,
ChunkMapBuilder2, ChunkMapBuilder3, ChunkReadStorage, ChunkWriteStorage, Compressed,
CompressibleChunkMap, CompressibleChunkMap2, CompressibleChunkMap3,
CompressibleChunkMapReader, CompressibleChunkMapReader2, CompressibleChunkMapReader3,
CompressibleChunkStorage, CompressibleChunkStorage2, CompressibleChunkStorage3,
CompressibleChunkStorageReader, CompressibleChunkStorageReader2,
CompressibleChunkStorageReader3, Compression, FastArrayCompression, FastChunkCompression,
CompressibleChunkMap, CompressibleChunkMapReader, CompressibleChunkStorage,
CompressibleChunkStorageReader, Compression, FastArrayCompression, FastChunkCompression,
ForEach, ForEachMut, Get, GetMut, IsEmpty, IterChunkKeys, Local, LocalChunkCache,
LocalChunkCache2, LocalChunkCache3, MaybeCompressedChunk2, MaybeCompressedChunk3,
MaybeCompressedChunkRef2, MaybeCompressedChunkRef3, OctreeSet, ReadExtent,
SerializableChunkMap, Stride, TransformMap, WriteExtent,
LocalChunkCache2, LocalChunkCache3, OctreeSet, ReadExtent, SerializableChunkMap, Stride,
TransformMap, WriteExtent,
};

#[cfg(feature = "lz4")]
pub use super::Lz4;
#[cfg(feature = "snap")]
pub use super::Snappy;

#[cfg(any(
all(feature = "lz4", not(feature = "snap")),
all(not(feature = "lz4"), feature = "snap"),
))]
pub use super::{
CompressibleChunkMap2, CompressibleChunkMap3, CompressibleChunkMapReader2,
CompressibleChunkMapReader3, CompressibleChunkStorage2, CompressibleChunkStorage3,
CompressibleChunkStorageReader2, CompressibleChunkStorageReader3, MaybeCompressedChunk2,
MaybeCompressedChunk3, MaybeCompressedChunkRef2, MaybeCompressedChunkRef3,
};
}

0 comments on commit c3b7e66

Please sign in to comment.