rust-lang-deprecated / failure

Error management

Home Page:https://rust-lang-nursery.github.io/failure/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should `backtrace` dependency be optional?

vi opened this issue · comments

Although nominally optional, backtrace is effectively required if you want to use Error or bail!.

This hinders portability, as backtrace depends on C code:

cargo:warning=src/libbacktrace/macho.c:50:2: error: #error Attempting to build Mach-O support on incorrect platform

Shall failure have some feature combination to build projects depending on failure without backtrace support, yet with typical failure's convenience features?

See also #127