-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read new Cargo.lock files #530
Comments
I also run into this issue with |
Also can't read Cargo.toml workspace files with
|
For future readers, be advised that this sort of thing may have fallen out of vogue or usefulness. "uses unsafe" is kind of an unreliable or vague heuristic. You may be better off looking into "Miri" or "CHERI" to understand where your application is inheriting or exhibiting risk. "Miri" and "CHERI" are referenced in the official docs, at the time of writing, in the context of comprehending consequences with |
@meltyness I am not sure what you mean. I think the users |
@shinmao cargo tree | grep -zP "$(grep -PR "fn unsafe|unsafe \{" ~/.cargo/ 2>/dev/null | cut -d":" -f1 | grep \.rs | cut -d"/" -f8 | perl -p -e 's/[-][0-9]+[.][0-9]+[.][0-9]+[+]?.*$//' | uniq | tr '\n' '|' | perl -p -e 's/\|$//' | perl -p -e 's/[|]/ | /g')" I'm just saying there's more refined alternatives to this package, which might explain the delay in getting issues with it fixed. Additionally, a look at other issues suggests that when this worked it ran every build script, which is it's own special kind of thing. Anyway, I hope this helps! |
Here's a specific example about how this is maybe only servicing as a heuristic: cargo-geiger/geiger/src/geiger_syn_visitor.rs Line 126 in e2ddd16
Another solution that could be scripted out pretty easily is to individually Obviously the preference towards more analytical solutions like CHERI and Miri mentioned earlier. |
Cargo-geiger cannot read
Cargo.lock
files created by newer Cargo versions, which makes it unusable unless you use an older version of Cargo to generate a lockfile before runningcargo geiger
.Repro
Install a version of Cargo >= 1.83, and
cargo-geiger
(tested on the latest release, 0.11.7).cargo new geiger-test cd geiger-test cargo generate-lockfile cargo geiger
Output:
Expected output (reproducible if you use Cargo 1.82):
The text was updated successfully, but these errors were encountered: