1#![cfg_attr(not(test), no_std)]
2#![warn(clippy::pedantic)]
3#![warn(clippy::nursery)]
4#![allow(
5 clippy::wildcard_imports,
6 clippy::cast_possible_truncation,
7 clippy::cast_possible_wrap,
8 clippy::cast_sign_loss,
9 clippy::single_match_else
10)]
11#![cfg_attr(feature = "alloc", doc = include_str!("../README.md"))]
13
14extern crate self as rm2k;
15
16#[cfg(feature = "alloc")]
17extern crate alloc;
18
19#[cfg(feature = "std")]
20extern crate std;
21
22pub mod cursor;
23pub mod diag;
24pub mod engine;
25pub mod error;
26pub mod event;
27#[cfg(feature = "alloc")]
28pub mod field;
29#[cfg(feature = "alloc")]
30pub mod file;
31#[cfg(feature = "alloc")]
32pub mod owned;
33#[cfg(feature = "alloc")]
34pub mod raw;
35#[cfg(feature = "alloc")]
36pub mod rpg;
37#[cfg(feature = "alloc")]
38pub mod schema;
39#[cfg(feature = "serde")]
40mod serde;
41#[cfg(feature = "alloc")]
42pub mod setup;
43pub mod sink;
44pub mod wire;
45
46pub use cursor::{Chunk, ChunkIter, Ctx, Cursor, ListItem, ListWalker};
47pub use diag::{DiagKind, DiagSink, Diagnostic, NullSink, SliceSink, StrictSink};
48pub use engine::{Engine, SaveOpt};
49pub use error::{ReadError, WriteError};
50pub use event::{EventCommandIter, EventCommandRef, MoveCommandIter, MoveCommandRef};
51#[cfg(feature = "alloc")]
52pub use field::{
53 BitArray, DbStr, LcfField, LcfIndexed, LcfStruct, List, Packed, UnindexedList, UnknownChunk, UnknownChunks,
54};
55#[cfg(feature = "alloc")]
56pub use raw::{
57 DatabaseVersion, EmptyBlock, Equipment, EventCommand, EventCommandList, MoveCommand, MoveCommandList, Parameters,
58 Rect, StrList,
59};
60#[cfg(feature = "alloc")]
61pub use setup::Setup;
62pub use sink::{CountSink, Sink};