swc updates

This commit is contained in:
Robin Appelman 2026-03-28 17:26:29 +01:00
commit c971fe6d79
9 changed files with 4737 additions and 4545 deletions

View file

@ -2,7 +2,7 @@ pub use demostf_build_bundlers::bundle_raw;
pub use demostf_build_bundlers::bundle_script;
pub use demostf_build_bundlers::bundle_style;
pub use demostf_build_derive::Asset;
use rand::{distributions::Alphanumeric, Rng};
use rand::{distr::Alphanumeric, RngExt};
use std::borrow::Cow;
pub trait Asset {
@ -15,7 +15,7 @@ pub trait Asset {
}
pub fn random_cache_buster() -> String {
rand::thread_rng()
rand::rng()
.sample_iter(&Alphanumeric)
.take(8)
.map(char::from)