Skip to main content

azure_devops/
lib.rs

1//! # azure-devops
2//!
3//! An idiomatic Rust client for the Azure DevOps REST APIs.
4//!
5//! ## Quick Start
6//!
7//! ```no_run
8//! use azure_devops::AzureDevOps;
9//!
10//! #[tokio::main]
11//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
12//!     let client = AzureDevOps::builder()
13//!         .organization("my-company")
14//!         .pat(std::env::var("AZURE_DEVOPS_PAT")?)
15//!         .build()?;
16//!
17//!     let projects = client.projects().list().await?;
18//!
19//!     for project in &projects.value {
20//!         println!("{} — {}", project.name, project.id);
21//!     }
22//!
23//!     Ok(())
24//! }
25//! ```
26pub mod auth;
27pub mod builder;
28pub mod builds;
29pub mod client;
30pub mod common;
31pub mod constants;
32pub mod error;
33pub(crate) mod http;
34pub mod pipelines;
35pub mod projects;
36pub mod pull_requests;
37pub mod repositories;
38pub(crate) mod util;
39pub mod work_items;
40
41// Re-export main types for convenience
42pub use builder::AzureDevOpsBuilder;
43pub use client::AzureDevOps;
44pub use error::AzureDevOpsError;
45
46#[cfg(test)]
47mod test_utils;
48
49#[cfg(test)]
50mod models_tests;