Make 'parse' feature non-default (#941)
Signed-off-by: Nico Burns <nico@nicoburns.com>
Delta semántico
Ninguna definición cambió: el cambio es de texto, documentación o datos.
2 archivos · +3 −3
- CHANGELOG.md +2 −0
- Cargo.toml +1 −3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2e98b2b92..62e3d6a56 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,8 @@ All of Taffy's style types (except the top-level `Style` struct) now have `FromS
CSS parsing is feature flagged by the `parse` feature.
+Additionally the `parse_faster` feature enables optimizations for faster parsing at the cost of pulling in proc-macro dependencies such as `syn`.
+
### Changed
- Make DetailedGridTracksInfo accessible from a public module (#899)
diff --git a/Cargo.toml b/Cargo.toml
index 80247da71..ea351356e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,8 +43,6 @@ default = [
"calc",
"content_size",
"detailed_layout_info",
- "parse",
- "parse_faster"
]
#! ## Feature Flags
#!
@@ -95,7 +93,7 @@ roxmltree = "0.21.1"
taffy_test_helpers = { path = "tests/common"}
# Enable default features for tests and examples
-taffy = { path = "." }
+taffy = { path = ".", features = ["parse"] }
[profile.release]
lto = true