40 lines
632 B
Rust
Raw Normal View History

#![no_std]
2023-12-10 20:54:15 +02:00
#![feature(
maybe_uninit_slice,
step_trait,
const_trait_impl,
effects,
slice_ptr_get,
strict_provenance,
never_type,
let_chains,
2024-01-04 21:22:18 +02:00
allocator_api,
maybe_uninit_uninit_array,
const_maybe_uninit_uninit_array,
new_uninit,
inline_const,
2024-03-13 19:01:59 +02:00
trait_alias,
if_let_guard,
trait_upcasting,
arbitrary_self_types,
slice_split_once
2023-12-10 20:54:15 +02:00
)]
extern crate alloc;
#[macro_use]
pub mod task;
pub mod arch;
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,
}