Re: Optional Rust-in-FreeBSD Support Status Report
- In reply to: Simon J. Gerraty: "Re: Optional Rust-in-FreeBSD Support Status Report"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 May 2025 16:09:39 UTC
On Tue, May 20, 2025 at 11:15:45PM -0700, Simon J. Gerraty wrote:
> Shawn Webb <shawn.webb@hardenedbsd.org> wrote:
> > We introduced a new BSD makefile, located at share/mk/bsd.rust.mk[3], that
>
> > [3]:
> > https://git.hardenedbsd.org/hardenedbsd/HardenedBSD/-/blob/hardened/current/rust-in-base/share/mk/bsd.rust.mk
>
> Please have a look at contrib/bmake/mk/rust.mk which is what we are
> currently using in our freebsd tree at work for building rust apps.
I didn't know such a thing existed. I'll check it out this weekend.
Thanks for the hint!
>
> We use a local.rust.mk to tailor to captured toolchains, and
> specific target tripples, but just rust.mk works fine with toolchains
> from ports.
>
> Eg. at work we have a policy of using cargo fmt --check before
> cargo build and cargo clippy as well, rust.mk caters for such things as
> well as running other targets like cargo {fmt,test} etc directly.
Good to know there's something out there already being used.
Thanks,
--
Shawn Webb
Cofounder / Security Engineer
HardenedBSD
Signal Username: shawn_webb.74
Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50
https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc