The path where rust and cargo binaries are located needs to be exported
during build. This can be done by setting append-path
in
build-options
for the specified module.
id: org.example.your_app
...
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-nightly
modules:
- name: foo
build-options:
append-path: /usr/lib/sdk/rust-nightly/extra/sdk/rust-nightly/bin