mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
util: remove path deps (#3413)
* util: remove path deps * ci: run clippy with --all-features * ci: run tests with --all-features on FreeBSD CI
This commit is contained in:
+2
-2
@@ -21,9 +21,9 @@ task:
|
|||||||
rustc --version
|
rustc --version
|
||||||
test_script:
|
test_script:
|
||||||
- . $HOME/.cargo/env
|
- . $HOME/.cargo/env
|
||||||
- cargo test --all
|
- cargo test --all --all-features
|
||||||
- cargo doc --all --no-deps
|
- cargo doc --all --no-deps
|
||||||
i686_test_script:
|
i686_test_script:
|
||||||
- . $HOME/.cargo/env
|
- . $HOME/.cargo/env
|
||||||
- |
|
- |
|
||||||
cargo test --all --target i686-unknown-freebsd
|
cargo test --all --all-features --target i686-unknown-freebsd
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ jobs:
|
|||||||
|
|
||||||
# Run clippy
|
# Run clippy
|
||||||
- name: "clippy --all"
|
- name: "clippy --all"
|
||||||
run: cargo clippy --all --tests
|
run: cargo clippy --all --tests --all-features
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: docs
|
name: docs
|
||||||
|
|||||||
+3
-3
@@ -7,9 +7,9 @@ edition = "2018"
|
|||||||
# If you copy one of the examples into a new project, you should be using
|
# If you copy one of the examples into a new project, you should be using
|
||||||
# [dependencies] instead.
|
# [dependencies] instead.
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tokio = { version = "1.0.0", path = "../tokio", features = ["full", "tracing"] }
|
tokio = { version = "1.0.0", features = ["full", "tracing"] }
|
||||||
tokio-util = { version = "0.6.0", path = "../tokio-util", features = ["full"] }
|
tokio-util = { version = "0.6.1", features = ["full"] }
|
||||||
tokio-stream = { version = "0.1", path = "../tokio-stream" }
|
tokio-stream = { version = "0.1" }
|
||||||
|
|
||||||
async-stream = "0.3"
|
async-stream = "0.3"
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ impl<R> LinesStream<R> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Obtain a pinned reference to the inner `Lines<R>`.
|
/// Obtain a pinned reference to the inner `Lines<R>`.
|
||||||
|
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4546
|
||||||
pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Lines<R>> {
|
pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Lines<R>> {
|
||||||
self.project().inner
|
self.project().inner
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ impl<R> SplitStream<R> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Obtain a pinned reference to the inner `Split<R>`.
|
/// Obtain a pinned reference to the inner `Split<R>`.
|
||||||
|
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4546
|
||||||
pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Split<R>> {
|
pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Split<R>> {
|
||||||
self.project().inner
|
self.project().inner
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ rt = ["tokio/rt"]
|
|||||||
__docs_rs = ["futures-util"]
|
__docs_rs = ["futures-util"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tokio = { version = "1.0.0", path = "../tokio" }
|
tokio = { version = "1.0.0" }
|
||||||
tokio-stream = { version = "0.1", path = "../tokio-stream" }
|
tokio-stream = { version = "0.1" }
|
||||||
|
|
||||||
bytes = "1.0.0"
|
bytes = "1.0.0"
|
||||||
futures-core = "0.3.0"
|
futures-core = "0.3.0"
|
||||||
@@ -49,8 +49,8 @@ pin-project-lite = "0.2.0"
|
|||||||
slab = { version = "0.4.1", optional = true } # Backs `DelayQueue`
|
slab = { version = "0.4.1", optional = true } # Backs `DelayQueue`
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tokio = { version = "1.0.0", path = "../tokio", features = ["full"] }
|
tokio = { version = "1.0.0", features = ["full"] }
|
||||||
tokio-test = { version = "0.4.0", path = "../tokio-test" }
|
tokio-test = { version = "0.4.0" }
|
||||||
|
|
||||||
futures = "0.3.0"
|
futures = "0.3.0"
|
||||||
futures-test = "0.3.5"
|
futures-test = "0.3.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user