-
Notifications
You must be signed in to change notification settings - Fork 271
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
rusty_v8 fails to build with Rust 1.72.0 (128-bit TypeId) #3684
Comments
Closing this since it was fixed in #3626 Let's keep it pinned until we release 1.29 |
Might want to add a warning here: https://www.apollographql.com/docs/router/customizations/custom-binary/#1-create-a-new-project as it says: which made me install 1.72 and took me a bit to figure out why it wasnt working |
@rickbijkerk Thanks for the callout: That should hopefully no longer be the case after the 1.29.1 release (which came out yesterday, shortly after your message), which should support 1.72.0. Do you mind trying it out and seeing if you still encounter this? |
Describe the bug
The version of the
v8
crate currently used by the Router relies on (and checks that)std::any::TypeId
is 64 bits large. In Rust 1.72.0 this was changed to 128 bits. The crate added support for this but the Router still needs to update to a version that contains that change.Work around
For now, please use Rust 1.71.1 instead. This is the default when Rust installed with rustup and when compiling from the router repository. When using
apollo_router
as a library, either make arust-toolchain.toml
file at the root of your project like below, or runcargo +1.71.1
instead ofcargo
(afterrustup install 1.71.1
)To Reproduce
Steps to reproduce the behavior:
dev
: 1a3e677rust-toolchain.toml
file to specifychannel = "1.72.0"
cargo check
Expected behavior
Compilation succeeds
Output
The text was updated successfully, but these errors were encountered: