diff options
author | Ed Schouten <ed@nuxi.nl> | 2017-12-27 14:42:19 +0100 |
---|---|---|
committer | Ed Schouten <ed@nuxi.nl> | 2017-12-27 14:42:19 +0100 |
commit | 510cb2f72001306432885cfa0462d568774cf6c2 (patch) | |
tree | 4de40633d02947c4c07f81c4e32f799b0257809f /src/lib.rs | |
parent | 5221616a7714428df82b38605a786bb9988b4391 (diff) | |
download | rust-libc-510cb2f72001306432885cfa0462d568774cf6c2.tar.gz |
Add support for CloudABI.
CloudABI is a sandboxed UNIX-like runtime environment, based on the
principle of capability-based security. As CloudABI is intended to be
cross-platform, the system call layer is specified here:
https://github.com/NuxiNL/cloudabi/blob/master/cloudabi.txt
From these definitions, we automatically generate C and Rust bindings.
The latter is published on crates.io:
https://crates.io/crates/cloudabi
My goal is to implement libstd for CloudABI in such a way that it uses
the C library as little as possible; only in places where it would ease
interfacing with C code (e.g., thread creation). In places where
constants in the C library are directly based on the CloudABI
specification (e.g., errnos), use the constants provided by the cloudabi
crate.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 74634a1be4..1c374bf761 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -286,6 +286,9 @@ cfg_if! { } else if #[cfg(target_os = "redox")] { mod redox; pub use redox::*; + } else if #[cfg(target_os = "cloudabi")] { + mod cloudabi; + pub use cloudabi::*; } else if #[cfg(target_os = "fuchsia")] { mod fuchsia; pub use fuchsia::*; |