2 releases

0.4.7 Feb 2, 2025
0.4.6 Feb 2, 2025

#280 in Asynchronous

Download history 228/week @ 2025-02-02

228 downloads per month

MIT license

155KB
3.5K SLoC

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 using chrono
  • collections - Enhanced collection types using smallvec and more
  • io - I/O utilities
  • derive - 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:

[dependencies]
xelf = "0.4.6"  # Default features

With specific features:

[dependencies]
xelf = { version = "0.4.6", features = ["full"] }  # All features
# or
xelf = { version = "0.4.6", features = ["async", "db"] }  # Selected features

Feature Flags

  • minimal (default): Basic utilities
  • common: Most commonly used features
  • full: 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)

Dependencies

~0–33MB
~698K SLoC