Skip to content
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

not able to use rust 1.85.0 release with rules_rust #3285

Open
pdeva opened this issue Feb 22, 2025 · 0 comments
Open

not able to use rust 1.85.0 release with rules_rust #3285

pdeva opened this issue Feb 22, 2025 · 0 comments

Comments

@pdeva
Copy link

pdeva commented Feb 22, 2025

here is my config

bazel_dep(name = "rules_rust", version = "0.57.1")
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
    edition = "2024",
    versions = ["1.85.0"],
)
use_repo(rust, "rust_toolchains")

register_toolchains("@rust_toolchains//:all")

crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate")
...

use_repo(crate, "crate_index")
crate.spec(
    package = "protoc-gen-prost",
    version = "0.4.0",
)
crate.spec(
    package = "protoc-gen-tonic",
    version = "0.4.1",
)
crate.from_specs(
    name = "crate_specs",
    generate_binaries = True,
)
use_repo(crate, "crate_specs")

register_toolchains("//:prost_toolchain")

but i get this error every time i try to build

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant