Closed Joining7943 closed 10 months ago
pprof-rs
does not directly depend on addr2line
. It does not require backtrace >= 0.3.69
, either.
So, what you need is just downgrading backtrace
in your project to 0.3.68.
Thanks for your reply.
To my knowledge, I can't just downgrade backtrace
since it is a transitive dependency in my library crate. Can't you just specify a version of backtrace
<=0.3.68
? In my opinion, if you specify a msrv of 1.64.0
, you should also ensure that pprof
can be build with that msrv.
IMO libraries needn't specify <= some version
to satisfy MSRV. Otherwise, those using higher versions of Rust will fail to use latest versions of the dependencies.
The binary crates can downgrade the version in Cargo.lock
using cargo update -p backtrace --precise 0.3.68
. Or, they can add backtrace
as their direct dependency and specify <=0.3.68
themselves.
The new guideline from the Rust blog permits committing lockfiles. So, it's possible to check MSRV in CI with an appropriate committed Cargo.lock
.
So, it's possible to check MSRV in CI with an appropriate committed Cargo.lock.
Since they changed their guideline, this looks like a good solution.
Hi! As the title says, compiling pprof with MSRV
1.64.0
fails with:I tracked this down to the
backtrace
dependency which uses1.65.0
since version0.3.69
with which they also updatedaddr2line
from0.20.0
to0.21.0
.