Friendica
Mara
Mara

Mara

Mara@hachyderm.io

Mara

Mara@hachyderm.io
Rust dev, Electronics engineer, Author, Rust library team lead, ADHD, Polyamorous, Lesbian, She/Her
ActivityPub
2023-03-29 13:38:38 2023-03-29 13:38:34 2023-03-29 12:02:04 2955888

Mara
Mara
mastodon - Link to source

Mara

2 years ago • •

Mara

2 years ago • •


🆕🆕🆕🦀 In the last few weeks, #rustlang 1.68.0, 1.68.1 and 1.68.2 have been released!

Here's a thread with some of the highlights of Rust 1.68. 🧵

1/11

blog.rust-lang.org/2023/03/09/…


Announcing Rust 1.68.0 | Rust Blog

Empowering everyone to build reliable and efficient software.
blog.rust-lang.org
#RustLang
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Mara

Mara
mastodon - Link to source

Mara

in reply to Mara • 2 years ago • •

Cargo 1.68 adds a new, much faster, "sparse" protocol for fetching info from crates.io. It is opt-in today, but the plan is to make it the default in 1.70.

Enable it with an environment variable or in .cargo/config:

[registries.crates-io]
protocol = "sparse"

2/11

Two terminals side by side. Left:

$ time cargo add rustix
…
20.845 seconds total

Right:
$ export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

$ time cargo add rustix
…
0.375 seconds total

crates.io: Rust Package Registry

crates.io
  •  Languages
  •  Search Text
  •  Share via ...
⇧