Browse Source

ctr-libc: remove conditional dependency on std

I'd thought that it would be necessary for implementing features such as the std::os::raw types in ctr-std, but I do not believe that that is the case.
pull/10/head
Fenrir 8 years ago
parent
commit
ab1a105174
  1. 15
      ctr-libc/src/lib.rs
  2. 1
      ctr-std/Cargo.toml
  3. 1
      ctr-std/Xargo.toml
  4. 1
      ctru-rs/Xargo.toml
  5. 2
      ctru-sys/Cargo.toml

15
ctr-libc/src/lib.rs

@ -10,20 +10,7 @@ @@ -10,20 +10,7 @@
#![allow(bad_style, overflowing_literals, improper_ctypes, non_camel_case_types)]
// Attributes needed when building as part of the standard library
#![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute, cfg_target_vendor))]
#![cfg_attr(stdbuild, feature(link_cfg))]
#![cfg_attr(stdbuild, no_std)]
#![cfg_attr(stdbuild, staged_api)]
#![cfg_attr(stdbuild, allow(warnings))]
#![cfg_attr(stdbuild, unstable(feature = "libc",
reason = "use `libc` from crates.io",
issue = "27783"))]
#![cfg_attr(not(feature = "use_std"), no_std)]
#[cfg(all(not(stdbuild), not(dox), feature = "use_std"))]
extern crate std as core;
#![no_std]
mod constants;
mod functions;

1
ctr-std/Cargo.toml

@ -8,7 +8,6 @@ git = "https://github.com/rust-lang-nursery/compiler-builtins" @@ -8,7 +8,6 @@ git = "https://github.com/rust-lang-nursery/compiler-builtins"
[dependencies.ctr-libc]
path = "../ctr-libc"
default-features = false
[dependencies.alloc_system]
version = "0.1.1"

1
ctr-std/Xargo.toml

@ -2,5 +2,4 @@ @@ -2,5 +2,4 @@
[dependencies.ctr-libc]
path = "../ctr-libc"
default-features = false
stage = 1

1
ctru-rs/Xargo.toml

@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
[dependencies.ctr-libc]
path = "../ctr-libc"
default-features = false
stage = 1
[dependencies.std]

2
ctru-sys/Cargo.toml

@ -5,4 +5,4 @@ authors = ["Ronald Kinard <furyhunter600@gmail.com>"] @@ -5,4 +5,4 @@ authors = ["Ronald Kinard <furyhunter600@gmail.com>"]
license = "https://en.wikipedia.org/wiki/Zlib_License"
[dependencies]
ctr-libc = { path = "../ctr-libc", default-features = false }
ctr-libc = { path = "../ctr-libc" }

Loading…
Cancel
Save