Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresolved: How many levels of crate-namespace nesting is allowed? #8

Open
carols10cents opened this issue Nov 13, 2020 · 4 comments
Open

Comments

@carols10cents
Copy link

Both theoretically for any registry that might exist, and practically for what crates.io will allow.

@Manishearth
Copy link
Owner

The current RFC sticks to one level, but we should design it for multiple IMO so the restriction is easily lifted later.

The main places this will come up:

@ShadowJonathan
Copy link

ShadowJonathan commented Mar 15, 2022

An initial suggestion; 8 levels.

It should be quite sufficient for all kinds of purposes, be long enough where nobody could be hitting the limit with natural growth, and be small enough to be efficiently contained in the backend code.

@jsgf
Copy link

jsgf commented Jul 23, 2023

What's the use-case for deeply nested namespaces? If a namespace corresponds to an organization or owner, then do we want to support (effectively) shipping the org chart?

@Manishearth
Copy link
Owner

I don't think there has been yet.

Two levels may be useful, one to represent an overall project and another to represent sub-crates (like project::foo and project::foo::derive)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants