From a0be78f0fc3e938897b581dbad13624422c4cb6a Mon Sep 17 00:00:00 2001 From: Katherine Kiefer Date: Thu, 6 Jun 2024 22:45:49 +1000 Subject: [PATCH] clarify, axe unused deps --- crates/byondapi-rs/Cargo.toml | 2 -- crates/byondapi-rs/README.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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