Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/gtk-rs/gtk-rs-core

Rust bindings for GNOME libraries
https://github.com/gtk-rs/gtk-rs-core

Merge pull request #905 from sdroege/pixbuf-nullability

gdk-pixbuf: Trust return value nullability

8e0d9256222f807f3e0c5d7977dcb16af76b5ef4 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #907 from sdroege/param-spec-is

glib: Add `ParamSpec::is()` helper function

459c298a92a2b94437354ba324d1ce617560d5f7 authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Add `ParamSpec::is()` helper function

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/502

df0fdeecd6ab22410fbd655f0cbd5dec20cc21c4 authored almost 2 years ago by Sebastian Dröge <[email protected]>
gdk-pixbuf: Trust return value nullability

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/789

4fe2e3a0a556aff7862437bcb4dc27d49e916ebf authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #898 from pbor/proxy-strv

gio: use StrV for the simple proxy resolver API

5e7661c40c5dd746bb03e766ae05053614b9eb98 authored almost 2 years ago by Sebastian Dröge <[email protected]>
build-tools: Fix reporting of errors

Signed-off-by: Aaron Erhardt <[email protected]>

c85950cfd5f0ec5484f319b3eee0f2e17f236986 authored almost 2 years ago by Aaron Erhardt <[email protected]>
glib: Add `MainContext::spawn_from_within()` for spawning non-`Send` futures from another thread

This requires a `Send` closure to construct the non-`Send` future and is
for example useful if s...

e0e1685334c40565afd7f7521b4578f6cb55ea86 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #899 from pbor/settings-strv

settings: implement strv setter and getter manually

e6168556ca1b6c572ede2ec5e86bdd11129b023d authored almost 2 years ago by Sebastian Dröge <[email protected]>
gio: use StrV for the file_info API

658073d62336122fcba736b5be24f0e9bd2ff055 authored almost 2 years ago by Paolo Borelli <[email protected]>
settings: implement strv setter and getter manually

89905bd10982cc41988a19551219c4270059db2e authored almost 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #895 from pbor/boxed_mut

glib: implement ToGlibPtr<*mut _> for boxed types

776120e820ecedce00d5af7509e87b5a8a92c575 authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: implement ToGlibPtr<*mut _> for boxed types

e8b7da4f5ad63ee1f88192ed7f8ec465f4c9c2f8 authored almost 2 years ago by Matteo Biggio <[email protected]>
Merge pull request #896 from pbor/pango

pango: use the new List api to simplify reorder_items

b9d0f77495793a723e7585a8df6d8564c39bd0b8 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Install gobject-introspection-devel into image

654d94239e73bd71ce6b0e7141dd5cf154485ed8 authored almost 2 years ago by YuraIz <[email protected]>
Enable introspection

9e22794142e71a3e219e9eead706c1eb2b6ef8c3 authored almost 2 years ago by YuraIz <[email protected]>
pango: use the new List api to simplify reorder_items

Once gir will know about glib::List, we will be able to autogenerate this.

5bf6d2afaa41113191480bbd3a2088b469c5518a authored almost 2 years ago by Paolo Borelli <[email protected]>
gio: use StrV for TlsConnection

801cd17a1b74c848c88920fc534850194a22beb8 authored almost 2 years ago by Paolo Borelli <[email protected]>
gio: use StrV for the simple proxy resolver API

063c4d4d69220fb68b1279a9e0a2d02ff5680ba4 authored almost 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #897 from sdroege/update-gir-files

Update gir files

3a7bf738457f7440d82e66711f386101ef935742 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Regenerate with latest gir

39331a4ae4b58c23efa94a82b2f1f82d4a92619c authored almost 2 years ago by Sebastian Dröge <[email protected]>
Update gir

e7c9a859bb3b5989d3bc30c12bc4bf255da71bf9 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #894 from pbor/build-tools

build tools: fix documentation link

2e2af7ceaf2ec0e4eee474588f0fd0da86fad863 authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #893 from pbor/msrv

Bump MSRV to 1.64 everywhere

f2a366bfd26812e2a9fc9db9788344e673a2a1ba authored almost 2 years ago by Sebastian Dröge <[email protected]>
build tools: fix documentation link

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/833

2352c3c532eb3963ef830e4661ca82a42ae14503 authored almost 2 years ago by Paolo Borelli <[email protected]>
Bump MSRV to 1.64 everywhere

Commit a577a12b761654a752564d427e824bb409e3c13d bumped it for glib.
Update the README accordingl...

45cf3192d141adfe812f0b003c63e0c1cf55a479 authored almost 2 years ago by Paolo Borelli <[email protected]>
Update gir-files

3a405375d12af617b49c82fd0dbd63e4a1eb2dfe authored almost 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #886 from sdroege/gformat-no-import

