-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an explicit dependency to futures-core to console-api to fix broken builds #453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks foe your PR!
Irrespective of why this is currently working, this is probably how it should be.
@hawkw any reason not to merge this one from your side? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thanks for the fix!
Clippy was complaining about 3 new things in 1.72.0. Two new lints and one updated one. When `futures-core` was added as an explicit dependency on `console-api` in #453, it was only added to the `console-api` Cargo.toml file. It wasn't added to the Cargo.lock file shared by the workspace. Since Rust 1.72.0, Cargo is adding this dependency to Cargo.lock locally, so it makes sense to check in that change.
Clippy was complaining about 3 new things in 1.72.0. Two new lints and one updated one. When `futures-core` was added as an explicit dependency on `console-api` in #453, it was only added to the `console-api` Cargo.toml file. It wasn't added to the Cargo.lock file shared by the workspace. Since Rust 1.72.0, Cargo is adding this dependency to Cargo.lock locally, so it makes sense to check in that change.
# Changelog All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## console-api-v0.6.0 - (2023-09-21) [5a80b98](https://github.com/tokio-rs/console/commit/5a80b98c0488018015b025b895bde0c715f1601e)...[5a80b98](https://github.com/tokio-rs/console/commit/5a80b98c0488018015b025b895bde0c715f1601e) ### <a id = "console-api-v0.6.0-breaking"></a>Breaking Changes - **Update `tonic` to v0.10 and increase MSRV to 1.64 ([#464](#464 ([5a80b98](https://github.com/tokio-rs/console/commit/5a80b98c0488018015b025b895bde0c715f1601e))<br />This is a breaking change for users of `console-api` and `console-subscriber`, as it changes the public `tonic` dependency to a semver-incompatible version. This breaks compatibility with `tonic` 0.9. and `prost` 0.11. ### Added - [**breaking**](#console-api-v0.6.0-breaking) Update `tonic` to v0.10 and increase MSRV to 1.64 ([#464](#464)) ([5a80b98](5a80b98)) ### Fixed - Add explicit `futures-core` dep to fix broken builds ([#453](#453)) ([88638f9](88638f9))
# Changelog All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## console-api-v0.6.0 - (2023-09-22) [e1990f6](https://github.com/tokio-rs/console/commit/e1990f687b5d2c93e2a82973ac6c3ed91aabd56d)...[e1990f6](https://github.com/tokio-rs/console/commit/e1990f687b5d2c93e2a82973ac6c3ed91aabd56d) ### <a id = "console-api-v0.6.0-breaking"></a>Breaking Changes - **Update `tonic` to v0.10 and increase MSRV to 1.64 ([#464](#464 ([882318a](https://github.com/tokio-rs/console/commit/882318a006d060c763f97afa7e03a45ef9736fe6))<br />This is a breaking change for users of `console-api` and `console-subscriber`, as it changes the public `tonic` dependency to a semver-incompatible version. This breaks compatibility with `tonic` 0.9.x and `prost` 0.11.x. ### Added - [**breaking**](#console-api-v0.6.0-breaking) Update `tonic` to v0.10 and increase MSRV to 1.64 ([#464](#464)) ([882318a](882318a)) ### Documented - Update MSRV version docs to 1.64 ([#467](#467)) ([a7acbcc](a7acbcc)) ### Fixed - Add explicit `futures-core` dep to fix broken builds ([#453](#453)) ([88638f9](88638f9)) Signed-off-by: Hayden Stainsby <[email protected]>
# Changelog All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## console-api-v0.6.0 - (2023-09-29) [05cdab0](https://github.com/tokio-rs/console/commit/05cdab07a3da603697520a56f0b99b2e2042d8bd)...[f77fb77](https://github.com/tokio-rs/console/commit/f77fb770b2f5935f155df2b85ad68f035cc9eb13) ### <a id = "console-api-v0.6.0-breaking"></a>Breaking Changes - **Update `tonic` to v0.10 and increase MSRV to 1.64 ([#464](#464 ([882318a](https://github.com/tokio-rs/console/commit/882318a006d060c763f97afa7e03a45ef9736fe6))<br />This is a breaking change for users of `console-api` and `console-subscriber`, as it changes the public `tonic` dependency to a semver-incompatible version. This breaks compatibility with `tonic` 0.9.x and `prost` 0.11.x. ### Added - [**breaking**](#console-api-v0.6.0-breaking) Update `tonic` to v0.10 and increase MSRV to 1.64 ([#464](#464)) ([882318a](882318a)) ### Documented - Update MSRV version docs to 1.64 ([#467](#467)) ([a7acbcc](a7acbcc)) ### Fixed - Add explicit `futures-core` dep to fix broken builds ([#453](#453)) ([88638f9](88638f9)) Signed-off-by: Eliza Weisman <[email protected]>
This PR adds an explicit dependency to futures-core for `console-api` to fix broken builds. Without this fix I get the following errors: ``` error[E0433]: failed to resolve: use of undeclared crate or module `futures_core` --> /home/weiznich/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-api-0.5.0/src/generated/rs.tokio.console.instrument.rs:275:34 | 275 | type WatchUpdatesStream: futures_core::Stream< | ^^^^^^^^^^^^ use of undeclared crate or module `futures_core` error[E0433]: failed to resolve: use of undeclared crate or module `futures_core` --> /home/weiznich/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-api-0.5.0/src/generated/rs.tokio.console.instrument.rs:289:38 | 289 | type WatchTaskDetailsStream: futures_core::Stream< | ^^^^^^^^^^^^ use of undeclared crate or module `futures_core` error[E0433]: failed to resolve: use of undeclared crate or module `futures_core` --> /home/weiznich/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-api-0.5.0/src/generated/rs.tokio.console.trace.rs:212:27 | 212 | type WatchStream: futures_core::Stream< | ^^^^^^^^^^^^ use of undeclared crate or module `futures_core` ``` The somewhat funny thing is that only happened after I've updated some unrelated dependencies. It worked before, but after looking at the relevant code I'm really surprised that it ever compiled without error.
Clippy was complaining about 3 new things in 1.72.0. Two new lints and one updated one. When `futures-core` was added as an explicit dependency on `console-api` in #453, it was only added to the `console-api` Cargo.toml file. It wasn't added to the Cargo.lock file shared by the workspace. Since Rust 1.72.0, Cargo is adding this dependency to Cargo.lock locally, so it makes sense to check in that change.
# Changelog All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## console-api-v0.6.0 - (2023-09-29) [05cdab0](https://github.com/tokio-rs/console/commit/05cdab07a3da603697520a56f0b99b2e2042d8bd)...[f77fb77](https://github.com/tokio-rs/console/commit/f77fb770b2f5935f155df2b85ad68f035cc9eb13) ### <a id = "console-api-v0.6.0-breaking"></a>Breaking Changes - **Update `tonic` to v0.10 and increase MSRV to 1.64 ([#464](#464 ([882318a](https://github.com/tokio-rs/console/commit/882318a006d060c763f97afa7e03a45ef9736fe6))<br />This is a breaking change for users of `console-api` and `console-subscriber`, as it changes the public `tonic` dependency to a semver-incompatible version. This breaks compatibility with `tonic` 0.9.x and `prost` 0.11.x. ### Added - [**breaking**](#console-api-v0.6.0-breaking) Update `tonic` to v0.10 and increase MSRV to 1.64 ([#464](#464)) ([882318a](882318a)) ### Documented - Update MSRV version docs to 1.64 ([#467](#467)) ([a7acbcc](a7acbcc)) ### Fixed - Add explicit `futures-core` dep to fix broken builds ([#453](#453)) ([88638f9](88638f9)) Signed-off-by: Eliza Weisman <[email protected]>
This PR adds an explicit dependency to futures-core for
console-api
to fix broken builds. Without this fix I get the following errors:The somewhat funny thing is that only happened after I've updated some unrelated dependencies. It worked before, but after looking at the relevant code I'm really surprised that it ever compiled without error.