External Publication
Visit Post

[Pre-RFC] DNS domains as package namespaces

Rust Internals [Unofficial] April 30, 2026
Source

Certain packages may have nicer names, but that doesn't mean that they're the best package implementing that thing for your given use case.

It ... kinda does, though? The json crate might not necessarily work for everything I want to do with JSON (e.g. it doesn't provide an event-based parser), but if you go to https://crates.io/search?q=json it's the top spot (screenshot) and seems to be the standard way of dealing with JSON in Rust.

If I ever do need an equivalent to Go's json.Decoder then I'll probably write my own (done it before 18 years ago), and the name of that crate would be json.

json gets to use the name json simply because it was the first crate that implemented JSON, that doesn't mean it's the best or "standard" JSON crate, just that it's the one that got there first.

I understand that the current lack of namespaces means that there can be only one json crate on crates.io. This thread is an attempt to convince the team to relax that constraint.

Discussion in the ATmosphere

Loading comments...