From fdbd17b2187a74db913d733bdb2fdfb1c71dd625 Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Tue, 21 Nov 2023 11:45:05 -0500 Subject: [PATCH] Link shim-3ds for `test --lib` --- citro3d-sys/Cargo.toml | 3 +++ citro3d-sys/src/lib.rs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/citro3d-sys/Cargo.toml b/citro3d-sys/Cargo.toml index 62b31d8..797e9cb 100644 --- a/citro3d-sys/Cargo.toml +++ b/citro3d-sys/Cargo.toml @@ -14,3 +14,6 @@ ctru-sys = { git = "https://github.com/rust3ds/ctru-rs.git" } bindgen = { version = "0.68.1", features = ["experimental"] } cc = "1.0.83" doxygen-rs = "0.4.2" + +[dev-dependencies] +shim-3ds = { git = "https://github.com/rust3ds/shim-3ds.git" } diff --git a/citro3d-sys/src/lib.rs b/citro3d-sys/src/lib.rs index ed84f5e..c2867a5 100644 --- a/citro3d-sys/src/lib.rs +++ b/citro3d-sys/src/lib.rs @@ -9,3 +9,7 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs")); pub mod gx; pub use gx::*; + +// Prevent linking errors from the standard `test` library when running `cargo 3ds test --lib`. +#[cfg(test)] +extern crate shim_3ds;