Cargo update problem

⚓ Rust    📅 2025-08-18    👤 surdeus    👁️ 6      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Cargo update problem

Hi,

I am trying to update the version of a big project.
It uses 1.82.0 rust version to compile and some Cargo.toml with 2018 edition.

In a second time :
I create a project aside to test just this lib with the minimal example : GitHub - Relacibo/typst-as-lib: Easily use typst from rust.

It uses to works (rust version 1.86.0, edition 2024).

But today, I try to follow this command to update my project : Transitioning an existing project to a new edition - The Rust Edition Guide

After using cargo updateon my big project, I get some error that I use to not have before using typst-as-lib. So I go on my project aside with just the minimal sample of typst-as-lib. I type cargo update to see... And now, it not works anymore.

So I have some question :

  • How can we revert cargo update ? (I try to clean target and delete Cargo.lock, but seems not to be that).
  • How we update a project ? I was thinking I need to use recent version of rust like 1.86.0 to compile some new lib in my project. So I updated all the crate in their latest version. It was working using a 0.13.1 version of typst-as-lib and the edition 2018 with 1.82.0 for rust version of compilation.
    Now I try to get the lastest version of typst-as-lib with edition 2024. I try to change also edition for all cargo.toml and I need to use 1.85.0 version of rust (minimum).

Am I wrong in my comprehension for a update ? And why, with no code change, the cargo update makes now my little project with only the main sample of typst-as-lib not working... ?

After reading other post, I was thinking we can mix package with different edition but we can only use one version of rust for the compilation...

A lot of text here, but I am confused a little...

2 posts - 2 participants

Read full topic

🏷️ Rust_feed