aranya_libc/
lib.rs

1//! A wrapper around parts of libc for Aranya Core.
2//!
3//! # Operating System Support
4//!
5//! - Linux
6//! - MacOS
7//! - VxWorks 6.9
8//!
9//! # Features
10//!
11//! - `std`: Enable [`std`] support.
12//!
13//! [`std`]: https://doc.rust-lang.org/std/
14
15#![cfg_attr(docsrs, feature(doc_cfg))]
16#![cfg_attr(not(any(test, doctest, feature = "std")), no_std)]
17#![warn(missing_docs)]
18#![deny(
19    clippy::alloc_instead_of_core,
20    clippy::expect_used,
21    clippy::implicit_saturating_sub,
22    clippy::indexing_slicing,
23    clippy::missing_panics_doc,
24    clippy::ptr_as_ptr,
25    clippy::string_slice,
26    clippy::transmute_ptr_to_ptr,
27    clippy::undocumented_unsafe_blocks,
28    clippy::unimplemented,
29    clippy::unwrap_used,
30    clippy::wildcard_imports,
31    missing_docs
32)]
33
34extern crate alloc;
35
36#[cfg(any(test, feature = "std"))]
37extern crate std;
38
39mod api;
40mod errno;
41mod path;
42mod sys;
43
44pub use api::*;
45pub use errno::Errno;
46pub use path::*;