openSUSE talk:Packaging Rust Software
Needs update
This page could do with an example of how to use rust-packaging. It simplifies certain aspects of packaging Rust. For example, you can just %define
a variable named cargo_registry
set to the constant value of $(pwd)/vendor
to handle the cargo config.
Here are two package spec
s that use it:
- https://build.opensuse.org/package/view_file/utilities/git-delta/git-delta.spec?expand=1
- https://build.opensuse.org/package/view_file/X11:terminals/alacritty/alacritty.spec?expand=1
Avindra (talk) 03:47, 15 June 2021 (UTC)
Vendor helper
I built some basic tools for generating vendoring tarballs. It handles Rust, as well as Go lang.
Its more or less usable and includes a workaround for the winapi problem.
https://github.com/avindra/suserpmutil
The way it works: basic shell script that unpacks tarballs, etc. assuming the conventions established at the Build Service.