gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 709HTML 662Markdown 12TOML 62348 Definiciones

⎇ 9e53f03adea2b770d68954e404d2fa407dfc7d40 src/lib.rs Rust · 40 líneas · 827 B Historia Quién tocó qué crudo

Layout algorithm decoupling, Sizing Constraints & Perf Improvements (#246) ba4cd3c3b · Nico Burns ·

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
21#[doc(hidden)]
22pub mod debug;
23pub mod error;
24pub mod geometry;
25pub mod layout;
26pub mod math;
27pub mod node;
28pub mod prelude;
29pub mod style;
30pub mod tree;
31
32#[cfg(feature = "random")]
33pub mod randomizable;
34
35mod compute;
36mod data;
37mod resolve;
38mod sys;
39
40pub use crate::node::Taffy;