Rust API Client
Rust integration handles uploads and file operations by wrapping Uploadcare Upload API and REST API. This comprehensive API client lets you use most of the Uploadcare features from within your Rust app.
Features
Uploading (Upload API):
- Upload files from local storage and URLs (up to 5 TB)
- Multipart uploading for large files
- Uploading network to speed uploading jobs (like CDN)
File management (REST API):
- Get file info and perform various operations (store/delete/copy) with them
- Work with groups of files
- Get info about account project
- Manage webhooks
- Convert documents
- Encode and transform videos
Image processing (URL API):
- Compression
- Geometry
- Colors
- Definition
- Image and text overlays
- Rotations
- Recognition
- File info
- Proxy (fetch)
Security features:
- Secure authentication
- Secure uploads (signed uploads)
- Secure delivery (signed URLs)
Requirements
- rustc 1.43
- cargo 1.43
Installation
Ensure you have Cargo, the Rust dependency manager, installed on your system. If not, follow the installation instructions.
Open your cargo.toml
file and add the following code:
Configuration
By default the full
is enabled (REST and Upload API).
To reduce the code size, disable default features and enable just the APIs you use:
Creating a client:
Usage example
For a comprehensive list of examples, check out the API documentation. Below are a few usage examples:
Full documentation
Read the full documentation on GitHub.