2024-03-14 00:42:36 +02:00
|
|
|
#![cfg_attr(not(test), no_std)]
|
|
|
|
#![cfg_attr(test, allow(unused_imports))]
|
2024-03-13 23:52:51 +02:00
|
|
|
#![allow(clippy::new_without_default)]
|
2023-12-10 20:54:15 +02:00
|
|
|
#![feature(
|
|
|
|
maybe_uninit_slice,
|
|
|
|
step_trait,
|
|
|
|
const_trait_impl,
|
|
|
|
effects,
|
|
|
|
slice_ptr_get,
|
2023-12-10 23:01:39 +02:00
|
|
|
strict_provenance,
|
|
|
|
never_type,
|
2023-12-18 17:04:01 +02:00
|
|
|
let_chains,
|
2024-01-04 21:22:18 +02:00
|
|
|
allocator_api,
|
|
|
|
maybe_uninit_uninit_array,
|
2024-01-15 18:15:59 +02:00
|
|
|
const_maybe_uninit_uninit_array,
|
2024-01-25 12:12:07 +02:00
|
|
|
new_uninit,
|
2024-02-09 14:20:13 +02:00
|
|
|
inline_const,
|
2024-03-13 19:01:59 +02:00
|
|
|
trait_alias,
|
|
|
|
if_let_guard,
|
2024-03-13 19:14:54 +02:00
|
|
|
trait_upcasting,
|
|
|
|
arbitrary_self_types,
|
|
|
|
slice_split_once
|
2023-12-10 20:54:15 +02:00
|
|
|
)]
|
2023-12-10 18:52:33 +02:00
|
|
|
|
|
|
|
extern crate alloc;
|
2023-08-21 17:26:44 +03:00
|
|
|
|
2024-03-13 19:14:54 +02:00
|
|
|
#[macro_use]
|
|
|
|
pub mod task;
|
2024-02-12 12:09:53 +02:00
|
|
|
|
|
|
|
pub mod arch;
|
2024-03-18 20:08:24 +02:00
|
|
|
pub mod random;
|
2024-03-13 19:01:59 +02:00
|
|
|
pub mod vfs;
|
2023-09-06 18:48:00 +03:00
|
|
|
|
2024-02-14 14:45:18 +02:00
|
|
|
pub mod device {
|
|
|
|
pub use libk_device::*;
|
|
|
|
}
|
|
|
|
|
2023-09-06 18:48:00 +03:00
|
|
|
#[repr(C)]
|
|
|
|
pub struct AlignedTo<Align, Bytes: ?Sized> {
|
|
|
|
pub align: [Align; 0],
|
|
|
|
pub bytes: Bytes,
|
|
|
|
}
|