this post was submitted on 17 Oct 2024
52 points (100.0% liked)

Rust

6755 readers
20 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

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] - https://en.wikipedia.org/wiki/.io#Phasing_Out

top 24 comments
sorted by: hot top controversial new old
[–] onlinepersona@programming.dev 24 points 5 months ago* (last edited 5 months ago) (1 children)

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

[–] taladar@sh.itjust.works 1 points 5 months ago (1 children)

Namespacing by username or org is a good way to get people to download the compromised wrong crate though since barely any document will talk about that part of the name and it will sometimes change over the lifetime of a project.

[–] onlinepersona@programming.dev 1 points 5 months ago

Is that a problem with java? In fact, is it even a problem on github where repos are namespaced by user or org?

Anti Commercial-AI license

[–] unknowing8343@discuss.tchncs.de 22 points 5 months ago

What about stopping the bullsh*t of TLD nonsense and doing something like crates.rust-lang.org? It's the most sensible solution.

[–] patrick@lemmy.bestiver.se 18 points 5 months ago (1 children)

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.

https://en.wikipedia.org/wiki/.sh

[–] barsoap@lemm.ee 4 points 5 months ago (1 children)

Saint Helena is in no way comparable because it's not disputed territory. Back when Mauritius became independent the British carved out some islands for their continued colonial use, breaking (back then brand new) international law.

Saint Helena has no such connection to another country and it was uninhabited before the Dutch settled. The Brits later conquered it but even if the Dutch want it back it'd keep its autonomous territory status and therefore its own TLD, the Dutch have plenty of those.

[–] GetOffMyLan@programming.dev 3 points 5 months ago (1 children)

They can still revoke its use anytime they want. Which is the main issue right?

[–] barsoap@lemm.ee 4 points 5 months ago* (last edited 5 months ago) (1 children)

So can any TLD holder. The rules for .org might change to disallow individuals. .com might outlaw non-profits. .net might get restricted to ISPs. There is a small, but existent, chance that all the oxygen molecules in the room I'm in are going to decide that they'll huddle up in some corner, leaving me to suffocate. I refuse to worry about it.

If you want to be paranoid like that you can send the rust foundation some money and tell them to spend it on the .rust and .ferris gTLDs.

[–] webbureaucrat@floss.social 3 points 5 months ago

@barsoap @GetOffMyLan It's not even all that hypothetical tbh. I don't recall the details exactly but there was a big scare a few years ago when .org changed hands.

[–] GissaMittJobb@lemmy.ml 12 points 5 months ago (1 children)

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 9 points 5 months ago

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.

[–] thingsiplay@beehaw.org 11 points 5 months ago (1 children)

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.

[–] barsoap@lemm.ee 4 points 5 months ago (1 children)

Serbia isn't going to vanish any time soon.

[–] nebeker@programming.dev 3 points 5 months ago (1 children)

But it could limit the usage of its TLD.

[–] barsoap@lemm.ee 2 points 5 months ago

Unlikely, and even more unlikely to not be able to be worked around by a local rust user group.

Like, the .eu restriction to only give out domains to individuals and companies within the EEA is more about having a domestic contact than anything else, EURid doesn't care who actually uses the domain just that it has European legal representation.

[–] BatmanAoD@programming.dev 8 points 5 months ago (1 children)

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 7 points 5 months ago (1 children)

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 1 points 5 months ago (1 children)

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

[–] nebeker@programming.dev 2 points 5 months ago

Interestingly enough, you also have amazon.co.uk, which combines the nature (commercial) and location served (UK), but in the opposite order.

[–] FizzyOrange@programming.dev 5 points 5 months ago (1 children)

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

[–] patrick@lemmy.bestiver.se 13 points 5 months ago (1 children)

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 1 points 5 months ago

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.

[–] BB_C@programming.dev 3 points 5 months ago

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

[–] Glitterkoe@lemmy.world 1 points 5 months ago

It shouldn't be too hard to have a backup domain point to the same resources. Could even be setup as a fallback mirror by default.