tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 583HTML 275Markdown 8TOML 41586 Definiciones

⎇ c2db86dfc600067c6f4d70c8ea398cbcc5d42dbd src/lib.rs Rust · 44 líneas · 928 B Historia Quién tocó qué crudo

Only build debug module if std feature is enabled 7d6d4cda1 · 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
21pub mod axis;
22#[cfg(feature = "std")]
23#[doc(hidden)]
24pub mod debug;
25pub mod error;
26pub mod geometry;
27pub mod layout;
28pub mod math;
29pub mod node;
30pub mod prelude;
31pub mod style;
32pub mod style_helpers;
33pub mod tree;
34
35#[cfg(feature = "random")]
36pub mod randomizable;
37
38mod compute;
39mod data;
40mod resolve;
41mod sys;
42
43pub use crate::compute::compute_layout;
44pub use crate::node::Taffy;