0.1.2-alpha.1 |
|
---|---|
0.1.1-alpha |
|
0.1.0-alpha.1 |
|
0.1.0-alpha |
|
#6 in #stash
12KB
232 代码行
bitbucket-rs
注意:这是Bitbucket服务器异步Rust绑定的工作正在进行中。发布此内容是为了在crates.io上保留名称。
示例
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(())
}
本地构建和读取文档。
$ 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
依赖项
~9.5MB
~160K SLoC