futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
370 stars 22 forks source link

Optional counter-based class name #9

Closed futursolo closed 3 years ago

futursolo commented 3 years ago

The rand crate is introduced as a dependency to provide a nicer looking random class name. However, it's a big crate.

It does not matter for a lot of applications as rand is one of the most depended crates on crates.io.

But, for applications otherwise do not depend on rand, it would be nice to be able to disable this dependency for smaller bundle size.