LiveSplit Wrapper
A safe wrapper library for writing LiveSplit One autosplitters
[LiveSplit One](https://github.com/LiveSplit/livesplit-core) uses dynamically
loaded WASM modules for plugins, which means they have to communicate over a C
api. This crate contains ergonomic wrappers and helpers to write those plugins
in safe rust. At the moment only autosplitters are supported, but there will
eventually be support for more general plugins.
# Implementing an autosplitter
To write an autosplitter you need to implement the
[`Splitter`](https://p1n3appl3.github.io/livesplit-wrapper/livesplit_wrapper/trait.Splitter.html)
trait and invoke the
[`register_autosplitter!`](https://p1n3appl3.github.io/livesplit-wrapper/livesplit_wrapper/macro.register_autosplitter.html)
macro on your splitter.
Here's a full (nonsensical) example. Build this with
`--target wasm32-unknown-unknown` and it can be loaded by frontends such as
[`livesplit-one-desktop`](https://github.com/CryZe/livesplit-one-desktop) or
[`obs-livesplit`](https://github.com/P1n3appl3/obs-livesplit):
```rust
use livesplit_wrapper::{Splitter, Process, TimerState, HostFunctions};
#[derive(Default)]
struct MySplitter {
process: Option