Skip to content

Commit

Permalink
finally get rid of lmnkjgkj-std-backtrace-anyhow
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady committed May 11, 2024
1 parent 6ecc58f commit 967346f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ readme = "README.md"
[workspace.dependencies]
cxx = "1.0.115"
autocxx = "0.26.0"
anyhow = { package = "lmnkjgkj-std-backtrace-anyhow", version = "0.0.1" }
anyhow = "1.0.83"
paste = "1.0.14"
lazy_static = "1.4.0"
serde = { version = "1.0.195", features = ["derive", "rc"] }
Expand Down
6 changes: 6 additions & 0 deletions test/rust_resource/src/error_backtrace.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use altv::anyhow::anyhow;

pub(crate) fn test_error_backtrace() {
let error = anyhow!("test error");
altv::log!("{}", error.backtrace());
}
5 changes: 5 additions & 0 deletions test/rust_resource/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ use events::test_events;
mod ped;
use ped::test_ped;

mod error_backtrace;
use error_backtrace::test_error_backtrace;

#[altv::main]
fn main() -> impl altv::IntoVoidResult {
std::env::set_var("RUST_BACKTRACE", "full");
Expand Down Expand Up @@ -66,6 +69,8 @@ fn main() -> impl altv::IntoVoidResult {
test_resource();
altv::log!("#################### events");
test_events();
altv::log!("#################### error_backtrace");
test_error_backtrace();

altv::set_timeout(
|| {
Expand Down

0 comments on commit 967346f

Please sign in to comment.