Re: Optional Rust-in-FreeBSD Support Status Report

"Simon J. Gerraty" <[email protected]>
Newsgroups gmane.os.freebsd.architechture
Message-ID <[email protected]>
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.

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.
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.