tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5579Rust 88Markdown 11TOML 91930 Definitions

⎇ 2e0d1bd2f08d3e477e564acfbed30c9caa2e0440 src/lib.rs Rust · 34 lines · 733 B History Who touched what raw

Use slotmap instead of bespoke arena, limiting to one parent only (#196) c3f6a1727 · Jon Kelley ·

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(feature = "std"), no_std)]
3#![deny(unsafe_code)]
4#![warn(missing_docs)]
5#![warn(clippy::missing_docs_in_private_items)]
6#![forbid(unsafe_code)]
7
8// We always need std for the tests
9// See <https://github.com/la10736/rstest/issues/149#issuecomment-1156402989>
10#[cfg(all(test, not(feature = "std")))]
11#[macro_use]
12extern crate std;
13
14#[cfg(all(not(feature = "std"), feature = "alloc"))]
15extern crate alloc;
16
17#[cfg_attr(feature = "serde", macro_use)]
18#[cfg(feature = "serde")]
19extern crate serde;
20
21pub mod error;
22pub mod geometry;
23pub mod layout;
24pub mod math;
25pub mod node;
26pub mod prelude;
27pub mod style;
28
29mod data;
30mod flexbox;
31mod resolve;
32mod sys;
33
34pub use crate::node::Taffy;