testing_support/lib.rs
1//! Host test helpers for Core crates that the full test environment depends on.
2//!
3//! This crate must not depend on `little_fs`, `graphics` or on any other crate
4//! that exports `#[no_mangle]` symbols. Crates in the `environment` dependency tree
5//! use it instead of `xila-testing` in their own tests: otherwise their unit-test
6//! binary links a second copy of those symbols and fails. The workspace link
7//! check in `ci:host-tests` (with `xila-testing/graphics`) enforces this.
8
9#![allow(clippy::disallowed_types, reason = "host-only std test support crate")]
10
11mod devices;
12mod hash;
13pub mod logger;
14mod memory_manager;
15
16pub use devices::{ConsoleDevice, RandomDevice, TimeDevice};
17pub use hash::HashDevice;
18pub use logger::Logger;
19pub use memory_manager::{MemoryManager, ThreadAllocations};
20pub use task::test_executor::{Executor, new_thread_executor};
21
22#[doc(hidden)]
23pub use ::memory as memory_crate;