rstsr_common/
lib.rs

1#![cfg_attr(not(test), no_std)]
2#![allow(unknown_lints)]
3#![allow(clippy::needless_return)]
4// Resolution to something like `tensor.slice_mut() += scalar`.
5// This code is not allowed in rust, but `*&mut tensor.slice_mut() += scalar` is allowed.
6#![allow(clippy::deref_addrof)]
7// Allow `a % b == 0` instead of `is_multiple_of`
8// which is only stabilized after rustc 1.89
9#![allow(clippy::manual_is_multiple_of)]
10
11pub mod prelude;
12pub mod prelude_dev;
13
14pub mod alloc_vec;
15pub mod axis_index;
16pub mod error;
17pub mod flags;
18pub mod format_layout;
19pub mod layout;
20pub mod pack_array;
21pub mod util;
22
23#[cfg(feature = "rayon")]
24pub mod par_iter;
25
26#[cfg(all(not(clippy), feature = "col_major", feature = "row_major"))]
27compile_error!("Cargo features col_major and row_major are mutually exclusive. Please enable only one of them.");