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 edition = "2018"
to the Cargo.toml
#1039
Comments
Good idea, do you want to make a PR? gir is only touching the -sys |
I'll see what I can do. Indeed the non-sys Cargo isn't changed. |
@bilelmoussaoui would love to also take on this |
It should actually use edition=2022 nowadays. |
Yes it is. Currently the generated Cargo.toml doesn't contain any |
That is for the gir project, not for the projects generated with gir itself which is what this issue is about |
Please have a look at how to generate the bindings using gir first. E.g https://gtk-rs.org/gir/book/tutorial/sys_library.html |
There is a 2022 edition? |
Oh sorry, it is 2021. |
Also distro versions of the toolchain are meant to build distro packages, not for development/etc purposes. Same as for many other languages that move faster than a new version every decade or so. |
Hello @bilelmoussaoui, |
When updating the crate, either -sys or not, with gir, gir should make sure
edition = "2018"
is in the Cargo.toml, otherwise the crate won't build.The text was updated successfully, but these errors were encountered: