#![allow(missing_docs)] #![allow(clippy::undocumented_unsafe_blocks)] #![allow(clippy::multiple_unsafe_ops_per_block)] #![allow(clippy::indexing_slicing)] #![cfg_attr(all(any(feature = "device", target_os = "cuda"), not(doc)), no_std)]
#![feature(auto_traits)]
#![feature(negative_impls)]
#![cfg_attr(all(feature = "device", not(doc)), feature(stdarch_nvptx))]
#![cfg_attr(feature = "device", feature(asm_experimental_arch))]
#![cfg_attr(feature = "device", feature(asm_const))]
#![feature(doc_auto_cfg)]
#![feature(doc_cfg)]
#![feature(marker_trait_attr)]
#![feature(const_type_name)]
#![feature(adt_const_params)]
#![feature(impl_trait_in_assoc_type)]
#![feature(ptr_metadata)]
#![feature(decl_macro)]
#![feature(let_chains)]
#![feature(sync_unsafe_cell)]
#![feature(never_type)]
#![feature(layout_for_ptr)]
#![feature(cfg_version)]
#![cfg_attr(any(feature = "host", feature = "device"), feature(slice_ptr_get))]
#![expect(incomplete_features)]
#![feature(generic_const_exprs)]
#![expect(internal_features)]
#![feature(core_intrinsics)]
#![feature(const_intrinsic_compare_bytes)]
#![doc(html_root_url = "https://juntyr.github.io/rust-cuda/")]
#[cfg(all(feature = "host", feature = "device", not(doc)))]
core::compile_error!("cannot enable the `host` and `device` features at the same time");
#[cfg(all(feature = "host", target_os = "cuda", not(doc)))]
core::compile_error!("cannot enable the `host` feature on a target with `target_os=\"cuda\"`");
#[cfg(all(feature = "device", not(target_os = "cuda"), not(doc)))]
core::compile_error!("cannot enable the `device` feature on a target without `target_os=\"cuda\"`");
pub mod alloc;
pub mod deps;
pub mod kernel;
pub mod lend;
pub mod safety;
pub mod utils;
#[cfg(feature = "host")]
pub mod host;
#[cfg(feature = "device")]
pub mod device;