A Tile38 client in rust!
The API is a bit weird although it's set to change in future versions.
In your Cargo.toml
file add under [dependencies]
section
[dependencies]
nazar = "0.1.0"
SET
command
extern crate nazar;
use nazar::t38::*;
let cmd = String::from("SET");
let args = vec!(nazar::t38::Types::String(String::from("my")),
nazar::t38::Types::String(String::from("home")),
nazar::t38::Types::String(String::from("POINT")),
nazar::t38::Types::Float(33.12),
nazar::t38::Types::Float(33.112));
println!("rust_key: {}", nazar::t38::execute(cmd, args).unwrap());
GET
command
let cmd = String::from("GET");
let args = vec!(nazar::t38::Types::String(String::from("my")),
nazar::t38::Types::String(String::from("home")));
println!("rust_key: {}", nazar::t38::execute(cmd, args).unwrap());
TODO
- Documentation
Fence
command- Websocket support