Skip to main content

all_is_cubes_base/
lib.rs

1//! This library is an internal component of [`all-is-cubes`],
2//! which defines some core mathematical types and functions.
3//! Do not depend on this library; use only [`all-is-cubes`] instead.
4//!
5//! [`all-is-cubes`]: https://crates.io/crates/all-is-cubes/
6
7#![no_std]
8// Crate-specific lint settings. (General settings can be found in the workspace manifest.)
9#![cfg_attr(
10    not(any(test, feature = "arbitrary")),
11    warn(clippy::std_instead_of_core, clippy::std_instead_of_alloc)
12)]
13#![cfg_attr(not(feature = "std"), allow(clippy::arc_with_non_send_sync))]
14#![warn(clippy::missing_inline_in_public_items)]
15
16#[cfg(any(feature = "std", test))]
17#[cfg_attr(test, macro_use)]
18extern crate std;
19#[macro_use]
20extern crate alloc;
21
22/// Do not use this module directly; its contents are re-exported from `all-is-cubes`.
23#[macro_use]
24pub mod math;
25
26/// Do not use this module directly; its contents are re-exported from `all-is-cubes`.
27pub mod raycast;
28
29/// Do not use this module directly; its contents are re-exported from `all-is-cubes`.
30pub mod resolution;
31
32/// Do not use this module directly; its contents are re-exported from `all-is-cubes`.
33pub mod time;
34
35/// Do not use this module directly; its contents are re-exported from `all-is-cubes`.
36pub mod util;
37
38// reexport for convenience of our tests
39#[doc(hidden)]
40pub use euclid;