File tree Expand file tree Collapse file tree 6 files changed +395
-0
lines changed Expand file tree Collapse file tree 6 files changed +395
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ default = [
4343 " calc" ,
4444 " content_size" ,
4545 " detailed_layout_info" ,
46+ " builder"
4647]
4748# ! ## Feature Flags
4849# !
@@ -62,6 +63,8 @@ content_size = []
6263detailed_layout_info = []
6364# # Use strict provenance APIs for pointer manipulation. Using this feature requires Rust 1.84 or higher.
6465strict_provenance = []
66+ # # Expose a builder pattern interface to construct layout tree
67+ builder = [" alloc" ]
6568
6669# ! ### Taffy Tree
6770
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ pub use crate::compute::{
109109} ;
110110#[ doc( inline) ]
111111pub use crate :: style:: Style ;
112+ #[ cfg( feature = "builder" ) ]
113+ #[ doc( inline) ]
114+ pub use crate :: style:: StyleBuilder ;
112115#[ doc( inline) ]
113116pub use crate :: tree:: traits:: * ;
114117#[ cfg( feature = "taffy_tree" ) ]
Original file line number Diff line number Diff line change @@ -28,3 +28,6 @@ pub use crate::style_helpers::{
2828
2929#[ cfg( feature = "taffy_tree" ) ]
3030pub use crate :: TaffyTree ;
31+
32+ #[ cfg( feature = "builder" ) ]
33+ pub use crate :: style:: { NodeIdRef , StyleBuilder } ;
You can’t perform that action at this time.
0 commit comments