launchpadlib 0.1.1

Rust library for accessing Launchpad.net
launchpadlib-0.1.1 doesn't have any documentation.

Rust bindings for the Launchpad API

Example:

use launchpadlib::Resource;
use launchpadlib::v1_0::ServiceRoot;

fn main() {
    let url = "https://api.launchpad.net/v1_0/".parse().unwrap();
    let root = launchpadlib::devel::get_service_root_by_url(&url).unwrap();
    let people = root
        .get()
        .unwrap()
        .people_collection_link()
        .unwrap()
        .unwrap();
    let person = people.get_by_email("jelmer@jelmer.uk").unwrap();
    println!("{:?}", person);
}

Bindings are generated from the wadl published by Launchpad.

Limitations

  • All current access is anonymous, authentication is not yet supported.
  • Documentation in the wadl file is in HTML and not yet properly translated to rust doc strings
  • The only usable API is blocking at the moment
  • There are no tests at the moment

Bugs

While bindings are generated from the entire WADL file, I have only used a small number of them. Please report bugs if you run into issues.