Ed Page on Nostr: Help styling for cargo has been merged and will be in a nightly soon. See For any ...
Published at
2023-09-11 19:04:52Event JSON
{
"id": "87699908e8e60674d2134dacd73afb26f96165b41ddb24f2feaa90049586c356",
"pubkey": "43ef2be7934856362480e25a4f487d688346814ab6f10911211272f3ee8f07f3",
"created_at": 1694459092,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://hachyderm.io/users/epage/statuses/111048071096665838",
"activitypub"
]
],
"content": "Help styling for cargo has been merged and will be in a nightly soon. See https://github.com/rust-lang/cargo/pull/12578\n\nFor any cargo plugins that use clap, I've made this relatively simple to match styles: https://github.com/rust-lang/rustfmt/pull/5908\n\nFor others, until cargo has an official API for it, you can `cargo add clap-cargo --no-default-features` and use https://docs.rs/clap-cargo/latest/clap_cargo/style/index.html (yeah, a bit of an abuse to have a clap-less clap-cargo but needed something real quick)\n\n#rustlang",
"sig": "4042d498a4b0100987934c6f89ccc8a34e5bc05860c000de1e8b15d177cce0478f1db0b2916d9162571ad5f083e71c6597e033966aee753b58db6b85747d045e"
}