// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. //! The pure core of Arena Domi: strict parsers for game launcher files and the game library model. //! //! Nothing here touches the file system, processes, the network, the environment, the registry or the clock. //! Inputs are bytes or values; outputs are [`Game`]s and a merged [`Library`]. Every parser treats its input as //! hostile: sizes, depth, lengths and counts are capped ([`limits`]), errors are typed ([`ParseError`]) and no input //! can make the crate panic. //! //! Sources: [`steam`] (`libraryfolders.vdf`, `appmanifest_.acf`), [`epic`] (`.item` JSON), [`gog`] (registry //! values the app passes in), [`manual`] (an `.exe` the user picked) and [`domi`] (Domi games from the Atrium //! registry). [`merge`] dedupes the scans into one library. //! //! Launch strings are built by [`Launch::uri`] only from validated, parsed fields. #![forbid(unsafe_code)] #![deny( clippy::unwrap_used, clippy::expect_used, clippy::indexing_slicing, clippy::string_slice, clippy::panic, clippy::todo, clippy::unimplemented, clippy::unreachable )] mod error; mod id; mod launch; pub mod limits; mod model; mod path; mod text; pub mod vdf; pub mod domi; pub mod epic; pub mod gog; pub mod manual; pub mod steam; pub use domi::DomiLaunch; pub use error::ParseError; pub use id::{GameId, Source}; pub use launch::Launch; pub use model::{CoverHint, Game, Library, merge}; pub use path::WinPath;