gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Sutichaykuna

Make 'parse' feature non-default (#941)

Signed-off-by: Nico Burns <nico@nicoburns.com>

e6070c6951790538441543cd70cd62ef3c1b30de · ruwaq Nico Burns · (6 killa ñawpaq) · tayta a836ef390 · kay commitpi sach'ata qhaway

Semántico sayk'uy

Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.

2 qillqakuna · +3 −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