Skip to content

Commit 45b0bd9

Browse files
committed
fix: fix human panic metadata create for release mode
1 parent 8383d8d commit 45b0bd9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ vergen-gix = { version = "1.0.1", features = ["build"] }
4242

4343
[dev-dependencies]
4444
pretty_assertions = "1.4.0"
45+
46+
[build]
47+
jobs = 4

src/utils.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ lazy_static! {
3131
}
3232

3333
fn project_directory() -> Option<ProjectDirs> {
34-
ProjectDirs::from("com", "kdheepak", env!("CARGO_PKG_NAME"))
34+
ProjectDirs::from("com", "chleba", env!("CARGO_PKG_NAME"))
3535
}
3636

3737
pub fn initialize_panic_handler() -> Result<()> {
@@ -54,14 +54,11 @@ pub fn initialize_panic_handler() -> Result<()> {
5454

5555
#[cfg(not(debug_assertions))]
5656
{
57-
use human_panic::{handle_dump, print_msg, Metadata};
58-
let meta = Metadata {
59-
version: env!("CARGO_PKG_VERSION").into(),
60-
name: env!("CARGO_PKG_NAME").into(),
61-
authors: env!("CARGO_PKG_AUTHORS").replace(':', ", ").into(),
62-
homepage: env!("CARGO_PKG_HOMEPAGE").into(),
63-
};
64-
57+
use human_panic::{handle_dump, print_msg, metadata};
58+
let meta = metadata!()
59+
.authors("Chleba <[email protected]>")
60+
.homepage("https://github.com/Chleba/tui-slides")
61+
.support("https://github.com/Chleba/tui-slides/issues");
6562
let file_path = handle_dump(&meta, panic_info);
6663
// prints human-panic message
6764
print_msg(file_path, &meta)

0 commit comments

Comments
 (0)