Re: Optional Rust-in-FreeBSD Support Status Report

Shawn Webb <[email protected]>
Newsgroups gmane.os.freebsd.architechture
Message-ID <olyhtz63tmxdp645jehlsqdvg6ofnboqpciuxklp56kbb67gxz@gughas7llhvk>
On Tue, May 20, 2025 at 11:15:45PM -0700, Simon J. Gerraty wrote:
> Shawn Webb <[email protected]> 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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmgt+rsACgkQ/y5nonf4
4fo+3xAAhqEXfzlGGghD6UP84uOZ34YOdLGS121muVSlPE5X943S3CzcmVyhSvnG
ADZckiMOjNCHRTdYzDqKzfpCOm99KpOmmvaakOlsqlBu3nDpYREeDoRDKP2A7qBz
pNrrL+4wJaemDCACm2j6wvEAeoDKLDwexBBndZS3BHkzxxBT7r/HrFyp1yps/bax
NC5ixRSQFsSg/CEFf4d+PqmWsj4OwweuYESmY7lcVF/jOLRuJGK3cNM4+e4x3zY4
qrqFR6lBeZPdanBi3Zqkat3wPi4fpn2k9xAh7GOGK/xvxKPAjP4sb38UDoPrLOfS
3Ap7XLTCW+V8ziRZ69ydnNtMk05EV6+TopFbAhGVQn6T3llB+6+livzlRP5TpCA1
U3OA6wtJZD/EsIUQI8mpEQ6jJ7LdyKfC0b1mPmOuhlcqMFS/ugVDokIXoxhMXFkH
T1581pI5lyEehslGbqovOptAipkLfyljiQyBKaziSDxiktI8cz0gItiWqTjdm0V4
exGzTk3AbQFPipG2fq3VNqLYhyQxDP9Vc3Ic9zSSp9iw0liS/fUiXovTybYKR/he
T08eoExx30ZEWB7ODYqkv0DZmITInM4aJRr6ULSbzBfOhxmyve6mxaspdOVkYIjk
JsaXuD6BJboT+iPKXlhYXWvokaVRxzj+8v8W31X1B8EJMmJF4/I=
=ZRnG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.