Skip to content

Commit f79bc8b

Browse files
committed
Cargo: Use futures-util and futures-channel to replace futures crate
The `futures` crate contains more than we needs, this patch use `futures-channel` and `futures-channel` instead. Signed-off-by: Gris Ge <[email protected]>
1 parent 6d4a1b5 commit f79bc8b

File tree

24 files changed

+29
-27
lines changed

24 files changed

+29
-27
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ smol_socket = ["netlink-proto/smol_socket", "async-std"]
2121

2222
[dependencies]
2323
async-std = { version = "1.13.0", optional = true}
24-
futures = "0.3.31"
24+
futures-util = "0.3.11"
25+
futures-channel = "0.3.11"
2526
log = "0.4.26"
2627
genetlink = { default-features = false, version = "0.2.6"}
2728
netlink-packet-core = { version = "0.8.0"}

examples/dump_channels.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
use futures::stream::TryStreamExt;
3+
use futures_util::stream::TryStreamExt;
44

55
// Once we find a way to load netsimdev kernel module in CI, we can convert this
66
// to a test

examples/dump_coalesce.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
use futures::stream::TryStreamExt;
3+
use futures_util::stream::TryStreamExt;
44

55
// Once we find a way to load netsimdev kernel module in CI, we can convert this
66
// to a test

examples/dump_eeprom_page.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
use futures::stream::TryStreamExt;
3+
use futures_util::stream::TryStreamExt;
44

55
fn main() {
66
let rt = tokio::runtime::Builder::new_current_thread()

examples/dump_features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
use futures::stream::TryStreamExt;
3+
use futures_util::stream::TryStreamExt;
44

55
// Once we find a way to load netsimdev kernel module in CI, we can convert this
66
// to a test

examples/dump_fec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
use futures::stream::TryStreamExt;
3+
use futures_util::stream::TryStreamExt;
44

55
// Once we find a way to load netsimdev kernel module in CI, we can convert this
66
// to a test

examples/dump_link_mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
use futures::stream::TryStreamExt;
3+
use futures_util::stream::TryStreamExt;
44

55
// Once we find a way to load netsimdev kernel module in CI, we can convert this
66
// to a test

examples/dump_pause.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
use futures::stream::TryStreamExt;
3+
use futures_util::stream::TryStreamExt;
44

55
// Once we find a way to load netsimdev kernel module in CI, we can convert this
66
// to a test

examples/dump_rings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
use futures::stream::TryStreamExt;
3+
use futures_util::stream::TryStreamExt;
44

55
// Once we find a way to load netsimdev kernel module in CI, we can convert this
66
// to a test

examples/dump_tsinfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: MIT
22

3-
use futures::stream::TryStreamExt;
3+
use futures_util::stream::TryStreamExt;
44

55
// Once we find a way to load netsimdev kernel module in CI, we can convert this
66
// to a test

0 commit comments

Comments
 (0)