6 votes

Crates.rs — a new, faster crate index website

Tags: rust

5 comments

  1. [5]
    Meenhard
    Link
    Looks really nice. Can I find the source code anywhere?

    Looks really nice. Can I find the source code anywhere?

    2 votes
    1. [4]
      talklittle
      Link Parent
      Good question; not yet. https://users.rust-lang.org/t/crates-rs-a-new-faster-crate-index-website/17876/18

      Good question; not yet.

      https://users.rust-lang.org/t/crates-rs-a-new-faster-crate-index-website/17876/18

      The things that stop me from open-sourcing it right now:

      • it needs to make >64000 requests to crates.io, and I don’t know if I can unleash such traffic on it, and what’s the policy for redistributing its data. I know the team is preparing to make official data dumps, so that will help.

      • I know documentation is #1 thing people expect from crates, and I currently have none, and it works only on my machine :slight_smile:

      • I’m going to pitercss_conf this week, so I don’t have time to fix the above issue.

      3 votes
      1. [3]
        Meenhard
        Link Parent
        Seems reasonable. I am super excited about it. How did you get it that much faster than the crates.io website?

        Seems reasonable. I am super excited about it. How did you get it that much faster than the crates.io website?

        1. [2]
          talklittle
          Link Parent
          I'm not the author actually; maybe you want to ask over on the Rust forum where the author appears pretty responsive? My take is that basically he used no JavaScript at all, at least no external...

          I'm not the author actually; maybe you want to ask over on the Rust forum where the author appears pretty responsive?

          My take is that basically he used no JavaScript at all, at least no external scripts are loaded. It's completely static and rendered server side, it seems.

          1. Meenhard
            Link Parent
            Yeah that might be it. The difference does not seem to stem from load times but render times.

            Yeah that might be it.

            The difference does not seem to stem from load times but render times.