0.1.2-alpha.1 Mar 29, 2020
0.1.1-alpha Mar 28, 2020
0.1.0-alpha.1 Mar 29, 2020
0.1.0-alpha Mar 28, 2020

#6 in #stash

Apache-2.0

12KB
232 lines

bitbucket-rs

Crates.io docs.rs Rust

NOTE: work-in-progress async rust bindings for bitbucket server. This is published so that the name is reserved for use on crates.io.

Examples

extern crate bitbucket;
extern crate tokio;

use bitbucket::client::Client;
use bitbucket::prelude::*;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new(
        "my_token".to_string(),
        "http://bitbucket.company.com".to_string(),
        false,
        false,
    );
    let proj = Project::new(client).get("my_project").await?;
    println!("{:?}", proj);
    Ok(())
}

Build and read the documentation locally.

$ cargo doc --open -p bitbucket --no-deps
Documenting bitbucket v0.1.0-alpha (rust/bitbucket-rs)
    Finished dev [unoptimized + debuginfo] target(s) in 1.27s

Dependencies

~9.5MB
~162K SLoC