mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-19 00:00:09 +02:00
A first pass at updating Tokio to use `std::future`. Implementations of `Future` from the futures crate are updated to implement `Future` from std. Implementations of `Stream` are moved to a feature flag. This commits disables a number of crates that have not yet been updated.
54 lines
1.3 KiB
TOML
54 lines
1.3 KiB
TOML
[package]
|
|
name = "tokio-timer"
|
|
# When releasing to crates.io:
|
|
# - Remove path dependencies
|
|
# - Update html_root_url.
|
|
# - Update doc url
|
|
# - Cargo.toml
|
|
# - README.md
|
|
# - Update CHANGELOG.md.
|
|
# - Create "v0.3.x" git tag.
|
|
version = "0.3.0"
|
|
edition = "2018"
|
|
authors = ["Carl Lerche <[email protected]>"]
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
documentation = "https://docs.rs/tokio-timer/0.2.11/tokio_timer"
|
|
repository = "https://github.com/tokio-rs/tokio"
|
|
homepage = "https://github.com/tokio-rs/tokio"
|
|
description = """
|
|
Timer facilities for Tokio
|
|
"""
|
|
publish = false
|
|
|
|
[features]
|
|
# individual `Stream` impls if you so desire
|
|
delay-queue = ["futures-core-preview"]
|
|
interval = ["futures-core-preview"]
|
|
timeout-stream = ["futures-core-preview"]
|
|
throttle = ["futures-core-preview"]
|
|
|
|
# easily enable all `Stream` impls
|
|
streams = [
|
|
"delay-queue",
|
|
"interval",
|
|
"timeout-stream",
|
|
"throttle",
|
|
]
|
|
|
|
[dependencies]
|
|
tokio-executor = { version = "0.2.0", path = "../tokio-executor" }
|
|
tokio-sync = { version = "0.2.0", path = "../tokio-sync" }
|
|
crossbeam-utils = "0.6.0"
|
|
|
|
# Backs `DelayQueue`
|
|
slab = "0.4.1"
|
|
|
|
# optionals
|
|
futures-core-preview = { version = "0.3.0-alpha.16", optional = true }
|
|
|
|
[dev-dependencies]
|
|
rand = "0.6"
|
|
tokio-mock-task = "0.1.0"
|
|
tokio = { version = "0.2.0", path = "../tokio" }
|