Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2025 16:09:39 +0000
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        "Simon J. Gerraty" <sjg@juniper.net>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Optional Rust-in-FreeBSD Support Status Report
Message-ID:  <olyhtz63tmxdp645jehlsqdvg6ofnboqpciuxklp56kbb67gxz@gughas7llhvk>
In-Reply-To: <2790.1747808145@kaos.jnpr.net>
References:  <hrihzgdz6ij24zx42672ouxqgw2g2yygq3pltv525gwhyw2awr@4ky4jfxs545y> <2790.1747808145@kaos.jnpr.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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

[-- Attachment #2 --]
-----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-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?olyhtz63tmxdp645jehlsqdvg6ofnboqpciuxklp56kbb67gxz>