Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Generic associated types were supposed to be stabilized in 1.62 but there has been a recent backlash in the PR of what exactly to stabilize [0]. I posted it as its own separate post here [1].
[0] https://github.com/rust-lang/rust/pull/96709
[1] https://news.ycombinator.com/item?id=31939077
https://doc.rust-lang.org/std/index.html has the documentation for the standard library.
In addition https://docs.rs contains the documentation for all publicly available Rust code.
The main tool used to generate these docs is very good and easy to use. As a result documentation is usually pretty good.
For those unaware, some ask "why"
- No need to look up the version (though some IDEs do it for you)
- Auto-completion
- It shows you what features the crate has and whether they are activated, making it easier to discover features you need to enable or what you can remove to improve compile times
- Make it easier to document how to add a set of dependencies needed for a project (e.g. "Run `cargo add serde serde_json -F serde/derive`")
- The opportunity for more QoL improvements, see https://github.com/rust-lang/cargo/issues?q=is%3Aopen+is%3Ai...
It is impressive the amount of work it took to get this ready. I took over the effort almost a year ago and at times was working full time on it (thanks to my employer). Just my part included
- a near rewrite of the format-preserving toml parser (toml_edit)
- a major revamp of the UI
- a major revamp of testing
- a near rewrite to make it compatible with cargo's code base