tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 206Rust 8TOML 2CSS 1310 Definitions

⎇ 90ca73fcec69bf4a1b2fdcb21125cf19df393d8a src/lib.rs Rust · 34 lines · 770 B History Who touched what raw

Add unit tests for `MaybeMath` (#162) d35459ebd · TimJentzsch ·

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 sys;
33
34pub use crate::node::Taffy;