Mailinglist Archive: opensuse-factory (439 mails)

< Previous Next >
Re: [opensuse-factory] Building Rust Packages
On 2019-04-28 21:23, Michael Aquilina wrote:
Hi there,

I'm looking into adding several rust packages to OBS including
xidlehook ( and vivid

From what I recall, network connections cannot be made from within the
build service and this is an important part of how the "cargo build"
process in rust works. Is there any documentation for how to build
rust packages in OBS that I can reference?

Looking at the ripgrep package for inspiration
it seems like you take a copy of the dependencies locally? Is this a
purely manual process or are there some tools to help?


I recently packaged pijul [1] and also mostly copied the ripgrep spec [2].

Getting the dependencies is indeed a pain right now. As Stasiek Michalski
wrote, you need the cargo-vendor package. Either get it from the official
repositories or

Here is how I do it currently:

curl -L -o
gunzip pijul-0.12.0.tar.gz
cd pijul-0.12.0
cargo vendor --relative-path
tar cfJ vendor.tar.xz vendor
cp vendor.tar.xz ..

You could build a script around this.


To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups