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

tonic-build can no longer build code with rust < 1.77.0, due to newer build-script syntax #1894

Closed
DAdolfsson opened this issue Aug 27, 2024 · 1 comment · Fixed by #1898
Closed

Comments

@DAdolfsson
Copy link

Bug Report

Version

0.12.2

Platform

x86_64 GNU/Linux

Crates

tonic-build

Description

Since the following merge (i think)
#1821

Rust 1.75 (which I am using) can no longer build,

The issue I get is:

cargo::rerun-if-changed=proto/pts_hardware.proto`
Found a `cargo::key=value` build directive which is reserved for future use.
Either change the directive to `cargo:key=value` syntax (note the single `:`) or upgrade your version of Rust.
See https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script for more information about build script outputs.
warning: build failed, waiting for other jobs to finish...

I believe the double :: was introduced in Cargo 1.77, if this is the case this change should be reverted or MSRV should be bumped?

https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script

Best Regards
Daniel

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

Successfully merging a pull request may close this issue.

2 participants