xelf
A versatile Rust toolkit providing extensive utilities for async programming, database operations, FFI, and more.
Features
This crate provides several feature-gated modules:
Minimal Features (Default)
datetime- Chronological utilities usingchronocollections- Enhanced collection types usingsmallvecand moreio- I/O utilitiesderive- Helpful derive macros
Common Features
- Async programming utilities (tokio-based)
- Byte handling and manipulation
- File system operations
- JSON processing
- Network programming
- Signal handling
- String manipulation
- Synchronization primitives
Full Features
- Database support (sea-orm, sqlx)
- FFI utilities
- All common features
Installation
Add this to your Cargo.toml:
[]
= "0.4.6" # Default features
With specific features:
[]
= { = "0.4.6", = ["full"] } # All features
# or
= { = "0.4.6", = ["async", "db"] } # Selected features
Feature Flags
minimal(default): Basic utilitiescommon: Most commonly used featuresfull: All features including database and FFI- Individual features like
async,db,ffi, etc.
See Cargo.toml for complete feature list.
Requirements
- Rust 1.77 or later
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Author
Sprite Tong (spritetong@gmail.com)