Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ members = [
"scripts/format-fixtures",
"scripts/import-yoga-tests",
"tests/common",
"bindings/wasm",
]
# The cosmic_text example and benches are excluded from the workspace as including them breaks compilation
# of all crates in the workspace with our MSRV compiler
Expand Down
20 changes: 20 additions & 0 deletions bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "taffy-wasm"
version = "0.1.0"
edition = "2021"
license = "MIT"
description = "WASM bindings for the Taffy CSS layout engine"

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
taffy = { path = "../..", features = ["std", "taffy_tree", "flexbox", "grid", "block_layout", "content_size"] }
wasm-bindgen = "0.2"
serde = { version = "1", features = ["derive"] }
serde-wasm-bindgen = "0.6"
Comment on lines +14 to +15
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These don't seem to be being used?

js-sys = "0.3"

[profile.release]
opt-level = "s"
lto = true
Loading
Loading