aboutsummaryrefslogtreecommitdiff
path: root/ctru-rs
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-06-13 01:14:35 -0600
committerFenrir <[email protected]>2017-07-10 11:31:47 -0600
commit370650f4b66d9fbc1ef9acba5e80daed56184eed (patch)
tree46b090be0b45611fb42ea183d7064f0703e2ce85 /ctru-rs
parentUpdate libraries for ctru-sys changes (diff)
downloadarchived-ctru-rs-370650f4b66d9fbc1ef9acba5e80daed56184eed.tar.xz
archived-ctru-rs-370650f4b66d9fbc1ef9acba5e80daed56184eed.zip
Go back to using pre-generated bindings
Bindgen takes a long time to compile, and we only ever need to update bindings for new ctrulib releases anyway.
Diffstat (limited to 'ctru-rs')
-rw-r--r--ctru-rs/Cargo.toml2
-rw-r--r--ctru-rs/build.rs4
2 files changed, 4 insertions, 2 deletions
diff --git a/ctru-rs/Cargo.toml b/ctru-rs/Cargo.toml
index e86a5cb..83ebcf9 100644
--- a/ctru-rs/Cargo.toml
+++ b/ctru-rs/Cargo.toml
@@ -3,6 +3,7 @@ authors = ["Ronald Kinard <[email protected]>"]
description = "A safe wrapper around smealum's ctrulib."
license = "https://en.wikipedia.org/wiki/Zlib_License"
name = "ctru-rs"
+links = "ctru"
version = "0.5.1"
[lib]
@@ -11,6 +12,7 @@ name = "ctru"
[dependencies.ctru-sys]
path = "../ctru-sys"
+version = "0.4"
[dependencies.bitflags]
version = "0.7.0"
diff --git a/ctru-rs/build.rs b/ctru-rs/build.rs
index 7e6e534..ee5b30b 100644
--- a/ctru-rs/build.rs
+++ b/ctru-rs/build.rs
@@ -2,9 +2,9 @@ use std::env;
use std::path::PathBuf;
fn main() {
- let devkitpro_path = PathBuf::from(env::var("DEVKITPRO").unwrap());
+ let dkp_path = PathBuf::from(env::var("DEVKITPRO").unwrap());
- println!("cargo:rustc-link-search=native={}", devkitpro_path.join("libctru/lib").display());
+ println!("cargo:rustc-link-search=native={}", dkp_path.join("libctru/lib").display());
println!("cargo:rustc-link-lib=static={}", match env::var("PROFILE").unwrap().as_str() {
"release" => "ctru",
"debug" => "ctrud",