Skip to content

Commit

Permalink
Link shim-3ds for test --lib
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-h-chamberlain committed Nov 21, 2023
1 parent 1947849 commit e23a45f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions citro3d-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
4 changes: 4 additions & 0 deletions citro3d-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit e23a45f

Please sign in to comment.