- Fixed build on windows
- Add
<style_sheet_hash>
,<style_sheet_hash_short>
,<name_hash>
, and<name_hash_short>
placeholders intopackage.metadata.turf.class_names.template
configuration option (thank you @lukidoescode for creating a pr)
- Updated lightningcss
- Fixed settings parsing of browser version target arrays with a single major version specification (thank you @emnul for reporting the issue)
- Added error source information to error messages
- Updated dependencies
- Renamed the
inline_style_sheet
macro tostyle_sheet_values
to avoid confusion - Added the
inline_style_sheet
andinline_style_sheet_values
macros to allow inline SCSS style definitions - Changed
randomized_class_name
to use base64 ids rather than numeric ids for randomizing class ids (thank you @BToersche) - Added support for
any
,has
,host
,is
,not
,slotted
andwhere
CSS pseudo classes. (thank you @BToersche)
- Updated dependencies
- Removed
once_cell
feature flag - Removed support for Rust 1.65
- Fixed compilation on minimum supported Rust version by pinning dependency versions
- Restructured project to allow specifying dependency from git repo
- Added optional configurable file output of the resulting CSS
- Added the alternative
inline_style_sheet
macro which directly returns the CSS style sheet and a class names struct - The class name configuration is now located under the
class_names
key - Added the
excludes
configuration option for excluding class names from the uniquification process using regex - The minimum supported Rust version has been bumped to 1.65.0
- Fixed failing builds due to a badly specified dependency in one of turf's dependencies (thank you @xeho91 for offering a quick fix)
- Updated lightningcss
- Fixed an error with the new path resolution which resulted in incorrect paths being used for the file tracking
- Added tracking of style sheets and files in
load_paths
(SCSS recompilation on file changes) load_paths
are now relative to the project directory they are specified in when using workspaces
- Updated grass to
0.13
(see here) - Added instructions to trigger recompilation on SCSS style changes
ClassName
is nowpub
(thank you @xeho91 for creating a pull request)STYLE_SHEET
is nowpub
- Improved messages of errors with the SCCS input file path
- Fixed a misleading file path in error messages when using Cargo workspaces
- Minimum supported Rust version is now 1.70.0
- New
once_cell
feature flag for backward compatibility down to Rust version 1.64.0 - Added
[package.metadata.turf-dev]
profile for separate development and production build settings - The configuration is now cached to avoid reading it repeatedly from the config for every macro invocation
- Added a
debug
configuration setting for debug output - Improved the SCSS compilation error message by providing the file path to the SCSS file that caused the error
- pinned version of
lightningcss
andlightningcss-derive
to prevent incompatible releases from being used
- fixed an issue that resulted in a compile error (thank you @xeho91 for reporting the issue and creating a pr!) #1 #2
- lightningcss integration for minifying and optimizing CSS
- configurable class name generation with unique and dynamic names
- support for specifying browser targets and versions for CSS compatibility
- improved documentation and examples
- Updated description / README
- removed configured_style_sheet
- the style_sheet macro now reads the configuration from Cargo.toml like configured_style_sheet did and uses default settings as fallback