glib: Fix usage of `gformat!` macro if `GString` is not in scope

f43e8cea0001f83ad628045eb239a1f1e8ecf079 authored about 2 years ago by Guillaume Gomez <[email protected]>
glib: Fix usage of `gformat!` macro if `GString` is not in scope

5c980b0461bbd67e1711e00282c23c6ce7b4fb43 authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #885 from sdroege/gstr-constants

Generate string constants as `&'static GStr` / `[u8]`

f0b96302b4fd0b80b72f36630580d1acd4c1efe4 authored about 2 years ago by Sebastian Dröge <[email protected]>
Regenerate with latest gir

See https://github.com/gtk-rs/gir/pull/1424

0f5440005075eb9201b3bf61f16bd5e29d86ecea authored about 2 years ago by Sebastian Dröge <[email protected]>
Update gir

f1bd8591dc2030cc37953883d9e3e5ed31faae7a authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #882 from sdroege/into-gstr

glib: Use `IntoGStr` trait in a couple of places

84667c82d82f594eb5c269fe594f789cd00e1411 authored about 2 years ago by Guillaume Gomez <[email protected]>
Merge pull request #883 from sdroege/value-from-type

glib: Add Value::from_type_unchecked()

5091b7debd056e71a5aa92cd6fd79fbdbd097c8d authored about 2 years ago by Guillaume Gomez <[email protected]>
glib: Use `IntoGStr` trait in a couple of places

This reduces allocations as all those strings are usually small and
would be stack-allocated now...

899b40b388bc8af6b93d54b6caf60100c10cde0c authored about 2 years ago by Sebastian Dröge <[email protected]>
Use `Value::from_type_unchecked()` where applicable

This gets rid of a lot of unnecessary assertion code.

3ba6e70e79d3f798289bee0198a85c953711c623 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Add `Value::from_type_unchecked()`

This avoids the type checking and panic code generation.

96ec7f489c53dd6a6d79a939bcc06e76db03c910 authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #881 from sdroege/into-glib-ptr

Use `IntoGlibPtr` instead of `to_glib_full()` in more places

ae20f0d34369f4723cb80087e42519441de130d8 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Get rid of some unnecessary `Option` wrapping

0cf12f8b95c1186e6f99bef1f17bfcd2cfe0a063 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Return a reference to the `ValueArray` pspec element spec

Less refcounting.

a2c8bba4a24f1ffb51ed31c6e90e379d28017a1a authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Fix `IntoGlibPtr` implementation for `BoxedInline`

It was previously returning the stack allocated memory, which is invalid
after the function retu...

254693c7d44a6c3770f3fd03b9a77a5dfef81889 authored about 2 years ago by Sebastian Dröge <[email protected]>
Use `IntoGlibPtr` instead of `to_glib_full()` in more places

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/872

49f78b3b91d421326c8ed45f8555ff85858631fc authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #878 from sdroege/vec-conversion-optimizations

glib: Optimize various from/to `Vec` FFI translation functions

85e25820f5a9b76959753288c70998ff0891722c authored about 2 years ago by Guillaume Gomez <[email protected]>
glib: Optimize various from/to `Vec` FFI translation functions

Use memcpys if possible instead of manual loops, and directly write into
the `Vec` memory and se...

4be06beaa33d49478af1a1d61f56290ff3e24e26 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Remove an unnecessary `FromGlibContainerAsVec` impl

5a15d86e73e550cc6e54dbc574cb92d2003768e0 authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #879 from sdroege/boxed-inline-wrapper-generics

glib: Fix `glib::wrapper!` for `BoxedInline` with generic parameters

08e6f301453fc882c83cf526941bf22c1f2cf605 authored about 2 years ago by Guillaume Gomez <[email protected]>
glib: Fix `glib::wrapper!` for `BoxedInline` with generic parameters

aa1abc2a06161f631820ddf0a90db9b5336ab689 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Remove unnecessary forwarding of attributes in `glib::wrapper!` for `BoxedInline`

94a9159930bc15145ac5d3f7b41d9d87da9b9bc8 authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #877 from sdroege/collections-list-copy-types

glib: Minor optimization for `List`/`SList` with `Copy` types

9e7db4bdffdfe2782738cc166d897ac5e551aea1 authored about 2 years ago by Guillaume Gomez <[email protected]>
glib: Minor optimization for `List`/`SList` with `Copy` types

It's not necessary to free them or to explicitly copy them.

3db22a74bdea49a49dbc698e8c288d215a5785db authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #875 from sdroege/collections

Improve `glib::collections` API and make it more versatile

21c5579f4e81e8252d0f1306346d89787eff9e9f authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Implement `glib::StrV` for `NULL`-terminated string arrays

