Skip to main content

rstm_tape/
lib.rs

1//! This crate focuses on providing various tape-related implementations and abstractions for
2//! generalizing cell-based memory systems in Rust.
3#![crate_type = "lib"]
4#![allow(
5    clippy::len_without_is_empty,
6    clippy::missing_docs_in_private_items,
7    clippy::missing_errors_doc,
8    clippy::missing_panics_doc,
9    clippy::missing_safety_doc,
10    clippy::module_inception,
11    clippy::needless_doctest_main,
12    clippy::new_ret_no_self,
13    clippy::should_implement_trait,
14    clippy::upper_case_acronyms
15)]
16#![cfg_attr(not(feature = "std"), no_std)]
17#![cfg_attr(all(feature = "alloc", feature = "nightly"), feature(allocator_api))]
18// external crates
19#[cfg(feature = "alloc")]
20extern crate alloc;
21// macros
22#[macro_use]
23mod macros {
24    #[macro_use]
25    pub(crate) mod seal;
26}
27// modules
28pub mod cell;
29pub mod error;
30// modules (private)
31mod tape_base;
32
33mod impls {
34    mod impl_tape_base;
35}
36
37mod traits {
38    #[doc(inline)]
39    pub use self::{cellular::*, raw_data::*, raw_tape::*};
40
41    mod cellular;
42    mod raw_data;
43    mod raw_tape;
44}
45
46mod types {}
47// re-exports
48#[doc(inline)]
49pub use self::{cell::CellBase, error::*, tape_base::*, traits::*};
50// prelude
51#[doc(hidden)]
52pub mod prelude {
53    pub use crate::cell::*;
54    pub use crate::tape_base::*;
55    pub use crate::traits::*;
56}