Make CSS Grid feature a default feature (#297)
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 = "grid")]
34mod axis;
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;