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

    • taladar@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      16 days ago

      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.

    • barsoap@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      22 days ago

      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.

        • barsoap@lemm.ee
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          19 days ago

          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.

  • GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    22 days ago

    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.seOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      22 days 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
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    22 days ago

    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
          link
          fedilink
          arrow-up
          2
          ·
          21 days 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
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    22 days ago

    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.

    • Rogue@feddit.uk
      link
      fedilink
      arrow-up
      8
      ·
      22 days ago

      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
        link
        fedilink
        arrow-up
        2
        ·
        22 days ago

        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
          link
          fedilink
          arrow-up
          6
          ·
          22 days ago

          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.[

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

          • BatmanAoD@programming.dev
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            20 days ago

            Wow, I definitely should have google that myself before asking, but thank you for explaining and calling out that data point.

            I honestly think that shows that it was in fact a bad idea to assign TLDs to countries. Having a country code acronym with a popular tech meaning is essentially just luck of the draw, so they’ve basically just arbitrarily given a few small countries a valuable resource to sell. I guess that benefits those countries, but I doubt “quasi-random fundraising for small countries” was ever the intent.

            • Rogue@feddit.uk
              link
              fedilink
              arrow-up
              2
              ·
              21 days ago

              They are just iso country codes though, so it is just the luck that some have become so popular.

              Some countries are pretty strict that their tlds must be local or at least provide translation in the regional language. The cook islands for instance have prime opportunity with .co.ck but they refuse the to let people take advantage

        • Flipper@feddit.org
          link
          fedilink
          arrow-up
          5
          ·
          22 days ago

          There are several cctld where the entity buying the domain needs to be a local. EU is an example for that. De requires you to be able appoint a representative within 2 weeks living in Germany.

        • Strykker@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          19 days ago

          Canada specifically won’t issue .ca without proof of residence in the country, or something close to that.

          I think .io is unfortunately administered by a group outside of the country it’s related to. Which means they have less control at the moment (something something British colonialism or something)

          But yeah imo country code tlds should be limited to businesses / people who reside within the specific country.

          We have soo many other tld options that are better choices.

    • jeff 👨‍💻@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      22 days ago

      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.

    • patrick@lemmy.bestiver.seOP
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      22 days ago

      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
        link
        fedilink
        arrow-up
        1
        ·
        22 days 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
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    22 days ago

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

  • Glitterkoe@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    15 days 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.