Search

Lib.rs

› Database interfaces | Development tools › FFI | Asynchronous
#async #snowflake

xelf

A versatile Rust toolkit for self-use

by Sprite Tong

  • Install
  • API reference
  • GitHub repo (spritetong)

6 releases

new 0.5.3 Apr 28, 2026
0.5.2 Jun 30, 2025
0.5.1 Apr 12, 2025
0.5.0 Mar 31, 2025
0.4.7 Feb 2, 2025

#172 in FFI

MIT license

150KB
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–24MB
~301K SLoC

  • hashmap? ahash
  • sync? arc-swap
  • sync? crossbeam
  • sync? num_cpus
  • sync? triomphe
  • async? async-stream
  • async? async-trait
  • async? flume 0.12
  • async? futures
  • async? futures-util
  • async? mio
  • async? parking_lot
  • async? pin-project
  • serde? base64 0.22
  • bytes? serde? bytestring
  • datetime serde? chrono
  • net? serde? ipnetwork 0.21
  • serde? serde+derive
  • serde? serde_json
  • serde? serde_repr
  • serde? serde_with+base64
  • bytes? bytes
  • bytes? zerocopy+derive
  • common? cfg-if
  • common? ouroboros 0.18
  • common? regex
  • derive derive_more 2.1+as_ref+debug+deref+deref_mut+display+from+into
  • derive smart-default 0.7
  • derive strum 0.28+derive
  • log? dotenv
  • log? env_logger 0.11
  • log? log
  • ffi? hashlink 0.11
  • hex? hex
  • hex? hex-literal 1.0
  • net? socket2
  • net? url
  • net? winapi+mswsock win
  • collections maplit
  • collections smallvec
  • num num-traits
  • minimal once_cell
  • fs? path-absolutize
  • fs? tempfile
  • optional ritelinked
  • db? rust_decimal
  • db? sea-orm 1.1+sqlx-postgres+sqlx-sqlite+runtime…rustls+runtime-tokio
  • db? sqlx+runtime…rustls+postgres+sqlite+migrate
  • rustls? rustls-aws-lc-rs? rustls-logging? rustls-ring? rustls+std+tls12
  • rustls? rustls-pemfile 2.2
  • rustls? rustls-aws-lc-rs? rustls-logging? tokio-rustls 0.26+tls12
  • tokio? tokio+full
  • tokio? tokio-util+full
  • signal? tokio-stream+fs+io-util+net+sync+time

Other features

  • esvc
  • full
  • future
  • io
  • json
  • ptr
  • snowflake
  • str
  • vec
See also: snowflake-connector-rs, snowflake-api, adbc_snowflake, aws-sdk-rdsdata, wtx, inferadb-common-storage, butane, value-log, moosicbox_search, alice-database_dbms, persistent-map

Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski. It contains data from multiple sources, including heuristics, and manually curated data. Content of this page is not necessarily endorsed by the authors of the crate. This site is not affiliated with nor endorsed by the Rust Project. If something is missing or incorrect, please file a bug.