I need a Rust version equivalent to or superior to 1.70, but using:
build-packages:
- rustc=1.72.0
or any variants are not working, The core version is Core 22; I have not found any documentation about how to set this package version.
I need a Rust version equivalent to or superior to 1.70, but using:
build-packages:
- rustc=1.72.0
or any variants are not working, The core version is Core 22; I have not found any documentation about how to set this package version.
https://github.com/soumyaDghosh/obfuscate-snap/blob/main/snap/snapcraft.yaml
Try in this way, used here
Thank you. I’ll try.
There have been some big improvements to the rust plugin on the snapcraft edge
channel. This includes a new keyword for the rust plugin, rust-channel
.
You should be able to use it like this in your snapcraft.yaml
:
parts:
my-part:
plugin: rust
rust-channel: "1.70"
...
How can we use these for snaps that uses rust but uses Meson/Make/CMake as plugins?
If I understand you correctly, you should be able to do this using the snapcraft edge
channel:
parts:
rustup:
plugin: rust
source: .
rust-channel: "1.70"
cmake-part:
after: [rustup]
plugin: cmake
source: .
build-environment:
- PATH: "${HOME}/.cargo/bin:${PATH}"
I’m not sure if this is the best approach, @liushuyu may have a better idea.
Uhhhh… thanks! This will simplify things a lot!!!