tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 494HTML 245JavaScript 8CSS 61175 Definitions

⎇ 2b5366e4296fc2a5d84bfd8bc6967939a815c154 Cargo.toml TOML · 51 lines · 1.3 KB History raw

Move benchmarks into their own crate (#451) 2b5366e42 · Nico Burns ·

1[package]
2name = "taffy"
3version = "0.3.11"
4authors = [
5    "Alice Cecile <alice.i.cecile@gmail.com>",
6    "Johnathan Kelley <jkelleyrtp@gmail.com>",
7]
8edition = "2021"
9include = ["src/**/*", "Cargo.toml", "README.md"]
10description = "A flexible UI layout library "
11repository = "https://github.com/DioxusLabs/taffy"
12keywords = ["cross-platform", "layout", "flexbox", "css-grid", "grid"]
13categories = ["gui"]
14license = "MIT"
15
16[dependencies]
17arrayvec = { version = "0.7", default-features = false }
18num-traits = { version = "0.2", default-features = false }
19serde = { version = "1.0", optional = true, features = ["serde_derive"] }
20slotmap = { version = "1.0.6", optional = true }
21grid = { version = "0.9.0", optional = true }
22
23[features]
24default = ["std", "flexbox", "grid", "taffy_tree"]
25flexbox = []
26grid = ["alloc", "dep:grid"]
27alloc = []
28std = ["num-traits/std"]
29serde = ["dep:serde"]
30debug = []
31profile = []
32taffy_tree = ["dep:slotmap"]
33
34[dev-dependencies]
35rstest = "0.17.0"
36serde_json = "1.0.93"
37
38# Enable default features for tests and examples
39taffy = { path = "." }
40
41[profile.release]
42lto = true
43panic = 'abort'
44
45[[bench]]
46name = "dummy_benchmark"
47path = "benches/dummy_benchmark.rs"
48harness = false
49
50[workspace]
51members = ["scripts/gentest", "scripts/import-yoga-tests", "benches"]