[Slackbuilds-users] Questions with packaging a rust program.
Charadon
dev at iotib.net
Fri Jul 12 15:12:40 UTC 2024
Personally, I think I lean more towards fourtysix's method of packaging
rust with the mkvendor.sh script. As long as the end result is
reproducible and verified using a checksum, it's fine.
That doesn't mean your method is invalid or awful though! I'm gonna
experiment with both methods and see which one I like more in the end
once I have hands on experience with it =)
-----Original Message-----
From: Lockywolf
[mailto:for_slackbuilds-users_mlist_2023-04-21 at lockywolf.net]
Sent: Thursday, July 11, 2024 11:18 PM -04
To: "SlackBuilds.org Users List"
Cc: Charadon
Subject: [Slackbuilds-users] Questions with packaging a rust program.
Importance: Low
I have a script for adding cargo links to the info-file:
https://gitlab.com/Lockywolf/lwfslackbuilds/-/blob/master/02_lockywolf-sbo-scripts/lwf_make-cargolinks.bash?ref_type=heads
Can't say it slows down things that much.
Downloading is a bit slower, but overall it's okay.
I would prefer not having custom-made tarballs hosted on private servers
when possible.
Charadon via SlackBuilds-users <slackbuilds-users at slackbuilds.org> writes:
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