diff --git a/crates/byondapi-rs/Cargo.toml b/crates/byondapi-rs/Cargo.toml index 466dd55..48c8cc7 100644 --- a/crates/byondapi-rs/Cargo.toml +++ b/crates/byondapi-rs/Cargo.toml @@ -15,9 +15,7 @@ exclude = [".vscode/*"] [dependencies] byondapi-sys = { path = "../byondapi-sys", version = "0.11.1" } byondapi-macros = { path = "../byondapi-macros", version = "0.1.2" } -lazy_static = "1.4.0" libloading = "0.8.3" -walkdir = "2.5.0" inventory = "0.3.15" num_enum = "0.7.2" diff --git a/crates/byondapi-rs/README.md b/crates/byondapi-rs/README.md index d44c077..9e311e4 100644 --- a/crates/byondapi-rs/README.md +++ b/crates/byondapi-rs/README.md @@ -4,7 +4,7 @@ This crate implements a rusty safe API for using BYONDAPI. # WARNING -This library automatically initializes on the first function call, using lazy_static!. This initialization can fail +This library automatically initializes on the first function call, using OnceCell. This initialization can fail in one circumstance: where the symbols needed by the BYONDAPI are not found in the current executable. The only sane way to handle this is to panic, which will inevitably unwind across the FFI barrier, which is **undefined