Description
#126245 merged support in Edition 2024 for consolidating doctests into as few binaries as possible, with an opt-out of a standalone
attribute.
/// ```rust,standalone
/// let total = add(1, 3);
/// ```
fn add(x: i32, y: i32) -> i32 {
x + y
}
In reading the code, without looking at the docs, the name's meaning is unclear. It wasn't until I saw a comment on reddit that I understood this to only mean "standalone binary" and not also "standalone process". It came up because someone else was confused on what was happening (reddit).
As shown by the confusion, there are other potential uses for this name and I am interested in exploring those (rust-lang/testing-devex-team#5), so this takes away a potential name for a workflow that could be a lot more common than the current meaning of standalone
. The fact that standalone
only has a couple of uses within this repo suggests its highly specialized and shouldn't be "squatting" on a generic name.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status