Skip to content
Feralin

Developers

Rust: quickstart

Install and first-use steps for sending events to Feralin with Rust. Code samples come from the SDK's own README and statuses from the capability record.

Install

feralin, tauri-plugin-feralin 0.1.0 is published on crates.io; install it with your package manager using the command below.

[dependencies]
feralin = { path = "../sdks/rust" }

First use

use std::time::Duration;
use feralin::{Client, Config, Consent, Event};

let client = Client::new(
    Config::new("pk_live_...", "https://collect.example.com")
        .consent(Consent { analytics: true, ..Consent::default() }),
)?;

client.track(Event::new("order_completed").property("order_id", "ord_1").user_id("user_42"))?;
let sonuc = client.flush()?;            // ağ hatasında Err vermez, sonuç sonuc.error içinde
client.close(Duration::from_secs(5));   // çıkmadan önce çağırın
# Ok::<(), feralin::Error>(())

Code samples are taken as they are from sdks/rust/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

Rust capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentityPartial
AttributionNot applicable
Deep linksNot applicable
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

Rust verification chain
LinkStatus
SourcePassed
BuildPassed
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.