Re: [PATCH RFC v2 3/7] help: report on whether or not Rust is enabled
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Sep 5, 2025, 19:51 UTC
- Message-ID
- <aLs_QZ9eBGevcGfb@fruit.crustytoothpaste.net>
- In-Reply-To
- <20250905-b4-pks-rust-breaking-change-v2-3-6939cbf4a0b8@pks.im>
On 2025-09-05 at 11:50:59, Patrick Steinhardt wrote:
Show 14 quoted lines
> diff --git a/help.c b/help.c > index bb20498cfd..5854dd4a7e 100644 > --- a/help.c > +++ b/help.c > @@ -791,6 +791,12 @@ void get_version_info(struct strbuf *buf, int show_build_options) > strbuf_addf(buf, "shell-path: %s\n", SHELL_PATH); > /* NEEDSWORK: also save and output GIT-BUILD_OPTIONS? */ > > +#if defined WITH_RUST > + strbuf_addstr(buf, "rust: enabled\n"); > +#else > + strbuf_addstr(buf, "rust: disabled\n"); > +#endif > +
I think this is a great idea and likely to be super helpful. Thanks for including it.
-- brian m. carlson (they/them) Toronto, Ontario, CA