🏠
Author: fasterthanli.me (did:plc:dqrcz4py2hrv4lzcs6ygoagj)

Collections

Record🤔

uri:
"at://did:plc:dqrcz4py2hrv4lzcs6ygoagj/app.bsky.feed.post/3l4eebspk7f2u"
cid:
"bafyreihs5zi4rx7m3fzyygsysl6nfu46g2fewhdcspyxksaxhxrifos2iy"
value:
text:
"✨PSA: upgrade to `cargo-edit` 0.13 now ⏰

it no longer does a full git clone of the crates.io registry

now it uses the sparse registry, which means it only fetches what it needs to, saving disk space and precious time.

👉$ cargo install --locked --force cargo-edit"
$type:
"app.bsky.feed.post"
embed:
$type:
"app.bsky.embed.images"
images:
  • alt:
    "The image shows a terminal screenshot with commands and outputs related to upgrading Rust packages using `cargo`. Key points include:
    
    - **Top section**: 
      - A full `git` checkout of the Cargo registry is taking up significant space (881MB), prompting the user to clean it up with the `rm -rf ~/.cargo/registry/src/` command.
    
    - **Middle section**:
      - After clearing the registry, the user runs `cargo upgrade -p rubicon`, using version `v1.81.0` and the sparse registry. The process checks dependencies and upgrades package versions (upgrading `rubicon` to version `3.4.7`), taking approximately 2.278 seconds.
    
    - **Bottom section**: 
      - After using the sparse registry, only 38MB is utilized in the `.cargo/registry/src/` directory, highlighting the efficiency of fetching a few subdirectories over HTTP instead of using `git`.
    
    Annotations on the image include:
    - Red text explaining that the full `git` checkout took minutes and was removed.
    - Yellow text pointing out that `cargo-upgrade 0.13` took just 2.3 seconds to upgrade using the sparse registry.
    - Green text noting the smaller space consumption after switching to fetching over HTTP."
    image:
    View blob content
    $type:
    "blob"
    mimeType:
    "image/png"
    size:
    907986
langs:
  • "en"
facets:
  • $type:
    "app.bsky.richtext.facet"
    index:
    byteEnd:
    97
    byteStart:
    88
    features:
createdAt:
"2024-09-17T15:44:11.133290Z"