tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definiciones

Prepare for v0.9.0 release (#856)

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

599b1b7d7410d97e13bafc4c01fbe6d7a9cf060a · por Nico Burns · (hace 1 año) · padre 6408bd722 · ver el árbol en este commit

Delta semántico · 1

benches/src/taffy_helpers.rs

  • cambió de firma def NAME

3 archivos · +27 −2

diff --git a/CHANGELOG.md b/CHANGELOG.md
index fa057aaeb..640d20eef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,30 @@
 # Changelog
 
+## 0.9.0
+
+### Support for named grid lines and grid areas
+
+Taffy now supports named grid lines and areas.
+
+As these rely on arbitrary user-provided strings, Taffy's `Style` struct is now generic
+over a string-like type (via the `CheapCloneStr` trait). Additionally as the `grid` feature is optional,
+it has a `PhantomData` field of that type to make type inference work.
+
+### Changed
+
+- `PrintTree` and `RoundTree`: use `Layout` instead of `&Layout` (#849).
+- Renamed `TrackSizingFunction` to `GridTemplateComponent`
+- Renamed `NonRepeatingTrackSizingFunction` to `TrackSizingFunction`
+- The `Repeat` variant of `GridTemplateComponent` now contains a new `GridTemplateRepetition` struct, which allows
+  line names to be specifed in addition to tracks.
+- The way that grid styles are exposed in the low-level API is now a lot more generic with many associated types.
+
+### Added
+
+- `GridTemplateArea` struct and `Style::grid_template_areas` field
+- `Style::grid_template_column_names` and `Style::grid_template_row_names` fields. If non-empty, these
+  should have length of exactly one greater than the corresponding `grid_template_column`/`grid_template_rows` style.
+
 ## 0.8.3
 
 ### Fixed
diff --git a/Cargo.toml b/Cargo.toml
index 11c4ba263..c2f54a8b6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "taffy"
-version = "0.8.3"
+version = "0.9.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 26ac536f0..c8b3f04f1 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.7";
+    const NAME: &'static str = "Taffy 0.9";
     type Tree = TaffyTree;
     type Node = TaffyNodeId;