Hacker News new | ask | show | jobs
by peacefulhat 2142 days ago
What do you want to do with namespaces? I don't understand.
3 comments

What I personally want from namespaces on crates.io is basically the same as I want from org names on GitHub; the ability to manage permissions at the level of a organistation rather than each package requiring a unique setup, making it harder to audit and admin all the packages belonging to an org. It also seems like a win for consumers to know when they're using code from a specific vendor vs when they aren't. The consumer trust problem you can possibly solve with naming conventions — although it's hard to ensure that everyone has the same conventions unless it's enforced — but the admin problems you can't.
Yes, it would be great to have packages grouped by organisation. It would make it much easier to see in a package list how which organisations you're depending on, rather than just how many crates.
Imagine if every repository you pushed to GitHub had to have a globally unique name, rather than account/whatever-you-like.
So account-whatever-you-like then?
That is not the same, because ownership of _account_ isn't enforced if it's just a string. Imagine someone else uploading qayxc-resume, for example.
give everyone an equal chance to pick a good name