Crate

hex

Hexadecimal encoding and decoding for Rust byte slices.

What it is

hex provides functions to encode byte slices to hexadecimal strings and decode hex strings back to bytes. Encoding is allocation-free for fixed-size outputs; decoding validates input and returns descriptive errors on invalid characters.

Why it is commonly used

Used in cryptographic, hashing, and network code where binary data must be represented as printable text — hash digests, public keys, packet dumps, certificate fingerprints, and debug output.

1.1k
Repositories
88%
Actively maintained
977
Updated ≤ 30 days
3.4M
Total stars
950
Owners

Counted from the Cargo.toml manifests of the 1.1k indexed repositories that declare hex as a dependency — not download counts. Dependency data last verified 2026-09-16.

Browse 1123 repositories using hex in Repos →
Often used with

Crates that show up unusually often in hex projects. The most distinctive pairings rank first — crates these projects use far more than the average indexed Rust project does, not just crates that are popular everywhere. Each percentage is the share of hex projects that also use it.

Used by these organizations
50 of 1.1k repositories · ranked by stars · 977 pushed in the last 30 days
RuView95kactive

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

union74kmaintenance

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

hyperswitch44kactive

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

rustfs33kactive

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

neon23kactive

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.

⑂ 1.1k562
OpenLogi22kactive

⚡️A native, local-first alternative to Logitech Options+, written in Rust 🦀 — remap buttons, DPI, and SmartShift over HID++. No account, no telemetry.

⑂ 702587
← Browse all repos