gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Sutichaykuna

⎇ daa07e0f4e3e009f5b0c11ada5df9785efd4b2c2 src/lib.rs Rust · 39 siq'ikuna · 1.0 KB Ñawpa willay Pi imata llamkarqan ch'uya

Remove `LayoutAlgorithm` trait (#562) daa07e0f4 · Nico Burns ·

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(feature = "std"), no_std)]
3#![deny(unsafe_code)]
4#![forbid(unsafe_code)]
5#![warn(missing_docs)]
6#![warn(clippy::missing_docs_in_private_items)]
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 compute;
22pub mod geometry;
23pub mod prelude;
24pub mod style;
25pub mod style_helpers;
26pub mod tree;
27#[macro_use]
28pub mod util;
29
30#[cfg(feature = "block_layout")]
31pub use crate::compute::compute_block_layout;
32#[cfg(feature = "flexbox")]
33pub use crate::compute::compute_flexbox_layout;
34#[cfg(feature = "grid")]
35pub use crate::compute::compute_grid_layout;
36pub use crate::compute::compute_leaf_layout;
37pub use crate::tree::LayoutTree;
38#[cfg(feature = "taffy_tree")]
39pub use crate::tree::{Taffy, TaffyError, TaffyResult};