tipc-std 0.1.0

TIPC standard library type provider
Documentation
// SPDX-License-Identifier: Apache-2.0
// Copyright 2026 KylinSoft Co., Ltd. <https://www.kylinos.cn/>
// See LICENSES for license details.

//! TIPC standard library type provider.
//!
//! Provides the same API surface as `trusty_std` (TryClone, FallibleCString,
//! Mutex, etc.) in a `no_std` environment backed by `core` + `alloc`.
//! Both `lk` and `x-kernel` targets are `no_std`; the feature only selects
//! syscall numbering.

#![no_std]
#![allow(internal_features)]
#![allow(clippy::legacy_numeric_constants)]
#![feature(allocator_api)]
#![feature(core_intrinsics)]

extern crate alloc as alloc_crate;

pub mod alloc;
mod clone_ext;
pub mod ffi;
pub mod sync;

pub use core::{
    any, arch, array, assert, assert_eq, assert_ne, cell, cfg, char, clone, cmp, column,
    compile_error, concat, convert, debug_assert, debug_assert_eq, debug_assert_ne, default, env,
    file, format_args, future, hash, hint, i8, i16, i32, i64, i128, include, include_bytes,
    include_str, intrinsics, isize, iter, line, marker, matches, mem, module_path, ops, option,
    option_env, pin, primitive, ptr, result, stringify, u8, u16, u32, u64, u128, unimplemented,
    unreachable, usize, write, writeln,
};

// Re-export commonly used types for source-level compatibility
// with code originally written for `trusty_std`.
pub use alloc_crate::{borrow, boxed, fmt, format, rc, slice, str, string, vec};
pub use clone_ext::TryClone;