breaking: gate 'styly!(const scope...' behind the const-scoping feature.\nFor some reason it did only become a problem recently, but it appears that having lightningcss/grass unconditionally will break WASM builds by having getrandom dependency

This commit is contained in:
yiffyrusdev 2025-05-08 19:42:06 +05:00 • committed by spushk
commit f3db6c1038
Signed by: spushk
GPG key ID: 7797B761E105E8AA

View file

@ -8,9 +8,6 @@
>
> "master" branch is what's currently on crates.io
>
> each version ever been on crates.io (except the latest release) is available in "vX.X.X" branch
>
> the latest-trashy state is in the "window" branch
[![Crates.io](https://img.shields.io/crates/v/sabry.svg)](https://crates.io/crates/sabry)
[![Docs.rs](https://img.shields.io/docsrs/sabry/latest.svg)](https://docs.rs/sabry)
@ -586,6 +583,7 @@ As you've seen above, scope doe not contain any style code by itself. That's the
However you could still compile styles into the artifact by simply adding the `const` to the macro call:
```rust
// Requires `const-scoping` feature
sabry::styly!(const scope "tests/assets/mixin-module.scss");
```
Which results in following: