0.18.0
What's Changed
- param_spec: add ParamSpecEnumBuilder::default_value() by @gdesmott in #974
- glib: Add various
IntoStrV
impls by @sdroege in #977 - Implement Default trait for vectors by @yuraiz in #979
- Improve conversion errors for setters by @ranfdev in #986
- Make
WeakRef
andSendWeakRef
useable with theProperties
derive macro by @RealKC in #985 - properties: impl HasParamSpec for Vec and StrV by @pbor in #995
- glib-macros: slightly improve Properties macro docs by @SeaDve in #994
- glib-macros: allow properties macro generated functions to be unused by @jf2048 in #996
- Derive HasParamSpec for SharedBoxed by @pbor in #999
- strv: add join() method by @pbor in #989
- object: improve downcasting docs by @MathieuDuponchelle in #1005
- More strv fixes by @pbor in #1007
- Implement PartialEq for WeakRef by @andy128k in #1006
- Revert "SimpleAction: take state by value" by @mbiggio in #1011
- Update gir-files by @sdroege in #1013
- glib: add missing ObjectImpl vfuncs overrides by @bilelmoussaoui in #1003
- gio: Don't pass
NULL
tog_list_store_find_with_equal_func_full()
by @sdroege in #1015 - glib: Optimize
IntoGStr
impl forString
by simply appending a NUL-byte by @sdroege in #1016 - glib: implement WatchedObject for BorrowedObject by @jf2048 in #1017
- impl HasParamSpec on glib::Variant by @ranfdev in #1022
- strv: when calling g_strv ffi method, use our
as_ptr
implementation by @mbiggio in #1026 - glib: Add connect_notify* methods to SignalGroup by @melix99 in #1027
- pangocairo-sys: fix package.description in Cargo.toml by @decathorpe in #1031
- Add nullable attribute on properties macro by @ranfdev in #1023
- Add ValueDelegate macro by @ranfdev in #1000
- gio: add FileEnumerator::into_stream by @jf2048 in #1035
- glib: Only optimize
IntoGStr
forString
when capacity allows by @jf2048 in #1034 - cairo: Surface::create_similar_image should return an ImageSurface by @tintou in #1036
- glib: Don't include the NULL terminator in the
IntoStrV
slice by @sdroege in #1037 - Added subclassing support for gio::SocketControlMessage by @xanathar in #1039
- gio: Make ListStore::new() take a type parameter by @BrainBlasted in #1032
- Fixed unit tests under macOS and possibly other *nix flavors by @xanathar in #1038
- Value delegate improvements by @SeaDve in #1043
- glib: impl StaticType, FromValue, ToValue, HasParamSpec for Box by @SeaDve in #1044
- Fix CI for rust 1.68 by @jf2048 in #1050
- glib: implement From for GString by @jf2048 in #1049
- Fix nightly clippy warnings by @bilelmoussaoui in #1051
- glib: Switch Priority to associated constants by @bilelmoussaoui in #1024
- Update gir files by @sdroege in #1053
- glib-macros: Don't assume edition=2021 by @bilelmoussaoui in #1056
- glib-macros: generate "From for Value" on ValueDelegate by @SeaDve in #1055
- glib: Fix building for architectures without 64-bit atomics by @johan-bjareholt in #1057
- Implement bindings for g_win32 functions by @rmnscnce in #1042
- glib-macros: add docs on supported #[property] attributes by @SeaDve in #1062
- glib-macros: enable default features of syn by @decathorpe in #1065
- glib-macros: Specify quoted types explicitly by @felinira in #1068
- glib: Allow using
Path
/PathBuf
inglib::Value
s by @sdroege in #1071 - glib-macros: Import ParamSpecBuilderExt inside the scope of DerivedObjectProperties::derived_properties by @rmnscnce in #1074
- glib: Fix inverted boolean conditions when deciding whether to reserve new space by @sdroege in #1076
- glib-macros: Disambiguate TryFrom::Error for DerivedPropertiesEnum by @rmnscnce in #1077
- glib-macros: Strip raw identifier prefix from struct members for the Properties macro by @rmnscnce in #1079
- glib-macros: Strip out r# prefix from property names inside the GObject by @rmnscnce in #1081
- glib: Enable various smallvec features by @sdroege in #1083
- Fix various new Rust 1.69 clippy warnings by @sdroege in #1085
- Split new/with_type in a few more places by @jf2048 in #1086
- pango: Lower pkg-config version requirement for v1_52 by @bilelmoussaoui in #1087
- Update gir: Use docsrs attribute by @AaronErhardt in #1078
- Fix required features not shown in docs by @AaronErhardt in #1092
- properties: Allow to omit set for construct_only properties by @felinira in #1089
- Regenerate with latest gir by @bilelmoussaoui in #1091
- Update syn: v2.0 by @ranfdev in #1096
- Update rust-version = 1.65 by @ranfdev in #1099
- Upgrade http links to https in Cargo.toml by @Benjins-automation in #1101
- Clippy warnings by @sdroege in #1109
- Fix heap buffer overflow due to operator precedence by @saethlin in #1111
- strv: Implement From for constant GStr slices by @A6GibKm in #1114
- glib: Do not use ptr::offset/offset_from for private/impl offset by @heftig in #1115
- Add a std_once_cell feature by @A6GibKm in #1113
- ci: Update gvsbuild version by @mbiggio in #1123
- Regen with latest gir/gir-files by @bilelmoussaoui in #1124
- Update to bitflags2 by @bilelmoussaoui in #1125
- glib: Replace Continue with ControlFlow by @bilelmoussaoui in #1066
- glib: Remove Inhibit and replace it with ControlFlow by @bilelmoussaoui in #1126
- glib-macros: Add
use_derived_properties
macro by @yuraiz in #1127 - pango: Mark manual impls as such by @A6GibKm in #1129
- control flow: Fix logic in From implementation by @bilelmoussaoui in #1128
- Implement FromGlibPtrBorrow on boxed and shared-boxed types by @mbiggio in #1122
- Fix clippy lints by @GuillaumeGomez in #1130
- Use
--generate-link-to-definition
option when generating documentation by @GuillaumeGomez in #1131 - Update MSRV to 1.70 by @sdroege in #1134
- Add retain method to ListStore by @ranfdev in #1133
- fixed missing 512 flag, renamed 256 to USER_0 by @happylinks in #1135
- Add support for NonZeroT types by @ranfdev in #1136
- Remove unused dependency by @Kijewski in #1137
- Don't generate unit tuple in clone macro as default-return value by @GuillaumeGomez in #1138
- Fix panic in gio InputStream by @ranfdev in #1140
- Update gir-files submodule & regen by @bilelmoussaoui in #1142
New Contributors
- @MathieuDuponchelle made their first contribution in #1005
- @tintou made their first contribution in #1036
- @BrainBlasted made their first contribution in #1032
- @johan-bjareholt made their first contribution in #1057
- @rmnscnce made their first contribution in #1042
- @felinira made their first contribution in #1068
- @Benjins-automation made their first contribution in #1101
- @heftig made their first contribution in #1115
- @happylinks made their first contribution in #1135
- @Kijewski made their first contribution in #1137
Full Changelog: 0.17.0...0.18.0