-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new gtk-rs-core 0.20 / gtk4-rs 0.9 release
- Loading branch information
Showing
1 changed file
with
191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
--- | ||
layout: post | ||
author: gtk-rs developers | ||
title: New Release | ||
categories: [front, crates] | ||
date: 2024-07-17 09:00:00 +0000 | ||
--- | ||
|
||
gtk4-rs `0.9` and gtk-rs-core `0.20` were just freshly released, just in time | ||
for also being included in the GNOME 47 release. | ||
|
||
This release is again relatively small, mostly providing bindings to new APIs | ||
and improvements to the `glib::clone!` and `glib::closure!` macros to work | ||
better with `cargo fmt` and rust-analyzer. | ||
|
||
As usual, at the same time gstreamer-rs `0.23` and gst-plugins-rs `0.13`, | ||
libadwaita `0.7` and other related crates got a new release compatible with | ||
the new gtk4-rs and gtk-rs-core releases and their own set of changes. | ||
|
||
### gtk-rs-core | ||
|
||
#### New syntax for `glib::clone!` and `glib::closure!` | ||
|
||
blablablabla | ||
|
||
#### TBD | ||
|
||
blablablabla | ||
|
||
### gtk4-rs | ||
|
||
#### TBD | ||
|
||
blablablabla | ||
|
||
### Changes | ||
|
||
For the interested ones, here is the list of the merged pull requests: | ||
|
||
[gtk4-rs](https://github.com/gtk-rs/gtk4-rs): | ||
|
||
* [Regenerate with new gir/gir-files](https://github.com/gtk-rs/gtk4-rs/pull/1792) | ||
* [Update to new clone! macro syntax](https://github.com/gtk-rs/gtk4-rs/pull/1773) | ||
* [book: Fix typo](https://github.com/gtk-rs/gtk4-rs/pull/1769) | ||
* [Remove unnecessary upcast from examples/squeezer\_bin/main.rs](https://github.com/gtk-rs/gtk4-rs/pull/1763) | ||
* [typos: Ignore versions.txt file](https://github.com/gtk-rs/gtk4-rs/pull/1762) | ||
* [examples/squeezer\_bin: Mark properties as writable](https://github.com/gtk-rs/gtk4-rs/pull/1761) | ||
* [Fix `SqueezerBin::size\_allocate()` in example](https://github.com/gtk-rs/gtk4-rs/pull/1760) | ||
* [Regen bindings with new gir {g,s}etter annotations](https://github.com/gtk-rs/gtk4-rs/pull/1759) | ||
* [Stop renaming ffi crates](https://github.com/gtk-rs/gtk4-rs/pull/1758) | ||
* [custom\_orientable: Fix interface property override](https://github.com/gtk-rs/gtk4-rs/pull/1755) | ||
* [gtk: Implement Downgrade for TemplateChild<T>](https://github.com/gtk-rs/gtk4-rs/pull/1750) | ||
* [Update list\_widgets.md](https://github.com/gtk-rs/gtk4-rs/pull/1742) | ||
* [examples: Support GL >= 3.1 and GLES >= 3.0 in the glium example](https://github.com/gtk-rs/gtk4-rs/pull/1733) | ||
* [Fix nightly clippy warnings](https://github.com/gtk-rs/gtk4-rs/pull/1730) | ||
* [Update link for Cogitri/Health to World/Health](https://github.com/gtk-rs/gtk4-rs/pull/1725) | ||
* [Simplify reading file contents to a String](https://github.com/gtk-rs/gtk4-rs/pull/1719) | ||
* [Update dependencies](https://github.com/gtk-rs/gtk4-rs/pull/1717) | ||
* [macros: Drop anyhow dependency](https://github.com/gtk-rs/gtk4-rs/pull/1708) | ||
* [Fix typo in todo\_1.md](https://github.com/gtk-rs/gtk4-rs/pull/1707) | ||
* [gtk4: Manually implement `GraphicsOffload` constructor for now](https://github.com/gtk-rs/gtk4-rs/pull/1705) | ||
* [gtk4: Require GDK 4.14 when enabling the `v4\_14` feature](https://github.com/gtk-rs/gtk4-rs/pull/1704) | ||
* [macros: Drop macro-proc-error and upgrade syn to 2.0](https://github.com/gtk-rs/gtk4-rs/pull/1688) | ||
* [dockerfile: Update libadwaita to 1.5](https://github.com/gtk-rs/gtk4-rs/pull/1687) | ||
* [book: Update dependencies](https://github.com/gtk-rs/gtk4-rs/pull/1686) | ||
* [Regenerate with latest gir](https://github.com/gtk-rs/gtk4-rs/pull/1678) | ||
* [docs: fix `Path` setting on windows](https://github.com/gtk-rs/gtk4-rs/pull/1675) | ||
* [Correctly handle `NULL` `GError\*\*` out parameters](https://github.com/gtk-rs/gtk4-rs/pull/1672) | ||
* [Fix nightly clippy warnings](https://github.com/gtk-rs/gtk4-rs/pull/1670) | ||
* [Replace simple `impl Debug` with derived `Debug` in tokio example](https://github.com/gtk-rs/gtk4-rs/pull/1663) | ||
* [Simplify library configuration step for Windows](https://github.com/gtk-rs/gtk4-rs/pull/1644) | ||
* [Regenerate with latest gir-files](https://github.com/gtk-rs/gtk4-rs/pull/1637) | ||
* [cargo-deny: Remove libloading dependencies](https://github.com/gtk-rs/gtk4-rs/pull/1633) | ||
|
||
[gtk-rs-core](https://github.com/gtk-rs/gtk-rs-core): | ||
|
||
* [ci: Fix docs release tag handling](https://github.com/gtk-rs/gtk-rs-core/pull/1457) | ||
* [docs: Run on our container image](https://github.com/gtk-rs/gtk-rs-core/pull/1455) | ||
* [gio: Add a method to get a stream of incoming connections to SocketListener](https://github.com/gtk-rs/gtk-rs-core/pull/1454) | ||
* [Update gir files](https://github.com/gtk-rs/gtk-rs-core/pull/1453) | ||
* [glib: Add support for registering GTypes with name conflicts](https://github.com/gtk-rs/gtk-rs-core/pull/1451) | ||
* [glib: Make `TypeData` struct fields private](https://github.com/gtk-rs/gtk-rs-core/pull/1449) | ||
* [Update gir files & regenerate](https://github.com/gtk-rs/gtk-rs-core/pull/1448) | ||
* [glib-macros: Don't produce unnecessary braces in `clone!(async move {…](https://github.com/gtk-rs/gtk-rs-core/pull/1443) | ||
* [Update to system-deps 7](https://github.com/gtk-rs/gtk-rs-core/pull/1440) | ||
* [glib-macros: Fix unit return in `closure!()` macro](https://github.com/gtk-rs/gtk-rs-core/pull/1438) | ||
* [strv: add From implementation from a String array](https://github.com/gtk-rs/gtk-rs-core/pull/1432) | ||
* [Derive TransparentPtrType trait for Boxed](https://github.com/gtk-rs/gtk-rs-core/pull/1431) | ||
* [gio: Properly export Win32InputStream / Win32OutputStream traits](https://github.com/gtk-rs/gtk-rs-core/pull/1429) | ||
* [ci: bump gvsbuild](https://github.com/gtk-rs/gtk-rs-core/pull/1427) | ||
* [Update `clone!` and `closure!` macro to new syntax](https://github.com/gtk-rs/gtk-rs-core/pull/1424) | ||
* [Stop renaming ffi crates](https://github.com/gtk-rs/gtk-rs-core/pull/1423) | ||
* [gio: remove Send + Sync requirements from DBusConnection::register\_ob…](https://github.com/gtk-rs/gtk-rs-core/pull/1422) | ||
* [Fix various nightly clippy warnings](https://github.com/gtk-rs/gtk-rs-core/pull/1421) | ||
* [Regenerate with latest gir/gir-files](https://github.com/gtk-rs/gtk-rs-core/pull/1420) | ||
* [spell fix](https://github.com/gtk-rs/gtk-rs-core/pull/1419) | ||
* [gio: make DBusConnection::register\_object take optional clousures](https://github.com/gtk-rs/gtk-rs-core/pull/1417) | ||
* [glib: Add unsafe `Value::into\_send\_value()`](https://github.com/gtk-rs/gtk-rs-core/pull/1413) | ||
* [glib: Improve `ValueArray` API, add tests and assertions for invalid …](https://github.com/gtk-rs/gtk-rs-core/pull/1411) | ||
* [glib: Fix `MatchInfo::next()` handling of returning `FALSE`](https://github.com/gtk-rs/gtk-rs-core/pull/1410) | ||
* [glib/functions: add compute\_checksum\_for\_string](https://github.com/gtk-rs/gtk-rs-core/pull/1406) | ||
* [glib: Add bindings for `g\_value\_set\_static\_string()`](https://github.com/gtk-rs/gtk-rs-core/pull/1400) | ||
* [docs: Fix broken links / cleanup README](https://github.com/gtk-rs/gtk-rs-core/pull/1395) | ||
* [Fix clippy warnings](https://github.com/gtk-rs/gtk-rs-core/pull/1393) | ||
* [glib: Implement Sync for ThreadGuard](https://github.com/gtk-rs/gtk-rs-core/pull/1388) | ||
* [glib: Only implement Send on JoinHandle if the result is Send](https://github.com/gtk-rs/gtk-rs-core/pull/1387) | ||
* [glib: Decouple ObjectInterface impl from interface class struct](https://github.com/gtk-rs/gtk-rs-core/pull/1384) | ||
* [glib: Add missing Send bound to the output type of the `spawn\_from\_within()` future](https://github.com/gtk-rs/gtk-rs-core/pull/1383) | ||
* [glib-macros: Refactor parsing code of object\_subclass/object\_interface](https://github.com/gtk-rs/gtk-rs-core/pull/1379) | ||
* [examples: Add example for custom class structs and virtual methods](https://github.com/gtk-rs/gtk-rs-core/pull/1378) | ||
* [ObjectBuilder: add property\_if(), property\_if\_some(), property\_from\_iter() ...](https://github.com/gtk-rs/gtk-rs-core/pull/1377) | ||
* [glib: Don't use `g\_object\_list\_properties()` for setting properties](https://github.com/gtk-rs/gtk-rs-core/pull/1376) | ||
* [glib: Use a reference to a pointer of correct mutability for from\_gli…](https://github.com/gtk-rs/gtk-rs-core/pull/1375) | ||
* [glib: Re-add and rename manual Win32 API additions](https://github.com/gtk-rs/gtk-rs-core/pull/1372) | ||
* [glib-macros/properties: Allow structs with no properties](https://github.com/gtk-rs/gtk-rs-core/pull/1370) | ||
* [glib::wrapper: Add docs for impls generated by the wrapper macro](https://github.com/gtk-rs/gtk-rs-core/pull/1369) | ||
* [ci: Enable glib-sys / gobject-sys tests](https://github.com/gtk-rs/gtk-rs-core/pull/1368) | ||
* [glib-sys: Add missing includes in `manual.h`](https://github.com/gtk-rs/gtk-rs-core/pull/1361) | ||
* [glib-sys: fix struct size mismatches](https://github.com/gtk-rs/gtk-rs-core/pull/1360) | ||
* [glib: Freeze property notifications while setting multiple properties](https://github.com/gtk-rs/gtk-rs-core/pull/1355) | ||
* [glib-macros: Improve error message when `Properties` struct doesn't have at least one `#\[property(…)\]`](https://github.com/gtk-rs/gtk-rs-core/pull/1352) | ||
* [Update gir / gir-files and update for `time\_t`](https://github.com/gtk-rs/gtk-rs-core/pull/1349) | ||
* [Fix nightly clippy warnings](https://github.com/gtk-rs/gtk-rs-core/pull/1348) | ||
* [docs: `construct` attribute for `glib::Properties`](https://github.com/gtk-rs/gtk-rs-core/pull/1344) | ||
* [glib: fix UB in VariantStrIter::impl\_get](https://github.com/gtk-rs/gtk-rs-core/pull/1343) | ||
* [Fix glib compiletest expected output for Rust 1.77](https://github.com/gtk-rs/gtk-rs-core/pull/1342) | ||
* [glib: Don't misuse `slice::get\_unchecked()`](https://github.com/gtk-rs/gtk-rs-core/pull/1337) | ||
* [gio: correctly free argument list items](https://github.com/gtk-rs/gtk-rs-core/pull/1331) | ||
* [glib: Optimize string collation bindings a bit](https://github.com/gtk-rs/gtk-rs-core/pull/1329) | ||
* [glib: Drop the main context future return value sender on finalize](https://github.com/gtk-rs/gtk-rs-core/pull/1328) | ||
* [pango: add some missing AttrInt constructors.](https://github.com/gtk-rs/gtk-rs-core/pull/1325) | ||
* [Regenerate with latest gir files](https://github.com/gtk-rs/gtk-rs-core/pull/1324) | ||
* [glib: Embed docs for ParamSpec types](https://github.com/gtk-rs/gtk-rs-core/pull/1323) | ||
* [glib: Requires Upgrade on Downgrade::Weak type](https://github.com/gtk-rs/gtk-rs-core/pull/1321) | ||
* [macros: allow to specify #\[default\] for glib::flags](https://github.com/gtk-rs/gtk-rs-core/pull/1316) | ||
* [Update Cargo.lock](https://github.com/gtk-rs/gtk-rs-core/pull/1313) | ||
* [glib: Add `Quark::from\_static\_str()`](https://github.com/gtk-rs/gtk-rs-core/pull/1312) | ||
* [docs: Move metadata back to packages](https://github.com/gtk-rs/gtk-rs-core/pull/1311) | ||
* [cairo: Fix version of the v1\_18 feature](https://github.com/gtk-rs/gtk-rs-core/pull/1310) | ||
* [glib: Fix expected error output of compiletests for 1.76](https://github.com/gtk-rs/gtk-rs-core/pull/1308) | ||
* [Document values of Continue and Break](https://github.com/gtk-rs/gtk-rs-core/pull/1304) | ||
|
||
All this was possible thanks to the [gtk-rs/gir](https://github.com/gtk-rs/gir) project as well: | ||
|
||
* [Minor cleanup to use `is\_some\_and(...)` instead of `map\_or(false, ...)`](https://github.com/gtk-rs/gir/pull/1584) | ||
* [Update to system-deps 7](https://github.com/gtk-rs/gir/pull/1583) | ||
* [More docs improvements](https://github.com/gtk-rs/gir/pull/1576) | ||
* [codegen: Handle mangled types names](https://github.com/gtk-rs/gir/pull/1575) | ||
* [members: drop useless alias config](https://github.com/gtk-rs/gir/pull/1574) | ||
* [Various properties fixes](https://github.com/gtk-rs/gir/pull/1573) | ||
* [codegen: Avoid double alias on badly annotated fn](https://github.com/gtk-rs/gir/pull/1572) | ||
* [Use getter and setter annotations](https://github.com/gtk-rs/gir/pull/1571) | ||
* [Support finish-func annotation](https://github.com/gtk-rs/gir/pull/1570) | ||
* [codegen: Stop renaming ffi crate](https://github.com/gtk-rs/gir/pull/1569) | ||
* [Use final annotation](https://github.com/gtk-rs/gir/pull/1568) | ||
* [Codegen clippy fixes](https://github.com/gtk-rs/gir/pull/1566) | ||
* [Add support for `libc::time\_t` and related types](https://github.com/gtk-rs/gir/pull/1562) | ||
* [Revert Automatically assume that win32\_ and unix\_ should use the related cfg](https://github.com/gtk-rs/gir/pull/1547) | ||
* [Correctly generate cfg condition for ABI tests](https://github.com/gtk-rs/gir/pull/1546) | ||
* [Generate cfgs with `update\_cfgs` on enums as well](https://github.com/gtk-rs/gir/pull/1545) | ||
|
||
Thanks to all of our contributors for their (awesome!) work on this release: | ||
|
||
* [@A6GibKm](https://github.com/A6GibKm) | ||
* [@alatiera](https://github.com/alatiera) | ||
* [@amyspark](https://github.com/amyspark) | ||
* [@bilelmoussaoui](https://github.com/bilelmoussaoui) | ||
* [@carlosmn](https://github.com/carlosmn) | ||
* [@DaKnig](https://github.com/DaKnig) | ||
* [@decathorpe](https://github.com/decathorpe) | ||
* [@ellnix](https://github.com/ellnix) | ||
* [@enaut](https://github.com/enaut) | ||
* [@exi](https://github.com/exi) | ||
* [@felinira](https://github.com/felinira) | ||
* [@fengalin](https://github.com/fengalin) | ||
* [@GuillaumeGomez](https://github.com/GuillaumeGomez) | ||
* [@Hofer-Julian](https://github.com/Hofer-Julian) | ||
* [@liushuyu](https://github.com/liushuyu) | ||
* [@marcinjahn](https://github.com/marcinjahn) | ||
* [@misson20000](https://github.com/misson20000) | ||
* [@mjgarton](https://github.com/mjgarton) | ||
* [@mokurin000](https://github.com/mokurin000) | ||
* [@mtilda](https://github.com/mtilda) | ||
* [@nazar-pc](https://github.com/nazar-pc) | ||
* [@pbor](https://github.com/pbor) | ||
* [@pranjalkole](https://github.com/pranjalkole) | ||
* [@sdroege](https://github.com/sdroege) | ||
* [@vhakulinen](https://github.com/vhakulinen) | ||
* [@woelfman](https://github.com/woelfman) | ||
* [@ystreet](https://github.com/ystreet) | ||
* [@zecakeh](https://github.com/zecakeh) |