-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Control if redis uses async-std or tokio via feature flags (#4)
* Control if redis uses async-std or tokio via feature flags * Do not include LockGuard and dependent functions if tokio-comp is enabled * make tests pass with cargo test --features tokio-comp * add doc comments; promote comments to doc comments; alter cfg conditions * only compile the lock module if either of the async runtime flags are present * test raii unlocking only when only async-std is enabled * add default-features test
- Loading branch information
1 parent
6d9e1ca
commit 4de6748
Showing
4 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#[cfg(any(feature = "async-std-comp", feature = "tokio-comp"))] | ||
mod lock; | ||
|
||
#[cfg(any(feature = "async-std-comp", feature = "tokio-comp"))] | ||
pub use crate::lock::{Lock, LockError, LockGuard, LockManager}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters