rust-cli / human-panic

Panic messages for humans.
https://docs.rs/human-panic
Apache License 2.0
1.66k stars 65 forks source link

Don't require users to have extern crate #35

Closed killercup closed 6 years ago

killercup commented 6 years ago

By not refering to the name of the crate directly, it us now possible to re-export and use setup_panic! in quicli.

This a somewhat of a 🐛 bug fix, but also a new 🙋 feature.

Checklist

Context

I want to use this in quicli

Semver Changes

Patch version bump is enough.

spacekookie commented 6 years ago

What does $crate actually do? Other than that, this looks ok :+1:

killercup commented 6 years ago

$crate expands to the path of the crate the macro was defined in. (The first edition of the book has a section on it)