Browse Source

Fixed nits

pull/92/head
Andrea Ciliberti 2 years ago
parent
commit
502bcebe34
  1. 2
      ctru-rs/Cargo.toml
  2. 9
      ctru-rs/src/lib.rs

2
ctru-rs/Cargo.toml

@ -16,7 +16,7 @@ cfg-if = "1.0"
ctru-sys = { path = "../ctru-sys", version = "0.4" } ctru-sys = { path = "../ctru-sys", version = "0.4" }
const-zero = "0.1.0" const-zero = "0.1.0"
linker-fix-3ds = { git = "https://github.com/rust3ds/rust-linker-fix-3ds.git" } linker-fix-3ds = { git = "https://github.com/rust3ds/rust-linker-fix-3ds.git" }
pthread-3ds = {git = "https://github.com/rust3ds/pthread-3ds.git" } pthread-3ds = { git = "https://github.com/rust3ds/pthread-3ds.git" }
libc = "0.2.121" libc = "0.2.121"
bitflags = "1.0.0" bitflags = "1.0.0"
widestring = "0.2.2" widestring = "0.2.2"

9
ctru-rs/src/lib.rs

@ -7,12 +7,9 @@
#![feature(nonnull_slice_from_raw_parts)] #![feature(nonnull_slice_from_raw_parts)]
#![test_runner(test_runner::run)] #![test_runner(test_runner::run)]
// These functions are imported to assure ´cargo´ we need to link the crates. // Nothing is imported from these crates but their inclusion here assures correct linking of the missing implementations.
// These don't need to run to link the functions properly! extern crate linker_fix_3ds;
#[allow(unused_imports)] extern crate pthread_3ds;
use linker_fix_3ds::init as link_init;
#[allow(unused_imports)]
use pthread_3ds::init as pthread_init;
#[no_mangle] #[no_mangle]
#[cfg(feature = "big-stack")] #[cfg(feature = "big-stack")]

Loading…
Cancel
Save