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:
parent
247774d9a4
commit
80890500c9
1 changed files with 150 additions and 97 deletions
|
|
@ -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
|
||||
|
||||
[](https://crates.io/crates/sabry)
|
||||
[](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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue