3 releases

Uses old Rust 2015

0.1.2 Jul 16, 2017
0.1.1 Jul 16, 2017
0.1.0 Jul 16, 2017

#1398 in Encoding

MIT license

5KB
101 lines

tiled-parser

Travis-CI Crates.io

Deserializes and serializes Tiled .json files, using serde_json

Usage

In Cargo.toml:

tiled-parser = "0.1"

extern crate tiled_parser;

let data = include_str!("test-data/levels/super_mario.json");

// deserialize
let mut level = tiled_parser::load_level(data);
println!("{:?}", level);

level.width = 128;

// serialize
let serialized = serde_json::to_string(&level).unwrap();
println!("serialized = {}", serialized);

Documentation

https://docs.rs/tiled-parser/

License

Under MIT

Dependencies

~0.7–1.6MB
~34K SLoC