launchpadlib

Crates.iolaunchpadlib
lib.rslaunchpadlib
version
sourcesrc
created_at2023-10-19 20:33:31.47507
updated_at2024-10-20 03:24:46.023036
descriptionRust library for accessing Launchpad.net
homepage
repositoryhttps://github.com/jelmer/launchpadlib-rs
max_upload_size
id1008322
Cargo.toml error:TOML parse error at line 28, column 1 | 28 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Jelmer Vernooij (jelmer)

documentation

README

Rust bindings for the Launchpad API

Example:

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

fn main() {
    use url::Url;

    let client = launchpadlib::Client::anonymous("just+testing");
    let service_root = launchpadlib::v1_0::service_root(&client).unwrap();
    let people = service_root.people().unwrap();
    let person = people.get_by_email(&client, "jelmer@jelmer.uk").unwrap();
    let ssh_keys = person.sshkeys(&client).unwrap().map(|k| k.keytext).collect::<Vec<_>>();
    println!("SSH Keys: {:?}", ssh_keys);
}

Bindings are generated from the wadl published by Launchpad.

Limitations and 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.

  • Launchpad's WADL is incorrect in places, e.g. claiming that certain fields are optional while they will actually be set to null. Any problems with the WADL will impact the usability of the rust bindings.

    See fixup.xsl for manual patches that are applied; this file is almost certainly incomplete.

Commit count: 268

cargo fmt