Also comes with a `IntoStrV` trait that allows to borrow as a
`NULL`-terminated string array eff...

28913c874ba6b29672631628c28c51f35fe6d9b8 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Make `glib::SList` and `glib::List` API more complete and similar to `LinkedList`

0d7f9e797310bf4e143a095c3d960ab51212482b authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Optimize `ToGlibPtrFromSlice` impls for shared/boxed/object/boxed-inline

040ed32cc68907ef980e0182a0b5b6524d1c9bf7 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Remove a couple of unnecessary trait impls for `glib::ObjectRef`

771461e93af8a54776903ede2c2bb1af4554fb3f authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Make `glib::Slice` API more complete and similar to `Vec`

450c2497b4173a9e108c6019e9b639242e42344b authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Make `glib::PtrSlice` API more complete and similar to `Vec`

And add an `IntoPtrSlice` trait that allows borrowing slices/etc as
efficient as possible as a `...

1cc98083b86890f897c02f3d9501d9389ed4f413 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Add zero-copy conversion from `PtrSlice` to `Slice` and back

4caa41017bff4560454ecec79a242ddb26020493 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Use plain `g_malloc()` instead of `g_malloc0()` if we initialize the result anyway

5276976ef97a09c159326fb14eaa29120bb49c21 authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #876 from pbor/async-init-canc

gio: simplify async initable

ab7525fca4138a2fe9333b19dc1a34f6f5edf602 authored about 2 years ago by Sebastian Dröge <[email protected]>
gio: simplify async initable

Use CancellableFuture to clean up the code a little

3a00734fcab9e0d018f2a0300f111aa95ffbda05 authored about 2 years ago by Paolo Borelli <[email protected]>
glib: Simplify `as_ptr()` implementation and add new function to borrow values from pointers directly

2c27b4dd7d1eff8dc1a6d3285017d567b3c0a657 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Add new marker traits for transparent types

b1513a6e043bddb69f2c20e840682a02d628ece0 authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #874 from pbor/master

Suggest kebab-case for the error domain

d738b2a264032a662399de9238a0097f4c460818 authored about 2 years ago by Sebastian Dröge <[email protected]>
Suggest kebab-case for the error domain

Since the quark string is part of the public API (it ends up in
the gir file), follow the same c...

66bb1caa82f40e05226bd30f1cd408020a07f549 authored about 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #866 from sdroege/inlining

Inline various trivial functions

b018db2adf050d96ac80afc4526adb5f2c098051 authored about 2 years ago by Sebastian Dröge <[email protected]>
gio: Use `OsStr::to_str()` instead of `OsString::into_string()` to avoid unnecessary heap allocations

3273b197fab2d5bea269b0c775688eeecab2570d authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Assert immediately after type registration that the returned type is valid

This avoids checking for that in every caller.

28d83c869b9defcd3dc3d3b3d189911a54a2f40d authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Remove useless `UserDirectory::NDirectories` enum variant

1de42422e4ff8bdc6c5c12e7f638f728c034f196 authored about 2 years ago by Sebastian Dröge <[email protected]>
Inline various trivial functions

d9b569c644dbfe772e4ea7bb0c8cabd6adbd6d6b authored about 2 years ago by Sebastian Dröge <[email protected]>
Change some assertions to debug assertions

These assertions can only trigger because of bugs in the bindings
implementation or in the C cod...

0d169239187d544ad23c5d7fff3bef1917e6b09d authored about 2 years ago by Sebastian Dröge <[email protected]>
Update gir

a1637abd29e2ceb6afaad994b7cc7d584190af0a authored about 2 years ago by Sebastian Dröge <[email protected]>
Regenerate with latest gir

See https://github.com/gtk-rs/gir/pull/1421

2e2b91a976afa4d63a6dae17ddf33afd698f4c48 authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #870 from pbor/master

ActionEntry: take proper types instead of strings

59cb4d2f70f36fdfd4fee9c53402b592f90f6504 authored about 2 years ago by Sebastian Dröge <[email protected]>
SimpleAction: take state by value

42c72aa9bfd40016e5b497c50950df19325b2f55 authored about 2 years ago by Paolo Borelli <[email protected]>
ActionEntry: take proper types instead of strings

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/845

b54cb5ff9bbbd4efbc86423e130ec5c6cd4d7a53 authored about 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #600 from jf2048/gstring-traits

GString refactor

8a9d3bee666bb2741b4c79432e2ec0427f0fcd0e authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: add GStringBuilder::as_gstr and AsRef<GStr>

add some PartialEq and PartialOrd implementations for GStr too

9753a72c2c59aca95ac154266bbde1f651160598 authored about 2 years ago by Jason Francis <[email protected]>
glib: convert some functions to use IntoGStr

8fc92173601900e928163ef92e94981abbf25776 authored about 2 years ago by Jason Francis <[email protected]>
glib: allow GString to store small inline strings

c77cbfcba5760d178abbaac0f4530c574b68d29b authored about 2 years ago by Jason Francis <[email protected]>
glib: add gformat! for directly formatting into a GString

3caed0f22fee49168ad1b8d81daf6848299eed98 authored about 2 years ago by Jason Francis <[email protected]>
glib: add IntoGStr traits

These traits can accept both &str or &GStr as an argument. A copy is
made when passing &str, but...

d4335b553d9a7f3bee6494a5a1b31cc2b1febd84 authored about 2 years ago by Jason Francis <[email protected]>
glib: add ToGlibPtr implementations for more string types

fbc18146b847f4e68e88e9a104471ff3536657f7 authored about 2 years ago by Jason Francis <[email protected]>
glib: have ToGlibPtr check interior string nuls in debug mode

Also use Cow<[u8]> as storage to optimize out empty string allocations.

37c7b182607da12d29c6b840e6a1bf58e6b5483b authored about 2 years ago by Jason Francis <[email protected]>
glib: bump required Rust version to 1.64

For const std::slice::from_raw_parts, stabilized in
https://github.com/rust-lang/rust/pull/97522

a577a12b761654a752564d427e824bb409e3c13d authored about 2 years ago by Jason Francis <[email protected]>
glib: make some GStr methods const

0c15b297fd13ba2f1ae2b868278b7b9c272034f9 authored about 2 years ago by Jason Francis <[email protected]>
glib: add more `From` implementations for GString

5368f2775f06541991e7c875b24fbdaed5fc1773 authored about 2 years ago by Jason Francis <[email protected]>
glib: refactor GStr and GString constructors

Optimizes GString to avoid unnecessary checking for interior nul bytes.
Interior nul bytes will ...

ed25376e7280475c64024291dc9c02eb511e1e56 authored about 2 years ago by Jason Francis <[email protected]>
glib: rename GStr::to_bytes to as_bytes

For consistency with str::as_bytes. Since we always store the length of
the slice we can always ...

02ade78df7366d76a5f447c664d74fd69059764b authored about 2 years ago by Jason Francis <[email protected]>
glib: implement Display for GStr

9840c3bc71e42b1de116c0f1a1dda8d587a4f646 authored about 2 years ago by Jason Francis <[email protected]>
glib: Add #[inline] to more GString trait methods

55e7db28c2e86a327dbabad8ed53b37fbed67b6e authored about 2 years ago by Jason Francis <[email protected]>
Merge pull request #865 from sdroege/stash-phantom-data

Various `Stash` / `to_glib_none()` related optimizations and bugfixes

d983c4ef42a141dfa7863f9fb7069f015b1c7df2 authored about 2 years ago by Sebastian Dröge <[email protected]>
Use `PhantomData` as `Stash::Storage` if nothing has to be stored except for a lifetime

This reduces the size of most stashes from two pointers to one.

d373a78b01957b0d3430f3eb8b19b8459b5029ef authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Make sure to keep the original values alive in `[T]::to_glib_none()`

They're just borrowed to the C code so we need to make sure to keep them
alive via a `PhantomDat...

