Can I use
mold
as a linker for my Rust project?

polponlineHOBBY

a year ago

This is more of a nixpacks question, but how do i use mold as the Rust linker in my project, currently linking takes ages

0 Replies

polponlineHOBBY

a year ago

c030dfbe-a1c2-4560-804d-ecbbbcafc67e


polponlineHOBBY

a year ago

Can I use mold as a linker for my Rust project?


a year ago

Might be best to do this with a Dockerfile, but tagging in @salvage since he's the rust expert


polponlineHOBBY

a year ago

I get that i can install mold just by adding it in packages, but where is the binary installed in the container, in a normal distro i would find it in /usr/bin/mold


a year ago

I would assume it would be available in PATH so you wouldn't need to use the absolute path to the binary


polponlineHOBBY

a year ago

it does not install apparently

1239575734398353400
1239575734704672800


polponlineHOBBY

a year ago

he can't find mold wrapper/wrapped (tried both)


polponlineHOBBY

a year ago

1239576053853192200


a year ago

you have a typo


polponlineHOBBY

a year ago

tried both mold-wrapper and mold-wrapper and it didn't work, now i tried regular mold and it worked, thanks!


a year ago

well its mold-wrapped but glad you solved it


Can I use `mold` as a linker for my Rust project? - Railway Help Station