diff --git a/.cargo/config.toml b/.cargo/config.toml
index 4a305236e..73ee4959a 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -1,3 +1,9 @@
+[unstable]
+codegen-backend = true
+
+[profile.dev]
+codegen-backend = "cranelift"
+
[alias]
gentest = "run --release --package gentest --"
import-yoga-tests = "run --package import-yoga-tests --"
diff --git a/src/compute/block.rs b/src/compute/block.rs
index eeb2aa009..9be42f627 100644
--- a/src/compute/block.rs
+++ b/src/compute/block.rs
@@ -9,7 +9,9 @@ use crate::util::sys::f32_max;
use crate::util::sys::Vec;
use crate::util::MaybeMath;
use crate::util::{MaybeResolve, ResolveOrZero};
-use crate::{BlockContainerStyle, BlockItemStyle, BoxGenerationMode, BoxSizing, LayoutBlockContainer, TextAlign};
+use crate::{
+ BlockContainerStyle, BlockItemStyle, BoxGenerationMode, BoxSizing, Direction, LayoutBlockContainer, TextAlign,
+};
#[cfg(feature = "content_size")]
use super::common::content_size::compute_content_size_contribution;
@@ -26,6 +28,9 @@ struct BlockItem {
/// Items that are tables don't have stretch sizing applied to them
is_table: bool,
+ /// Direction (LTR or RTL)
+ direction: Direction,
+
/// The base size of this item
size: Size