tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Definitions

⎇ 6174c509106bc08287c3a65dc7de459e75758b14 src/lib.rs Rust · 41 lines · 867 B History Who touched what raw

Re-export compute::compute_layout at the top level (#266) 6174c5091 · 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::compute::compute_layout;
41pub use crate::node::Taffy;