#![cfg_attr(not(feature = "std"), no_std)]
#![warn(missing_docs)]
#![deny(clippy::expect_used)]
#![deny(clippy::unwrap_used)]
#![deny(clippy::unreachable)]
#![deny(clippy::unimplemented)]
#![deny(clippy::panic)]
#![deny(clippy::missing_assert_message)]
#[cfg(all(feature = "std", feature = "alloc"))]
compile_error!("Only one of `std` or `alloc` features may be enabled");
#[cfg(not(any(feature = "std", feature = "alloc")))]
compile_error!("You must enable either the `std` feature or the `alloc` feature");
extern crate alloc;
#[cfg(feature = "arbitrary")]
mod arbitrary;
pub mod config;
pub mod consts;
mod convert;
pub mod deserialize;
pub mod errors;
#[deprecated(
since = "0.2.0",
note = "this is a compatibility layer and everything here has been relocated to either `replay` or `config`"
)]
pub mod format;
mod macros;
pub mod replay;
pub mod serialize;
pub mod reexports {
#[cfg(feature = "chrono")]
pub use chrono;
}
#[cfg(test)]
mod test_utils;
#[doc(hidden)]
#[deprecated(since = "0.2.0", note = "import from the `config` module instead")]
pub use crate::config::{InputParseMode, ReplayBufferKind};
#[doc(hidden)]
#[deprecated(since = "0.2.0", note = "import from the `errors` module instead")]
pub use crate::errors::{
GameInputEventError, NotABool, OwnedTypeError, ReplayParseError, ReplaySerializeError,
TypeError,
};
#[cfg(feature = "strum")]
#[doc(hidden)]
#[deprecated(
since = "0.2.0",
note = "import from the `replay::action` module instead"
)]
pub use crate::replay::action::InputActionKeyIter;
#[doc(hidden)]
#[deprecated(
since = "0.2.0",
note = "import from the `replay::action` module instead"
)]
pub use crate::replay::action::{
InputAction, InputActionKey, InputActionKind, InvalidInputActionKey,
};
#[doc(hidden)]
#[deprecated(since = "0.2.0", note = "import from the `replay` module instead")]
pub use crate::replay::{
GameInputEvent, GameReplayData, GameReplayMetadata, PlayerSettings, PlayerSettingsMut,
PlayerSettingsRef, SerializedReplay,
};