Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady committed Jan 21, 2025
1 parent 1160880 commit 2848aa6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions backtrace-custom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[package]
edition = "2021"
rust-version = "1.65.0"
name = "backtrace-custom"
name = "backtrace_custom"
version = "0.3.74"
authors = ["The Rust Project Developers"]
build = false
Expand All @@ -31,7 +31,7 @@ license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/backtrace-rs"

[lib]
name = "backtrace"
name = "backtrace_custom"
path = "src/lib.rs"

[[example]]
Expand Down
2 changes: 1 addition & 1 deletion testing/module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cfg-if.workspace = true
thread-id.workspace = true

# // TEST
backtrace-custom.path = "../../backtrace-custom"
backtrace_custom.path = "../../backtrace-custom"

[dependencies.relib_module]
version = "0.3.1"
Expand Down
12 changes: 8 additions & 4 deletions testing/module/src/code_change.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ pub fn main() {

if cfg!(feature = "code_change_backtrace_unloading") {
println!("code_change_backtrace_unloading");
let backtrace = std::backtrace::Backtrace::force_capture();
let _ = format!("{backtrace}");
// let backtrace = std::backtrace::Backtrace::force_capture();
// let _ = format!("{backtrace}");
let backtrace = backtrace_custom::Backtrace::new();
let _ = format!("{backtrace:?}");
// backtrace_custom::unload_shit();
}

if cfg!(feature = "code_change_backtrace_unloading2") {
println!("code_change_backtrace_unloading2");
let backtrace = std::backtrace::Backtrace::force_capture();
let _ = format!("{backtrace}\n2");
let backtrace = backtrace_custom::Backtrace::new();
let _ = format!("{backtrace:?}");
// backtrace_custom::unload_shit();
}
}

Expand Down

0 comments on commit 2848aa6

Please sign in to comment.