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

Compilation won't work with cargo versions below 1.77 #38

Open
Oneliness opened this issue Sep 28, 2024 · 1 comment
Open

Compilation won't work with cargo versions below 1.77 #38

Oneliness opened this issue Sep 28, 2024 · 1 comment

Comments

@Oneliness
Copy link

for some reason, I have to use rust version below 1.77, and I got this error message

error: unsupported output in build script of `v4l2r v0.0.4`: `cargo::rerun-if-env-changed=V4L2R_VIDEODEV2_H_PATH`
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.

changing double colon in build.rs to single solved the problem.

Perhaps consider handling this scenario in the build.rs file?

@Gnurou
Copy link
Owner

Gnurou commented Sep 30, 2024

I've been trying to understand the difference between the cargo:: and cargo: notations, but couldn't find anything meaningful. The latest cargo documentation only mentions cargo::. Do you happen to know what the differences are?

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

2 participants