This repository has been archived by the owner on Aug 16, 2021. It is now read-only.
Allow depending on std without depending on backtrace #257
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is done through adding a new
std2
feature which acts exactly likestd
, but without the dependency onbacktrace
.This is a hack, but it should be an effective one until we can make 'std' itself not depend on backtrace in v0.2.
With this, someone can depend on
failure = { version = "0.1", default-features = false, features = ["std2"] }
to bring instd
implementations without bringing in the dependency onbacktrace
.I'm undecided as to whether this is a good idea. If failure 0.2.0 is soon to be created, this would be pretty pointless and create churn in the features and in crates depending on
failure
for no reason. If it's another half year away, this could be a good addition for allowing use offailure
withoutbacktrace
backwards compatibly.Fixes #127.