tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 499HTML 245JavaScript 8Markdown 71218 Definiciones

⎇ 7762c2490a21a7f3f4e911efd097bdee7b0ef108 src/lib.rs Rust · 35 líneas · 783 B Historia Quién tocó qué crudo

Unit test `compute_constants()` (#184) 7762c2490 · Andreas Weibye ·

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
7// We always need std for the tests
8// See <https://github.com/la10736/rstest/issues/149#issuecomment-1156402989>
9#[cfg(all(test, not(feature = "std")))]
10#[macro_use]
11extern crate std;
12
13#[cfg(all(not(feature = "std"), feature = "alloc"))]
14extern crate alloc;
15
16#[cfg_attr(feature = "serde", macro_use)]
17#[cfg(feature = "serde")]
18extern crate serde;
19
20pub mod error;
21pub mod geometry;
22pub mod layout;
23pub mod math;
24pub mod node;
25pub mod prelude;
26pub mod style;
27
28mod flexbox;
29mod forest;
30#[cfg(all(not(feature = "alloc"), not(feature = "std")))]
31mod indexmap;
32mod resolve;
33mod sys;
34
35pub use crate::node::Taffy;