diff --git a/rivets-shared/Cargo.toml b/rivets-shared/Cargo.toml index df8ffe6..9ab010f 100644 --- a/rivets-shared/Cargo.toml +++ b/rivets-shared/Cargo.toml @@ -9,16 +9,7 @@ repository = "https://github.com/factorio-rivets/rivets" [dependencies] cpp_demangle = "0.4" undname = "1.1" -pdb = "0.8" -anyhow = "1.0" -windows = { version = "0.58", features = [ - "Win32", - "Win32_System", - "Win32_System_LibraryLoader", -] } syn = "2.0" -proc-macro2 = "1.0" -dirs = "5.0.1" [lib] name = "rivets_shared" diff --git a/rivets-shared/src/lib.rs b/rivets-shared/src/lib.rs index 3c127cb..433ab17 100644 --- a/rivets-shared/src/lib.rs +++ b/rivets-shared/src/lib.rs @@ -1,17 +1,5 @@ use cpp_demangle::Symbol; -use std::ffi::CStr; use undname::Flags; -use windows::core::PCSTR; - -pub trait AsPcstr { - fn as_pcstr(&self) -> PCSTR; -} - -impl AsPcstr for CStr { - fn as_pcstr(&self) -> PCSTR { - PCSTR(self.as_ptr().cast()) - } -} /// Attempts to demangle a mangled MSVC C++ symbol name. First tries MSVC demangling, then falls back to Itanium. #[must_use]