Skip to content

Rust

Rusty Falcon is the CrowdStrike Falcon SDK for Rust. It provides memory-safe, high-performance access to the Falcon API with zero-cost abstractions. The SDK reads credentials from environment variables and handles authentication automatically.

View on GitHub

Add to your Cargo.toml:

[dependencies]
rusty_falcon = "0.3"

Set your environment variables:

Terminal window
export FALCON_CLIENT_ID="your-client-id"
export FALCON_CLIENT_SECRET="your-client-secret"
export FALCON_CLOUD="us-1"
use rusty_falcon::easy::client::FalconHandle;
use rusty_falcon::apis::sensor_download_api;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let falcon = FalconHandle::from_env().await?;
let response = sensor_download_api::get_sensor_installers_ccidby_query(
&falcon.cfg
).await?;
println!("{:?}", response);
Ok(())
}