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
92%
Actively maintained
1.0k
Updated ≤ 30 days
3.3M
Total stars
949
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-08-13.

Browse 1122 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 · 1.0k pushed in the last 30 days
RuView90kactive

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

union74kactive

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

hyperswitch43kactive

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

rustfs31kactive

🚀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.

neon23kmaintenance

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

⑂ 1.1k552
← Browse all repos