hltas
A crate for reading and writing Half-Life TAS scripts (.hltas).
Examples
use ;
let contents = "\
version 1
demo test
frames
------b---|------|------|0.001|-|-|5";
match HLTASfrom_str
Features
-
serde1: implements serde'sSerializeandDeserializetraits for all types. -
proptest1: implements proptest'sArbitrarytrait for all types. Only "valid" contents are generated, as in, writing to string and parsing back will work and give you the same result.
C++ Wrapper
Also included is a C++ wrapper, exporting the same C++ interface as the previous C++ version of HLTAS.
Using the C++ wrapper from CMake
- You will need Rust: either from your distribution's packages, or from rustup.
- From your project's
CMakeLists.txt, calladd_subdirectory("path/to/hltas"). - Link to the
hltas-cpptarget:target_link_libraries(your-target hltas-cpp).
License: MIT/Apache-2.0