tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Definiciones

Prepare for v0.10.0 release (#940)

Signed-off-by: Nico Burns <nico@nicoburns.com>

a836ef390337be5c5dfa545b4f778113c9d77b18 · por Nico Burns · (hace 6 meses) · padre 3aa041946 · ver el árbol en este commit

Delta semántico · 1

benches/src/taffy_helpers.rs

  • cambió de firma def NAME

3 archivos · +34 −2

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 478aaad8f..2e98b2b92 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,35 @@
 # Changelog
 
+## 0.10.0
+
+The MSRV for this release is 1.71.
+
+### Support for `direction`
+
+The `direction` property is now supported, allowing for RTL layout of boxes in Block, Flexbox, and CSS Grid layout modes.
+
+### Support for floats
+
+The `float` and `clear` properties are now supported. Support consists of a general-purpose `FloatContext` in the `compute` module, and integration of float layout into Block layout. Block layout now also has a `BlockContext` that allows a `FloatContext` to be shared across an entire Block formatting context.
+
+Float support is feature flagged by the `float_layout` feature.
+
+### Support for parsing styles from CSS string (#929)
+
+All of Taffy's style types (except the top-level `Style` struct) now have `FromStr` implementations that parses the type from the CSS representation of that value (e.g. `30px` or `50%` for `LengthPercentage`. A future version of Taffy will likely add support for parsing `Style` from `;`-seperated CSS.
+
+CSS parsing is feature flagged by the `parse` feature.
+
+### Changed
+
+- Make DetailedGridTracksInfo accessible from a public module (#899)
+- Add `TaffyTree::write_tree` method to debug print the tree into an arbitrary writer (#925)
+- The cache `set` and `set` APIs now take `&LayoutInput` rather than individual values (#933)
+
+### Fixed
+
+- Flexbox: apply gap even when there are auto margins (#938)
+
 ## 0.9.3
 
 ### Added
@@ -26,6 +56,8 @@
 
 ## 0.9.0
 
+The MSRV for this release is 1.65.
+
 ### Support for named grid lines and grid areas
 
 Taffy now supports named grid lines and areas.
diff --git a/Cargo.toml b/Cargo.toml
index 5fea1a86d..80247da71 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "taffy"
-version = "0.9.2"
+version = "0.10.0"
 authors = [
     "Alice Cecile <alice.i.cecile@gmail.com>",
     "Johnathan Kelley <jkelleyrtp@gmail.com>",
diff --git a/benches/src/taffy_helpers.rs b/benches/src/taffy_helpers.rs
index c8b3f04f1..237718e32 100644
--- a/benches/src/taffy_helpers.rs
+++ b/benches/src/taffy_helpers.rs
@@ -16,7 +16,7 @@ pub struct TaffyTreeBuilder<R: Rng, G: GenStyle<TaffyStyle>> {
 
 // Implement the BuildTree trait
 impl<R: Rng, G: GenStyle<TaffyStyle>> BuildTree<R, G> for TaffyTreeBuilder<R, G> {
-    const NAME: &'static str = "Taffy 0.9";
+    const NAME: &'static str = "Taffy";
     type Tree = TaffyTree;
     type Node = TaffyNodeId;