crypto-auditing

Crates.iocrypto-auditing
lib.rscrypto-auditing
version0.2.3
sourcesrc
created_at2023-09-15 07:37:08.825017
updated_at2024-09-10 02:00:12.18011
descriptionClient library for crypto-auditing project
homepage
repository
max_upload_size
id973528
size88,346
Daiki Ueno (ueno)

documentation

README

crypto-auditing

crates.io badge

This crate provides a library interface to interact with the crypto-auditing event broker. To see the whole architecture, see the design document.

To use in your project, add into your Cargo.toml:

[dependencies]
crypto-auditing = "0.2"

Example

The following example connects to the event broker and receives events prefixed with "tls::".

use crypto_auditing::event_broker::Client;
use futures::stream::StreamExt;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let client = Client::new().scopes(&vec!["tls".to_string()]);

    let (_handle, mut reader) = client.start().await?;

    tokio::spawn(async move {
        while let Some(event) = reader.next().await {
            println!("{:?}", &event);
        }
    });

    tokio::signal::ctrl_c().await?;

    Ok(())
}

See full documentation here.

Commit count: 0

cargo fmt