Skip to content

Commit

Permalink
fix: Remove tons of unneeded dependancies
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Aug 11, 2024
1 parent 0a0c437 commit 4a635e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
9 changes: 0 additions & 9 deletions rivets-shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 0 additions & 12 deletions rivets-shared/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit 4a635e2

Please sign in to comment.