Codebase list rust-stfu8 / c264262
Update redox_syscall Niklas Claesson 4 years ago
8 changed file(s) with 56 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
4444 pest_meta (update)
4545 rusty-tags (update)
4646 tempfile (update)
47 redox_syscall (update)
4748
4849 Delayed/problematic::
4950
0 rust-redox-syscall (0.1.56-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package redox_syscall 0.1.56 from crates.io using debcargo 2.2.10
4
5 -- Niklas Claesson <nicke.claesson@gmail.com> Sun, 7 Jul 2019 16:13:24 +0200
6
07 rust-redox-syscall (0.1.40-2) unstable; urgency=medium
18
29 * Package redox_syscall 0.1.40 from crates.io using debcargo 2.2.5
00 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
11 Upstream-Name: redox_syscall
22 Upstream-Contact: Jeremy Soller <jackpot51@gmail.com>
3 Source: https://github.com/redox-os/syscall
3 Source: https://gitlab.redox-os.org/redox-os/syscall
44
55 Files: *
66 Copyright: FIXME (overlay) UNKNOWN-YEARS Jeremy Soller <jackpot51@gmail.com>
2020
2121 Files: debian/*
2222 Copyright:
23 2018 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2018 FIXME (overlay) Your Name <Your Email>
23 2018-2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2018-2019 kpcyrd <git@rxv.cc>
2525 License: MIT
2626
2727 License: MIT
00 overlay = "."
1 uploaders = ["kpcyrd <git@rxv.cc>"]
0 diff --git a/build.rs b/build.rs
1 new file mode 100644
2 index 0000000..ca906fa
3 --- /dev/null
4 +++ b/build.rs
5 @@ -0,0 +1,9 @@
6 +use std::env;
7 +
8 +pub fn main() {
9 + if let Ok(os) = env::var("CARGO_CFG_TARGET_OS") {
10 + if os == "redox" {
11 + println!("cargo:rustc-cfg=nightly");
12 + }
13 + }
14 +}
15 diff --git a/src/lib.rs b/src/lib.rs
16 index 6b8d130..42526f0 100644
17 --- a/src/lib.rs
18 +++ b/src/lib.rs
19 @@ -1,5 +1,5 @@
20 -#![feature(asm)]
21 -#![feature(const_fn)]
22 +#![cfg_attr(nightly, feature(asm))]
23 +#![cfg_attr(nightly, feature(const_fn))]
24 #![cfg_attr(not(test), no_std)]
25
26 #[cfg(test)]
27 @@ -10,6 +10,7 @@ pub use self::call::*;
28 pub use self::data::*;
29 pub use self::error::*;
30 pub use self::flag::*;
31 +#[cfg(target_os = "redox")]
32 pub use self::io::*;
33 pub use self::number::*;
34 pub use self::scheme::*;
35 @@ -47,6 +48,7 @@ pub mod error;
36 pub mod flag;
37
38 /// Functions for low level hardware control
39 +#[cfg(target_os = "redox")]
40 pub mod io;
41
42 /// Call numbers used by each system call
+0
-15
src/redox-syscall/debian/rules less more
0 #!/usr/bin/make -f
1 include /usr/share/rustc/architecture.mk
2 %:
3 dh $@ --buildsystem cargo
4
5 # Upstream at this version requires nightly features :(
6 # They also only work on specific architectures, so ignore test failures elsewhere.
7 override_dh_auto_test:
8 export RUSTC_BOOTSTRAP=1; \
9 case $(DEB_HOST_RUST_TYPE) in \
10 arm-*|x86-*|x86_64-*) \
11 dh_auto_test;; \
12 *) \
13 dh_auto_test || true;; \
14 esac
+0
-3
src/redox-syscall/debian/rules.debcargo.hint less more
0 #!/usr/bin/make -f
1 %:
2 dh $@ --buildsystem cargo