feat: Move layout_attributes behind a feature in native-core

This commit is contained in:
marc2332 2023-05-20 22:06:35 +02:00
parent a687f697c7
commit 02355ddd4c
No known key found for this signature in database
GPG key ID: C06A66E2828F72E1
4 changed files with 7 additions and 8 deletions

View file

@ -16,7 +16,7 @@ license = "MIT/Apache-2.0"
dioxus = { path = "../dioxus", version = "^0.3.0" }
dioxus-core = { path = "../core", version = "^0.3.0", features = ["serialize"] }
dioxus-html = { path = "../html", version = "^0.3.0" }
dioxus-native-core = { path = "../native-core", version = "^0.2.0", features = ["dioxus"] }
dioxus-native-core = { path = "../native-core", version = "^0.2.0", features = ["dioxus", "taffy"] }
dioxus-native-core-macro = { path = "../native-core-macro", version = "^0.3.0" }
dioxus-hot-reload = { path = "../hot-reload", optional = true }
rink = { path = "../rink" }

View file

@ -14,18 +14,15 @@ keywords = ["dom", "ui", "gui", "react"]
dioxus-core = { path = "../core", version = "^0.3.0", optional = true }
keyboard-types = "0.6.2"
taffy = "0.2.1"
smallvec = "1.6"
rustc-hash = "1.1.0"
anymap = "1.0.0-beta.2"
slab = "0.4"
parking_lot = { version = "0.12.1", features = ["send_guard"] }
crossbeam-deque = "0.8.2"
dashmap = "5.4.0"
hashbrown = { version = "0.13.2", features = ["raw"] }
# for parsing attributes
lightningcss = "1.0.0-alpha.39"
taffy = { version = "0.2.1", optional = true }
lightningcss = { version = "1.0.0-alpha.39", optional = true }
rayon = "1.6.1"
shipyard = { version = "0.6.2", features = ["proc", "std"], default-features = false }
@ -35,10 +32,11 @@ shipyard_hierarchy = "0.6.0"
rand = "0.8.5"
dioxus = { path = "../dioxus", version = "^0.3.0" }
tokio = { version = "*", features = ["full"] }
dioxus-native-core = { path = ".", features = ["dioxus"] }
dioxus-native-core = { path = ".", features = ["dioxus", "taffy"] }
dioxus-native-core-macro = { path = "../native-core-macro" }
[features]
default = []
taffy = ["dep:taffy", "dep:lightningcss"]
dioxus = ["dioxus-core"]
parallel = ["shipyard/parallel"]

View file

@ -9,6 +9,7 @@ use rustc_hash::FxHasher;
#[cfg(feature = "dioxus")]
pub mod dioxus;
#[cfg(feature = "taffy")]
pub mod layout_attributes;
pub mod node;
pub mod node_ref;

View file

@ -14,7 +14,7 @@ license = "MIT/Apache-2.0"
[dependencies]
dioxus-html = { path = "../html", version = "^0.3.0" }
dioxus-native-core = { path = "../native-core", version = "^0.2.0" }
dioxus-native-core = { path = "../native-core", version = "^0.2.0", features = ["taffy"]}
dioxus-native-core-macro = { path = "../native-core-macro", version = "^0.3.0" }
tui = "0.17.0"