gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1118HTML 1044Markdown 12TOML 94787 Definiciones

⎇ d30d23f0a61c39e3412f1354c7981364a38b5e99 src/lib.rs Rust · 42 líneas · 890 B Historia Quién tocó qué crudo

Strict types for style values (#269) 0d8c198a9 · 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 style_helpers;
31pub mod tree;
32
33#[cfg(feature = "random")]
34pub mod randomizable;
35
36mod compute;
37mod data;
38mod resolve;
39mod sys;
40
41pub use crate::compute::compute_layout;
42pub use crate::node::Taffy;