Skip to content

[Rust] Release 0.23.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 20:54
· 103 commits to master since this release
da983f1

Added

  • Support for CSS cascade layers (@layer). #340
  • Resolving CSS variables (var()) to their values with the resolve_css_variables option. #180
  • WASM support for the http feature. Remote stylesheets load through the *_async functions. #264
  • Non-blocking inline_async, inline_to_async, inline_fragment_async and inline_fragment_to_async, as top-level functions and CSSInliner methods, behind the async feature. External stylesheets are fetched concurrently. #246
  • StylesheetResolver::retrieve_async for custom non-blocking resolvers.

Changed

  • Use lexopt for CLI argument parsing.
  • Update reqwest to 0.13.
  • Replace rayon with a std::thread worker pool in the CLI.
  • CLI usage errors exit with code 2 instead of 1.
  • Consistent CLI usage error messages, e.g. Error parsing arguments: invalid option '--foo'.

Fixed

  • CLI leaving an empty output file when inlining fails.
  • --load-remote-stylesheets CLI flag rejected without an explicit =true value.
  • -- end-of-options marker rejected by the CLI.
  • -V not accepted by the CLI as an alias for --version.
  • Trailing whitespace stripped from CLI input read from stdin.