Safelyx Rust SDK is now available in GitHub
Safelyx Rust SDK is now available in GitHub. You can now install Safelyx in your Rust project using cargo add.
Published on March 21, 2025
We're excited to announce the release of our Rust SDK for automated content moderation! The safelyx
crate is now available on GitHub, making it easier than ever to integrate Safelyx's powerful platform moderation tools into your Rust projects. You can find its source code on GitHub (it's Open Source!).
Simplicity for Rust Developers
At Safelyx, we believe in making content moderation simple and accessible. After the success of our JavaScript, Python, and Go SDKs, we're now bringing the same powerful capabilities to Rust developers. Our Rust SDK works seamlessly with the latest stable Rust version:
Quick Start with cargo
Getting started with our automated content moderation SDK is as simple as running:
cargo add safelyx
Then in your code:
use safelyx;
fn check_link_safety() {
let check_result = safelyx::check_link("https://example.com", "your-key-code")
.expect("Failed to check link");
match check_result.result {
8..=10 => println!("Link is safe!"),
4..=7 => println!("Link needs review"),
0..=3 => println!("Link is unsafe!"),
_ => println!("Error checking link"),
}
}
Comprehensive Platform Moderation Features
Our Rust SDK provides access to all of Safelyx's content moderation endpoints:
- Link Safety Verification: Protect users from malicious URLs and phishing attempts
- Message Content Analysis: Detect inappropriate content, sentiment, and potential threats
- Email Legitimacy Validation: Verify email addresses and prevent abuse
- Image Safety Analysis: Ensure uploaded images meet your platform's standards
Real-world Implementation Examples
Looking at our documentation and use cases, you can see how the SDK helps with various content moderation scenarios:
- Platform content moderation
- User-generated content protection
- Community safety enforcement
- Real-time threat detection
Simple Integration, Powerful Results
The SDK returns detailed analysis results while maintaining a simple API interface. Each check returns a comprehensive result object that includes:
- Safety score (0-10)
- Detailed analysis
- Content sentiment
- Threat assessment
- Recommended actions
Getting Started
- Install the package using
cargo add
- Buy a key code
- Start protecting your platform with just a few lines of code
Our SDK is designed to grow with your platform, offering:
- Detailed safety analysis
- Real-time threat detection
- Comprehensive reporting
- Flexible integration options
- Cross-platform compatibility
Try It Today
Ready to enhance your platform's content moderation? Get started with our SDK today:
- GitHub: safelyx-rust
- Documentation: Safe API Documentation
Join the growing number of platforms using Safelyx for automated content moderation. Our SDK makes it easier than ever to protect your users while maintaining a positive user experience.
Questions or need help? Contact our support team at help@safelyx.com.