Crate clauser

Source
Expand description

§clauser

clauser is a library for working with configuration, script, and data files from the Clausewitz engine used by Paradox Interactive for their grand strategy games.

It contains a number of components:

  • Deserializer is a serde deserializer that can deserialize Clausewitz files into Rust data structures.
  • Value allows deserializing a Clausewitz file into a tree of values, for situations where the schema of the data isn’t known beforehand.
  • Tokenizer turns a Clausewitz file into a series of tokens.
  • Reader is a wrapper around Tokenizer that enables low-level parsing operations on a Clausewitz source file.

Modules§

deserde
serde deserializer for Clausewitz files.
error
Library error type.
reader
Low-level parser for Clausewitz files.
token
Tokens obtained from a source file.
tokenizer
A Tokenizer for parsing Clausewitz files.
types
Various types required to represent Clausewitz data.
value
Deserialization for Clausewitz files without a known schema.

Attribute Macros§

duplicate_keysmacros
Macro attribute allowing structs to contain duplicate keys.