-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
20 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "async-timer" | ||
version = "1.0.0-beta.6" | ||
version = "1.0.0-beta.7" | ||
authors = ["Douman <[email protected]>"] | ||
edition = "2018" | ||
description = "Timers for Rust async story" | ||
|
@@ -22,8 +22,8 @@ default = [] | |
std = [] | ||
# Enables C API wrapper for platform code. | ||
c_wrapper = ["cc"] | ||
# Enables usage of tokio 0.3 | ||
tokio03 = ["tokio_03", "nix", "std"] | ||
# Enables usage of tokio 1.0 | ||
tokio1 = ["tokio_1", "nix", "std"] | ||
# Enables Stream implementation | ||
stream = ["futures-core"] | ||
|
||
|
@@ -41,7 +41,7 @@ features = ["threadpoolapiset"] | |
|
||
[target.'cfg(any(target_os = "macos", target_os = "ios", unix))'.dependencies] | ||
libc = { version = "0.2.60", default-features = false } | ||
tokio_03 = { package = "tokio", version = "0.3.5", default-features = false, optional = true, features = ["net"] } | ||
tokio_1 = { package = "tokio", version = "1", default-features = false, optional = true, features = ["net"] } | ||
|
||
#kqueue needs nix | ||
[target.'cfg(any(target_os = "bitrig", target_os = "dragonfly", target_os = "freebsd", target_os = "ios", target_os = "macos", target_os = "netbsd", target_os = "openbsd"))'.dependencies] | ||
|
@@ -51,7 +51,7 @@ nix = { version = "0.19", optional = true } | |
wasm-bindgen = "0.2" | ||
|
||
[dev-dependencies] | ||
tokio_03 = { package = "tokio", version = "0.3.2", default-features = false, features = ["macros", "rt"] } | ||
tokio_1 = { package = "tokio", version = "1", default-features = false, features = ["macros", "rt"] } | ||
|
||
[build-dependencies.cc] | ||
version = "1" | ||
|
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,4 +1,4 @@ | ||
use tokio_03 as tokio; | ||
use tokio_1 as tokio; | ||
|
||
use tokio::io::unix::AsyncFd; | ||
use libc::{c_int}; | ||
|
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,5 +1,5 @@ | ||
use async_timer::{Interval}; | ||
use tokio_03 as tokio; | ||
use tokio_1 as tokio; | ||
|
||
use std::time; | ||
|
||
|
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,5 +1,5 @@ | ||
use core::pin::Pin; | ||
use tokio_03 as tokio; | ||
use tokio_1 as tokio; | ||
|
||
use std::time; | ||
|
||
|
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