Does crates.io have a backup plan?
from patrick@lemmy.bestiver.se to rust@programming.dev on 17 Oct 15:57
https://lemmy.bestiver.se/post/61957

It’s possible that the .io cctld is going to go away [0]. Does crates.io have a backup plan at all? Does anyone know what problems it would end up causing?

I imagine the package registry having to move domains is going to cause a ton of problems.

Frankly, it’s concerning to me that so much of the Rust ecosystem has chosen to standardize on shaky ccTLDs. The Indian Ocean Territory (.io) is a small island territory whose only inhabitants are a single military base, it is crazy to use that domain for something important. Serbia (.rs) is more stable, but they could still cut off access for non-Serbians if they wanted to.

[0] - en.wikipedia.org/wiki/.io#Phasing_Out

#rust

threaded - newest

patrick@lemmy.bestiver.se on 17 Oct 16:14 next collapse

Forgot to mention .sh, which is also a ccTLD for a tiny island nation, and also shouldn’t be used for hosting anything that is difficult to move.

en.wikipedia.org/wiki/.sh

onlinepersona@programming.dev on 17 Oct 16:27 next collapse

I’d very much welcome a crates.io alternative that doesn’t require github and supports namespacing by username or org. The dependency on a proprietary platform rubs me the wrong way.

Anti Commercial-AI license

thingsiplay@beehaw.org on 17 Oct 16:28 next collapse

If the domain .io ever gets unusable, then all it needs for Rust / creates.io is to change the respository setting in the configuration of your project to point to new location. Maybe this could be done automatically through an update of Rust tools. It will probably cause headache for automated build systems and for newcomers, but overall its not as bad of an issue as it looks like, I think.

But I agree on that it wasn’t a good idea to use .io and .rs as their backbone. It should have been .com or .org in example, where you know wouldn’t go away ever. Not a fan of country level domains for important projects.

BatmanAoD@programming.dev on 17 Oct 17:07 next collapse

Obviously this isn’t specific to Rust, but frankly it’s bizarre to me that ICANN chose to tie top-level domains to country codes in the first place. Languages might have made sense, but a major feature of the internet is that it’s less beholden to political boundaries than most of the physical world is.

jeff@programming.dev on 17 Oct 19:04 next collapse

It makes a lot of sense for businesses, especially where different countries might have different regulations. E.g., amazon.ca and amazon.in. Both sites are in English but it makes way more sense to split them up by country.

BatmanAoD@programming.dev on 18 Oct 02:37 collapse

Why top-level, though? Why not amazon.in.com?

Rogue@feddit.uk on 17 Oct 22:07 collapse

It’s more bizarre that a single organisation would have such tight control over the Internet. Assigning a tld to each country is a good way to appease each country and give them autonomy over their own portion

BatmanAoD@programming.dev on 18 Oct 02:39 collapse

But do they actually have autonomy, give that random companies can use .io and .ai? Or did the British Indian Ocean Territory and Anguilla approve all such uses of those domains?

Rogue@feddit.uk on 18 Oct 03:02 collapse

Yep. The governments typically select who administers the tld and then get a lump sum or portion of the revenues.

For .ai it was 10% of their GDP in 2023 which is insane…

The registration fees earned from the .ai domains go to the treasury of Government of Anguilla. As per a New York Times report, in 2018, the total revenue generated out of selling .ai domains was $2.9 million.[13][14]

In 2023, Anguilla’s government made about US$32 million from fees collected for registering .ai domains. That amounted to more than 10% of gross domestic product for the territory.[

en.m.wikipedia.org/wiki/.ai

GissaMittJobb@lemmy.ml on 17 Oct 17:19 next collapse

I seriously doubt they will actually phase it out, with such a popular TLD. They made an exception for .su, I don’t see why they wouldn’t this time as well.

patrick@lemmy.bestiver.se on 17 Oct 18:07 collapse

I doubt they will too, but it’s still dumb that an entire package ecosystem now has to hope that ICANN will make another exception and special case .io

ICANN tried to phase out .su, the only reason they didn’t was because Russia was big enough to tell them no.

BB_C@programming.dev on 17 Oct 17:36 next collapse

Submit an issue asking for preemptive GNS (Gnu Name System) domain name support, and leave a link to it here.

FizzyOrange@programming.dev on 17 Oct 17:56 collapse

There’s zero chance they will get rid of .io.

patrick@lemmy.bestiver.se on 17 Oct 18:12 collapse

Are you willing to bet the stability of an entire language’s dependency ecosystem on that? Just so that we can write “crates.io” instead of “crates.rust-lang.org”?

That’s really the question. I do agree that there’s almost no chance it goes away as too many places and too much money depends on it.

FizzyOrange@programming.dev on 17 Oct 21:35 collapse

Yes I definitely am. It’s really nice that crates.io is short, and it’s silly to give that up for a miniscule risk of something moderately annoying happening.

Even if the domain goes away we’d just have to all move to a new domain. Annoying but hardly the end of the world. Cargo.io isn’t actually hard-coded in many places. It’s nothing like if github.com stopped existing.