tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 583HTML 275Markdown 8TOML 41586 Definiciones

⎇ 82471b8271f2915d2f905dd7fa3e1a1d56b22ab9 src/lib.rs Rust · 37 líneas · 783 B Historia Quién tocó qué crudo

Add more robust benchmarks (#165) 82471b827 · TimJentzsch ·

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
29#[cfg(feature = "random")]
30pub mod randomizable;
31
32mod data;
33mod flexbox;
34mod resolve;
35mod sys;
36
37pub use crate::node::Taffy;