aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-12-01 22:10:56 -0700
committerFenrirWolf <[email protected]>2017-12-01 22:33:03 -0700
commitcbafc1a01ba33b337ddbc5e41d4dac6184e275ed (patch)
treeed929d250e7a3617f36133875a94cdbb89a0d898
parentPatch `std` to be compatible with Rust nightly-2017-12-01 (diff)
downloadarchived-ctru-rs-cbafc1a01ba33b337ddbc5e41d4dac6184e275ed.tar.xz
archived-ctru-rs-cbafc1a01ba33b337ddbc5e41d4dac6184e275ed.zip
Better workaround for the `feature(rustc_private)]` issue
Now you don't need a janky `Xargo` fork anymore!
-rw-r--r--ctr-std/Cargo.toml1
-rw-r--r--ctru-sys/Cargo.toml5
2 files changed, 6 insertions, 0 deletions
diff --git a/ctr-std/Cargo.toml b/ctr-std/Cargo.toml
index c4cbce4..be1717f 100644
--- a/ctr-std/Cargo.toml
+++ b/ctr-std/Cargo.toml
@@ -15,6 +15,7 @@ default-features = false
[dependencies.ctru-sys]
path = "../ctru-sys"
+features = ["stdbuild"]
[features]
citra = []
diff --git a/ctru-sys/Cargo.toml b/ctru-sys/Cargo.toml
index 6dc1201..7dd0b02 100644
--- a/ctru-sys/Cargo.toml
+++ b/ctru-sys/Cargo.toml
@@ -7,3 +7,8 @@ license = "https://en.wikipedia.org/wiki/Zlib_License"
[dependencies.libc]
version = "0.2"
default-features = false
+
+[features]
+# This is a dummy feature that only exists to work around a Xargo issue.
+# User code should not enable it.
+stdbuild = []