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

change URL to https://crates.io/<author>/<crate> #86

Closed
liigo opened this issue Nov 28, 2014 · 4 comments
Closed

change URL to https://crates.io/<author>/<crate> #86

liigo opened this issue Nov 28, 2014 · 4 comments

Comments

@liigo
Copy link

liigo commented Nov 28, 2014

change URL to https://crates.io/<author>/<crate>, end with an optional /<database_id>.

for example, the current url:
https://crates.io/crates/time
will be changed to:
https://crates.io/alexcrichton/time
and https://crates.io/alexcrichton/time/123

  • not repeat crates two times in one URL
  • author's name to distinguish different crates with the same name, like github
  • optional id to speed up the database searching
  • the page https://crates.io/<author> list his/hers created and favorite crates.

(There are already several time crates, and several sqlite3 crates, in the github, I don't think only one of them be named the best time/sqlite3, and others must be named different such as time2/sqlite3-liigo, to make the crate name unique all over the crates.io.)

@liigo
Copy link
Author

liigo commented Nov 28, 2014

@alexcrichton

@huonw
Copy link
Member

huonw commented Nov 28, 2014

Placing the author name at the top-level would require we disallow certain account names to allow crates.io to have its own pages e.g. https://crates.io/install , https://crates.io/crates and https://crates.io/me would presumably mean that https://github.com/install , https://github.com/crates and https://github.com/me could not have accounts on crates.io.

This would also restrict what pages can be added in future.

It may not be a huge problem, but it's something that should be considered.

@huonw
Copy link
Member

huonw commented Nov 28, 2014

In any case, allowing multiple crates with the same name is not as simple as making the URL structure compatible, see e.g. #58 or rust-lang/cargo#975 .

@alexcrichton
Copy link
Member

In the interest of adding new routes in the future, we must have a prefix somehow (as @huonw mentioned), and otherwise I'm going to close this as a dupe of the issues @huonw mentioned.

Turbo87 pushed a commit to Turbo87/crates.io that referenced this issue Jan 4, 2023
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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

3 participants