Update redox_syscall
Niklas Claesson
4 years ago
44 | 44 |
pest_meta (update)
|
45 | 45 |
rusty-tags (update)
|
46 | 46 |
tempfile (update)
|
|
47 |
redox_syscall (update)
|
47 | 48 |
|
48 | 49 |
Delayed/problematic::
|
49 | 50 |
|
|
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 |
|
0 | 7 |
rust-redox-syscall (0.1.40-2) unstable; urgency=medium
|
1 | 8 |
|
2 | 9 |
* Package redox_syscall 0.1.40 from crates.io using debcargo 2.2.5
|
0 | 0 |
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
1 | 1 |
Upstream-Name: redox_syscall
|
2 | 2 |
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
|
4 | 4 |
|
5 | 5 |
Files: *
|
6 | 6 |
Copyright: FIXME (overlay) UNKNOWN-YEARS Jeremy Soller <jackpot51@gmail.com>
|
|
20 | 20 |
|
21 | 21 |
Files: debian/*
|
22 | 22 |
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>
|
25 | 25 |
License: MIT
|
26 | 26 |
|
27 | 27 |
License: MIT
|
0 | 0 |
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
|
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
|
src/redox-syscall/debian/rules.debcargo.hint
less
more
0 | |
#!/usr/bin/make -f
|
1 | |
%:
|
2 | |
dh $@ --buildsystem cargo
|