e9e7a896c4c6fd8f79ddb5239b64a38ba06ece97 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Don't create a temporary copy of `&GStr` for `ToGlibPtr::to_glib_none()`

That completely defeats the purpose of `GStr` as it is already
NUL-terminated. `to_glib_none()` ...

f65029b75121f790a84ffc2899dd60ade79b6c21 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Optimize `[Type]::to_glib_none()` to not have an additional heap allocation

3a1118be857256a5c0c1b0a99e12c90efa71dd63 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Only use a single temporary `Vec` for `[T]::to_glib_none()`

In case of shared, boxed and object types the value itself is already
kept alive via the stash a...

3cd48d23f6cd10627b6388e16814f90c953f4d63 authored about 2 years ago by Sebastian Dröge <[email protected]>
Merge pull request #863 from pbor/gio-example-fix

examples: spawn async gio task on the current thread context

a796130bfe3a11da3d4ae7b6978838d845cffc3c authored about 2 years ago by Sebastian Dröge <[email protected]>
examples: spawn async gio task on the current thread context

9f9def118d0364560065bae12866be271c60f79d authored about 2 years ago by Paolo Borelli <[email protected]>
Merge pull request #862 from sdroege/clippy-warnings

Fix various new beta clippy warnings

380a0772e56d270ec4f61f9aebd908af424d0edc authored about 2 years ago by Sebastian Dröge <[email protected]>
Fix various new beta clippy warnings

b2fcbe396a902be483cec8c849d06c83f5238e52 authored about 2 years ago by Sebastian Dröge <[email protected]>