launchpadlib 0.1.0

Rust library for accessing Launchpad.net
docs.rs failed to build launchpadlib-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: launchpadlib-0.4.5

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.