[Slackbuilds-users] Questions with packaging a rust program.

Charadon dev at iotib.net
Thu Jul 11 20:02:12 UTC 2024


Well i'm glad to know my idea for using a vendored tarball was already 
used in practice! Though, my vendor tarball won't have as prestigious of 
a mirror as slackware.uk, haha

Guess I should ask Willy if archive.org or my own ftp site would be fine 
as a source, since it's all verified using md5 anyways. =P

By the way, maybe you might want to make mkvendor.sh it's own package, 
as cargo-vendor-filterer is going to be included in the next version of 
Slackware.


-----Original Message-----
From: fourtysixandtwo [mailto:fourtysixandtwo at sliderr.net]
Sent: Thursday, July 11, 2024 03:42 PM -04
To: "SlackBuilds.org Users List"
Cc: Charadon
Subject: [Slackbuilds-users] Questions with packaging a rust program.
Importance: Low

Hi Charadon,

I have been doing that for a little while now with some python/rust
builds and filtering for a limited selection of linux rust targets to
keep the size down.  You'll want to install the
"cargo-vendor-filterer" slackbuild first.  Then have a look at my
"python3-maturin" slackbuild.  I include a stub "mkvendored.sh" script
that calls another script I include with cargo-vendor-filterer
"/usr/bin/cargo-mkvendored.sh".

Let me know if you have any questions.

Cheers

On Thu, Jul 11, 2024 at 1:03 PM Charadon via SlackBuilds-users
<slackbuilds-users at slackbuilds.org> wrote:

Hey all,
I'm wanting to make a Slackbuild for BLAKE3. The issue is that it's made
in rust. Now rust has a thing that makes it pretty easy to vendor
(`cargo vendor`) the dependencies, the issue is that, unless upstream
provides their own vendored tarball, you'll be making your own.

So here are my questions:

1. Can I make a vendored tarball, upload it somewhere like archive.org
and use that as a source? I know this is questionable security wise, but
you should be able to replicate the archive using a `git clone` and
`cargo vendor`
2. If not, can I include a script that downloads the source, runs cargo
vendor, and makes a vendored tarball?
2. If not, how would you go about packaging a rust program? Is there any
guide anywhere?
_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users at slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/


More information about the SlackBuilds-users mailing list