Image

Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on can't install tokei

Parent

can't install tokei

+1
−0

I am trying to install tokei in Ubuntu 24.04.3 LTS wsl machine. I ran:

cargo install tokei

And I got:

Downloaded grep-matcher v0.1.8 error: failed to compile tokei v14.0.0, intermediate artifacts can be found at /tmp/cargo-installJBFjRf.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Caused by:
failed to download replaced source registry crates-io

Caused by:
failed to parse manifest at /home/oren/.cargo/registry/src/index.crates.io-6f17d22bba15001f/grep-matcher-0.1.8/Cargo.toml

Caused by:
feature edition2024 is required

The package requires the Cargo feature called edition2024, but that feature is not stabilized in this version of Cargo (1.75.0).
Consider trying a more recent nightly release. See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.

How can I solve this?

History

0 comment threads

Post
+1
−0

Your Cargo version is too old. I just installed Cargo on a blank Ubuntu 24.04 and got version 1.92.0, where the installation of tokei 14 worked flawlessly.

You can use the following command to update cargo to the latest version:

rustup update
History

1 comment thread

Works for me (1 comment)
Works for me
programAngel‭ wrote 27 days ago

I run it and it solved my problem.