Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit a1d1994

Browse files
committed
Shouldn't be using const_cstr
Unneeded dependency
1 parent c3ba722 commit a1d1994

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ edition = "2018"
1212

1313
[dependencies]
1414
dlopen = "0.1.8"
15-
once_cell = "1.7.2"
16-
const-cstr = "0.3.0"
15+
once_cell = "1.7.2"

src/lua_shared.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ pub static LUA_SHARED_PATH: Lazy<Option<PathBuf>> = Lazy::new(|| {
4040
Some(full)
4141
});
4242

43-
use const_cstr::const_cstr;
4443
macro_rules! expose_symbol {
4544
($name:ident, $ret:ty, $($args:tt)*) => {
4645
pub const $name: Lazy<extern fn$($args)* -> $ret> = Lazy::new(|| {
47-
unsafe { LUA_SHARED_RAW.symbol_cstr( const_cstr! ( stringify!($name) ).as_cstr() ) }.unwrap()
46+
unsafe { LUA_SHARED_RAW.symbol( stringify!($name) ) }.unwrap()
4847
});
4948
};
5049
}

0 commit comments

Comments
 (0)