1#![no_std]
13#![forbid(unsafe_code)]
17#![warn(missing_docs)]
18
19extern crate alloc;
20
21mod bus;
22mod cpu;
23pub mod disasm;
24pub mod scheduler;
25mod snapshot;
26mod status;
27
28pub use bus::Bus;
29pub use cpu::Cpu;
30#[cfg(feature = "phi2-write-sweep")]
31pub use cpu::READ_PHI_BACKOFF;
32#[cfg(feature = "phi2-write-sweep")]
33pub use cpu::READ_PHI_OFFSET;
34#[cfg(feature = "phi2-write-sweep")]
35pub use cpu::WRITE_PHI_BACKOFF;
36#[cfg(feature = "phi2-write-sweep")]
37pub use cpu::WRITE_PHI_OFFSET;
38pub use disasm::{DisasmLine, disassemble_at};
39pub use scheduler::M2Phase;
40pub use snapshot::{CPU_SNAPSHOT_VERSION, CpuSnapshotError};
41pub use status::Status;
42
43#[must_use]
45pub const fn version() -> &'static str {
46 env!("CARGO_PKG_VERSION")
47}
48
49#[cfg(test)]
50mod tests {
51 use super::*;
52
53 #[test]
54 fn version_is_non_empty() {
55 assert_ne!(version(), "");
56 }
57}