[Slackbuilds-users] rust and crates

fsLeg fsleg at t-rg.ws
Sat Oct 25 10:25:06 UTC 2025


Direct dependencies are listed in Cargo.toml file. The entire dependency list is in Cargo.lock file. If the latter doesn't exist, it'll be created by cargo when you first build the project.

If you're looking into vendoring the crates, look at cargo-vendor-filterer which is available on SBo. It calculates all dependencies and vendors necessary crates automatically while also filtering out crates for other platforms to reduce size.

I also wrote a script to get all crates and do some work to prepare a rust-based SlackBuild to be published, although I later changed my approach and don't use that script anymore. But if I were to no longer have a place to host vendored tarballs I would return to using it. The script in question:

https://gist.github.com/fsLeg/2f33cccbce9f3ae6af1a3f720f201cb0

On October 25, 2025 13:15:51 GMT+03:00, "Ιωάννης" <rizitis at gmail.com> wrote:
>Hello, I just want to ask if someone has a custom script to find
>[dependencies] crates for build a rust package or you manually search
>for them ?
>
>thank you.


More information about the SlackBuilds-users mailing list