#parser #competition #format #interchange #attempt #activity #wca

wcif

A parser for the WCA Competition Interchange Format

1 unstable release

0.1.1 Oct 21, 2024
0.1.0 Oct 21, 2024

#1021 in Parser implementations

Download history 258/week @ 2024-10-21

258 downloads per month

MIT/Apache

36KB
922 lines

wcif

This crate implements types for the WCA Competition Interchange Format. It closely follows the specification, parsing string values into more expressive types when possible.

Features

  • parse_puzzle_type Parse and verify puzzle and event types into an enum (i.e. instead of the string "333", it's OfficialPuzzleType::Cube333).
  • parse_attempt_result Results of attempts are stored as integers with some values having special meaning. This parses the integer into an enum.
  • parse_activity_code Parses activity code strings into a struct representing the activity code with individual fields for event, round, group and attempt.
  • groupifier Read extensions defined by Groupifier

Dependencies

~2.3–3.5MB
~66K SLoC