6 releases (2 stable)
2024.1.23122245-staging | Jan 23, 2024 |
---|---|
2024.1.6023801 | Jan 6, 2024 |
#133 in #ai
7KB
107 lines
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();
}
Dependencies
~8–11MB
~229K SLoC