Crates.io | launchpadlib |
lib.rs | launchpadlib |
version | |
source | src |
created_at | 2023-10-19 20:33:31.47507 |
updated_at | 2024-10-20 03:24:46.023036 |
description | Rust library for accessing Launchpad.net |
homepage | |
repository | https://github.com/jelmer/launchpadlib-rs |
max_upload_size | |
id | 1008322 |
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` |
size | 0 |
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.
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.