Browse Source

Link shim-3ds for `test --lib`

pull/28/head
Ian Chamberlain 1 year ago
parent
commit
fdbd17b218
No known key found for this signature in database
GPG Key ID: AE5484D09405AA60
  1. 3
      citro3d-sys/Cargo.toml
  2. 4
      citro3d-sys/src/lib.rs

3
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"] } bindgen = { version = "0.68.1", features = ["experimental"] }
cc = "1.0.83" cc = "1.0.83"
doxygen-rs = "0.4.2" doxygen-rs = "0.4.2"
[dev-dependencies]
shim-3ds = { git = "https://github.com/rust3ds/shim-3ds.git" }

4
citro3d-sys/src/lib.rs

@ -9,3 +9,7 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
pub mod gx; pub mod gx;
pub use gx::*; pub use gx::*;
// Prevent linking errors from the standard `test` library when running `cargo 3ds test --lib`.
#[cfg(test)]
extern crate shim_3ds;

Loading…
Cancel
Save