Re: Optional Rust-in-FreeBSD Support Status Report
- Reply: Shawn Webb : "Re: Optional Rust-in-FreeBSD Support Status Report"
- In reply to: Shawn Webb : "Optional Rust-in-FreeBSD Support Status Report"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 May 2025 06:15:45 UTC
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.
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.