#1password #password #1pass

onepassword-async

Safe, natively async wrapper around onepassword-sys

2 releases

Uses new Rust 2024

0.1.1 Feb 4, 2026
0.1.0 Feb 4, 2026

#1548 in Authentication

MIT license

9KB
187 lines

Safe, natively async wrapper around onepassword-sys.

Setup

The dynamic libraries required can be downloaded from https://github.com/1Password/onepassword-sdk-python/tree/main/src/onepassword/lib

Example usage

const ONEPASS_SERVICE_ACCOUNT_TOKEN: &str =
    "https://developer.1password.com/docs/service-accounts/get-started";

async fn get_vaults() -> Result<Vec<VaultWrapper>, FfiError> {
    let client = Client::new(ClientConfig {
        service_account_token: ONEPASS_SERVICE_ACCOUNT_TOKEN.to_owned(),
        integration_name: env!("CARGO_PKG_NAME"),
        integration_version: env!("CARGO_PKG_VERSION"),
        ..Default::default()
    }).await?;

    client.vaults().await
}

Dependencies

~0.6–1.5MB
~31K SLoC