-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Description
To the present day, the internal crates like core
and std
can annotate things with #[stable(since="version")]
. This is extremely useful for users, especially because rustdoc
is able to write this information in the rendered documentation.
Unfortunately, this kind of feature is not available for normal crates. Take, for instance, tokio::runtime::Handle::current
: this function is available since version 0.2.8
of the tokio
crate (not sure about 0.2.7
, that's not the point), but this information is not available at a first glimpse.
IMHO, adding the possibility of annotating functions, structs and traits (and maybe something I missed) with #[doc(since="version")]
would give more doc power to crates' authors. Moreover, it should be possible to leverage the current implementation of stable(since="version")
in order to introduce the feature without reinventing the wheel.