Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Split backtrace and std features up. #128

Closed
wants to merge 2 commits into from
Closed

Split backtrace and std features up. #128

wants to merge 2 commits into from

Conversation

daboross
Copy link

@daboross daboross commented Jan 11, 2018

This allows depending on std Fail implementations without depending on the backtrace crate.

There are two caveats. First, in this PR both backtrace and std must be enabled in order for someone to use the backtrace functionality. Second, this might be a breaking change if someone depended on default-features = false, features = ["std"] in the past, and relied on std depending on backtrace to bring it in.

This changes the travis CI configuration to test with std and backtrace enabled separately so as to ensure correctness.

Closes #127.

This allows depending on std Fail implementations without depending on
the backtrace crate.

Note that with this, both the 'backtrace' and 'std' features must
be enabled in order to access backtrace functionality. There is no
current way to depend on the 'std' feature from the 'backtrace' feature
in cargo, as it is named after a dependency.
@withoutboats
Copy link
Contributor

Planning to make a breaking change, will probably wrap this up in that.

@daboross
Copy link
Author

Alright, thanks!

@withoutboats
Copy link
Contributor

Fixed with #144, thanks!

@daboross daboross deleted the split-backtrace-std branch January 30, 2018 09:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants