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;