segfaultai

Crates.iosegfaultai
lib.rssegfaultai
version2024.1.23122245-staging
sourcesrc
created_at2024-01-06 02:24:14.264854
updated_at2024-01-23 12:23:26.21679
descriptionSegfault.ai Tracing SDK
homepage
repository
max_upload_size
id1090693
size8,922
(TimeToogo)

documentation

README

Segfault.ai SDK for Rust

This is the Segfault.ai SDK for Rust.

Installation

Add this to your Cargo.toml:

[dependencies]
segfaultai = "*"

Usage

fn main() {
    // Initialize the sdk
    segfaultai::init();

    // Create your gstreamer pipeline
    let pipeline = gstreamer::Pipeline::new("my-pipeline");

    // Start tracing the pipeline with some metadata
    segfaultai::trace_start(&pipeline, &[("key", "value")]);

    // Do stuff...

    // Stop tracing the pipeline
    segfaultai::trace_stop(&pipeline);

    // Gracefully shutdown the sdk
    segfaultai::shutdown();
}
Commit count: 0

cargo fmt