mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-08-02 20:34:46 +02:00
swc updates
This commit is contained in:
parent
f6bab626ec
commit
c971fe6d79
9 changed files with 4737 additions and 4545 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue