Crates.io | rust-github |
lib.rs | rust-github |
version | 0.1.1 |
source | src |
created_at | 2015-03-20 23:16:54.307145 |
updated_at | 2015-12-11 23:56:40.231265 |
description | Rust based library for interacting with the Github v3 API. |
homepage | |
repository | https://github.com/davidrhyswhite/rust-github |
max_upload_size | |
id | 1627 |
size | 5,995 |
Rust based library for interacting with the Github API. This is just a practice library while I learn how to write Rust libraries / applications.
This request will return a single github::users::User
struct.
extern crate "rust-github" as github;
use github::Github;
fn main() {
let github = Github::new();
let user = github.users.get("octocat");
println!("Name: {:?}", user.name);
println!("Email: {:?}", user.email);
println!("Location: {:?}", user.location);
}
Get a list of repositories by user, exposes a Vec<github::repositories::Repository>
.
let github = Github::new();
let repositories = github.repositories.by_user("octocat");
for repo in repositories.iter() {
println!("{:?}", repo.name);
}