Intro
Rustli is a minimal Rust library to talk to Restli servers.
Serialization
At this time there are two imperfect approaches in the rust ecosystem.
You can use either (on any version of the compiler) or serde on the nightly compiler. This is selected by the features that you use when loading this library in your app's Cargo.toml.
The rustc-serialize approach has more limitations
including not being able to rename fields so it cannot handle
json with keys overlapping with reserved keywords like type
.
The serde approach requires a nightly compiler, however the compiler feature is being stabilized: rust-lang/35900
Fetch
Rustli provides fetch functionality on top of curl-rust.
We have also evaluate hyper.
See also rust-rest
Unfortunately there is a bug in cargo for our use case of hyper. We want to support OS X with native libraries and Linux with Openssl. This requires loading hyper with different features based on the target os and this is not supported in cargo.
Tests
To run tests for all features use run-tests.sh