Skip to main content

workshop_rs/
lib.rs

1//! The canonical multi-locale Overwatch Workshop semantic core.
2//!
3//! `workshop-rs` owns the Workshop-language foundation of the WrightKit
4//! ecosystem: canonical Workshop semantics, the catalog of Workshop-defined
5//! content, the raw Workshop frontend, validation, deterministic emission,
6//! and Workshop IR. It is standalone and MIT-licensed; it has no dependency on
7//! Wright tooling crates or on any source-language provider implementation.
8//!
9//! * [`catalog`] — the canonical Workshop catalog: stable, locale-independent
10//!   semantic identities, kinds, parameters, and locale tables binding
11//!   identities to client spellings; catalog version/digest identity and
12//!   per-locale coverage;
13//! * [`actions`], [`events`], [`rules`], [`values`], [`settings`], and
14//!   [`gameplay`] — the discoverable Workshop domains;
15//! * [`wir`] — the Workshop IR model (locale-independent semantic
16//!   representation) with its arena/source/settings support;
17//! * [`parser`] and [`emitter`] — compatibility paths for the shared frontend
18//!   and output boundaries;
19//!
20//! The catalog is locale-independent at the identity layer: analyzer and WIR
21//! APIs never need locale-specific strings to identify a builtin. Locale
22//! coverage is data, declared in the catalog dataset
23//! ([`catalog::Catalog`], [`docs/adr/0001-catalog-boundaries.md`](https://github.com/wrightkit/workshop-rs/blob/main/docs/adr/0001-catalog-boundaries.md)).
24
25pub mod actions;
26mod analysis;
27pub mod arena;
28pub mod catalog;
29pub mod convert;
30mod core;
31pub mod detect;
32pub mod element_count;
33pub mod emitter;
34mod error;
35pub mod events;
36pub mod format;
37mod frontend;
38pub mod gameplay;
39pub mod gameplay_data;
40pub mod gameplay_query;
41pub mod ids;
42pub mod lexer;
43mod output;
44pub mod parser;
45pub mod program;
46pub mod roundtrip;
47pub mod rules;
48pub mod semantic;
49pub mod settings;
50pub mod signatures;
51pub mod source;
52pub mod validate;
53pub mod values;
54pub mod wir;
55
56pub use error::{CatalogError, WorkshopError};
57pub use program::{
58    Action, Condition, Event, EventTarget, EventTeam, ModifyOp, PlayerEventKind, Program, Rule,
59    Subroutine, Value, Variable,
60};