From 9741d8a1774349e5b714df6c3344f7a7d94b7b46 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Wed, 13 Oct 2021 16:58:06 +0100 Subject: [PATCH] Remove alloc dependency --- Cargo.toml | 6 +++--- README.md | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a86ac3d..09d9d8d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "unwinding" -version = "0.1.1" +version = "0.1.2" authors = ["Gary Guo "] edition = "2018" license = "MIT OR Apache-2.0" @@ -11,12 +11,12 @@ repository = "https://github.com/nbdd0121/unwinding/" members = ["cdylib", "example"] [dependencies] -gimli = { version = "0.25.0", default-features = false, features = ["read"] } +gimli = { version = "0.25.0", default-features = false, features = ["read-core"] } libc = { version = "0.2", optional = true } spin = { version = "0.9", optional = true, default-features = false, features = ["mutex", "spin_mutex"] } [patch.crates-io] -gimli = { git = "https://github.com/gimli-rs/gimli.git", rev = "80010ee0442ecd7d0916b0a36cc2d4267fc09dc8" } +gimli = { git = "https://github.com/gimli-rs/gimli.git", rev = "7a3aeef78d169b39e15e18f1573492c501b25c68" } [features] alloc = [] diff --git a/README.md b/README.md index e317cac..21f5509 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,3 @@ And that's it! After you ensured that the global allocator is functional, you ca If your linker supports `--eh-frame-hdr` you can also try to use `fde-gnu-eh-frame-hdr` instead of `fde-static`. GNU LD will provides a `__GNU_EH_FRAME_HDR` magic symbol so you don't have to provide `__eh_frame` through linker script. If you have your own version of `thread_local` and `println!` working, you can port [`panic_handler.rs`](src/panic_handler.rs) for double-panic protection and stack traces! - -## TODO - -* Remove dependencies on `alloc`.