bitbucket-server

Crates.iobitbucket-server
lib.rsbitbucket-server
version0.1.0-alpha.1
sourcesrc
created_at2021-10-01 08:29:15.017697
updated_at2021-10-01 08:29:15.017697
descriptionAsync bitbucket server bindings
homepagehttps://github.com/cloudflavor/bitbucket-server-rs
repositoryhttps://github.com/cloudflavor/bitbucket-server-rs
max_upload_size
id459055
size16,366
Victor Palade (PI-Victor)

documentation

https://docs.rs/crate/bitbucket-server

README

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,
    );
    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
Commit count: 37

cargo fmt