🦀 Zero-runtime CSS-in-JS powered by Rust. Write styled-components syntax, get build-time CSS extraction and full RSC compatibility
139
stars
4
forks
source link
Replace MurmurHash with Rust's DefaultHasher for CSS identifiers #198
Closed
jantimon closed 3 weeks ago
Replace our custom MurmurHash2 implementation with Rust's built-in
DefaultHasher
(SipHash-1-3) for generating CSS identifiersKey Changes:
murmur_hash.rs
withcss_hash.rs
using Rust'sDefaultHasher
For example, hashes now look like:
This change prepares us for implementing unique class name generation once Next.js adds support for global styles inside PostCSS CSS module files