Skip to content

Commit

Permalink
bumps up
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Jun 10, 2022
2 parents 00ba69d + 4da337c commit 4b0ebc5
Show file tree
Hide file tree
Showing 15 changed files with 450 additions and 488 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ tokio = {version = "1.19", features = ["rt-multi-thread", "test-util"]}

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
22 changes: 13 additions & 9 deletions src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,15 +583,19 @@ mod test;
use crate::Item as CrateItem;
use std::time::Duration;

cfg_sync!(
mod sync;
pub use sync::{Cache, CacheBuilder};
);

cfg_async!(
mod axync;
pub use axync::{AsyncCacheBuilder, AsyncCache};
);
#[cfg(feature = "sync")]
#[cfg_attr(docsrs, doc(cfg(feature = "sync")))]
mod sync;
#[cfg(feature = "sync")]
#[cfg_attr(docsrs, doc(cfg(feature = "sync")))]
pub use sync::{Cache, CacheBuilder};

#[cfg(feature = "async")]
#[cfg_attr(docsrs, doc(cfg(feature = "async")))]
mod axync;
#[cfg(feature = "async")]
#[cfg_attr(docsrs, doc(cfg(feature = "async")))]
pub use axync::{AsyncCache, AsyncCacheBuilder};

// TODO: find the optimal value for this
const DEFAULT_INSERT_BUF_SIZE: usize = 32 * 1024;
Expand Down
Loading

0 comments on commit 4b0ebc5

Please sign in to comment.