You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That way, third-party crates, like backtrace, could use the same code than the compiler. It uses things like std::io and std::env, so it should depend on std.
Waiting for #38165 before starting.
I think in order to use the external backtrace crate we'd have to make it capable of compiling with no_std; cc @alexcrichton (owner of the crate). However, I'm not very clear on the specifics here.
So I put up a trial run of a no_std backtrace-rs implementation (rust-lang/backtrace-rs#50) that technically compiles on macOS and x86_64, if probably doesn't work. After realizing that we'd have to vendor 2-3 new repos in order for this to happen today, we decided it's not time yet. As such, I'm unassigning myself -- but if anyone wants to take the PR and branch I put up and push it into completion that would be a good start for the future.
Activity
retep998 commentedon Feb 3, 2017
As soon as the old makefiles are finally gone (#39431) Rust will be able to switch to using the external
backtrace
crate from crates.io.Mark-Simulacrum commentedon May 20, 2017
I think in order to use the external backtrace crate we'd have to make it capable of compiling with no_std; cc @alexcrichton (owner of the crate). However, I'm not very clear on the specifics here.
alexcrichton commentedon May 20, 2017
Discussed on IRC with @Mark-Simulacrum, the thinking here is:
no_std
profile of compiling thebacktrace
crate, probably stripping out most of the APIsunsafe
requiring explicit external synchronizationAnd otherwise land it!
Mark-Simulacrum commentedon May 20, 2017
So I put up a trial run of a no_std backtrace-rs implementation (rust-lang/backtrace-rs#50) that technically compiles on macOS and x86_64, if probably doesn't work. After realizing that we'd have to vendor 2-3 new repos in order for this to happen today, we decided it's not time yet. As such, I'm unassigning myself -- but if anyone wants to take the PR and branch I put up and push it into completion that would be a good start for the future.
mati865 commentedon Jun 12, 2019
@alexcrichton has #60852 fixed this issue?
alexcrichton commentedon Jun 12, 2019
Yep!