-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Issue: v2.0.0 #46
Comments
Something that might be useful to bikeshed for a 2.0 release is renaming I'm thinking something like |
How about The |
@mathstuf with the 2018 module system macros should become a bit more easily traceable to their source. E.g. import macro to file use human_panic::install_human_panic;
fn main () {
install_human_panic!();
} use macro from import use human_panic;
fn main () {
human_panic::install_human_panic!();
} It feels like in both cases the word
My personal preference would be to adopt stdlib fn main () {
panic::catch_unwind(|| println!("hello!"));
} human_panic fn main () {
human_panic::catch_unwind!();
} There's probably some compat issues to be figured out, but I'm thinking the general idea should hold. |
Yay a 🚲 🏠 ! Renaming the setup macro is definitely a good idea, although I'm not sure I'm happy with any of the suggestions so far 😉 Repeating the term Instead what about something like this. fn main() {
human_panic::panic_handler!(); And it's still clear enough when the macro is directly in scope use human_panic;
fn main() {
panic_handler!()
} It signals that some |
@spacekookie yeah that seems reasonable! -- and yeah I guess we do have (our first?) bike shed on our hands 🎉 wooh; that's not a bad problem to have! |
I just branched off fed6fda into it's own branch: This means that |
Should custom error messages (issue #54) be part of v2.0.0? It is the biggest thing holding me back from using human-panic. |
This change reverts the codebase to use the vanilla upstream version of `human-panic` so this tool can be published on Crates.io in the meantime. Unfortuntely, this adds multiple crates which are **not** used and are purely extra. When some of the upstream PRs and issues are resolved, merged, and released, then this commit may become revertable. References: rust-cli/human-panic#46 Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
This change reverts the codebase to use the vanilla upstream version of `human-panic` so this tool can be published on Crates.io in the meantime. Unfortuntely, this adds multiple crates which are **not** used and are purely extra. When some of the upstream PRs and issues are resolved, merged, and released, then this commit may become revertable. References: rust-cli/human-panic#46 Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
This is a work-in-progress tracking issue for a
2.0
release ofhuman-panic
, set in motion because of #45New Features
website
andrepository
fields ( - | PR: metadata: add repository #45)The text was updated successfully, but these errors were encountered: