External Publication
Visit Post

[Pre-RFC] DNS domains as package namespaces

Rust Internals [Unofficial] April 28, 2026
Source

DragonDev1906:

Is there any reason not to be able to use an already published crate as a namespace(parent)? That way we don't need a separate naming system and in many cases this is also what you want (e.g. tokio-util could be at tokio@util ). In that case namespaces would be more like child-crates (possibly even allowing parent@child@subchild if desired.

Note that there is an already approved rfc for using packages as namespaces but it serves a slightly different role where the packages truly compose into one API. There will be impedance mismatches if used for organizational namespacing, This is covered in the namespacing thread I linked earlier.

Discussion in the ATmosphere

Loading comments...