Skip to content

Release 0.9.0

Compare
Choose a tag to compare
@futursolo futursolo released this 15 Sep 12:17
· 102 commits to master since this release

Breaking Changes:

  • Style and GlobalStyle no longer implements FromStr.
  • Style and GlobalStyle now takes any type that implements
    Into<StyleSource> as a source for a stylesheet.
  • style_str method in YieldStyle renamed to style_from
    and returns a StyleSource<'static>.
  • Accepted at-rules are limited to @keyframes, @supports and
    @media.

Other Changes:

  • Added a Procedural Macro API that parses the Stylesheet at the compile
    time. (Thanks to @WorldSEnder for contributing the inline syntax.)
  • Parser will now check stylesheets more strictly.
  • Parsed results are now cached.
  • Updated nom to v7.
  • Runtime parser is now optional (disabling parser will make the bundle
    ~70K smaller).
  • Fixed comment handling.
  • Panic-based behaviour now displays the error with {}(std::fmt::Display)
    in browser developer console.
  • @supports and @media can now appear in a Block.