1 unstable release
0.1.0 | Nov 25, 2024 |
---|
#1652 in Web programming
171 downloads per month
11KB
133 lines
Vult
Core library for integrating with Vult's services platform.
Installation
Add this to your Cargo.toml
:
[dependencies]
vult = "0.1.0"
Features
- Configurable environment support (Production/Sandbox)
- Built-in request tracking and ID generation
- Timeout configuration
- Error handling with custom error types
- Optional async support
To enable async features:
[dependencies]
vult = { version = "0.1.0", features = ["async"] }
Quick Start
use vult::{VultClient, VultConfig, Environment};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create a configuration
let config = VultConfig::new(
"your-api-key".to_string(),
Environment::Sandbox,
5000, // timeout in milliseconds
);
// Initialize the client
let client = VultClient::new(config)?;
// Generate a request ID
let request_id = client.generate_request_id();
println!("Generated request ID: {}", request_id);
Ok(())
}
Documentation
For detailed documentation, please visit docs.rs/vult.
Development Status
This library is currently in early development. The API may undergo changes as we add more features and functionality.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Security
If you discover a security vulnerability within Vult, please send an email to security@vult.ai.
Support
For support inquiries, please contact support@vult.ai or visit our documentation.
Dependencies
~2–17MB
~182K SLoC