[core] API: compiling Seam 1 skeleton (types, signatures, stubs)

This commit is contained in:
2026-11-22 22:58:26 +01:00
parent 8f2bf986af
commit 5c17aac8d4
19 changed files with 1084 additions and 1 deletions
+50
View File
@@ -0,0 +1,50 @@
// 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_<id>.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;