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
gdk-pixbuf: Trust return value nullability
8e0d9256222f807f3e0c5d7977dcb16af76b5ef4 authored almost 2 years ago by Sebastian Dröge <[email protected]>glib: Add `ParamSpec::is()` helper function
459c298a92a2b94437354ba324d1ce617560d5f7 authored almost 2 years ago by Sebastian Dröge <[email protected]>Fixes https://github.com/gtk-rs/gtk-rs-core/issues/502
df0fdeecd6ab22410fbd655f0cbd5dec20cc21c4 authored almost 2 years ago by Sebastian Dröge <[email protected]>Fixes https://github.com/gtk-rs/gtk-rs-core/issues/789
4fe2e3a0a556aff7862437bcb4dc27d49e916ebf authored almost 2 years ago by Sebastian Dröge <[email protected]>gio: use StrV for the simple proxy resolver API
5e7661c40c5dd746bb03e766ae05053614b9eb98 authored almost 2 years ago by Sebastian Dröge <[email protected]>Signed-off-by: Aaron Erhardt <[email protected]>
c85950cfd5f0ec5484f319b3eee0f2e17f236986 authored almost 2 years ago by Aaron Erhardt <[email protected]>
This requires a `Send` closure to construct the non-`Send` future and is
for example useful if s...
settings: implement strv setter and getter manually
e6168556ca1b6c572ede2ec5e86bdd11129b023d authored almost 2 years ago by Sebastian Dröge <[email protected]>658073d62336122fcba736b5be24f0e9bd2ff055 authored almost 2 years ago by Paolo Borelli <[email protected]>
89905bd10982cc41988a19551219c4270059db2e authored almost 2 years ago by Paolo Borelli <[email protected]>
glib: implement ToGlibPtr<*mut _> for boxed types
776120e820ecedce00d5af7509e87b5a8a92c575 authored almost 2 years ago by Sebastian Dröge <[email protected]>e8b7da4f5ad63ee1f88192ed7f8ec465f4c9c2f8 authored almost 2 years ago by Matteo Biggio <[email protected]>
pango: use the new List api to simplify reorder_items
b9d0f77495793a723e7585a8df6d8564c39bd0b8 authored almost 2 years ago by Sebastian Dröge <[email protected]>654d94239e73bd71ce6b0e7141dd5cf154485ed8 authored almost 2 years ago by YuraIz <[email protected]>
9e22794142e71a3e219e9eead706c1eb2b6ef8c3 authored almost 2 years ago by YuraIz <[email protected]>
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]>801cd17a1b74c848c88920fc534850194a22beb8 authored almost 2 years ago by Paolo Borelli <[email protected]>
063c4d4d69220fb68b1279a9e0a2d02ff5680ba4 authored almost 2 years ago by Paolo Borelli <[email protected]>
Update gir files
3a7bf738457f7440d82e66711f386101ef935742 authored almost 2 years ago by Sebastian Dröge <[email protected]>39331a4ae4b58c23efa94a82b2f1f82d4a92619c authored almost 2 years ago by Sebastian Dröge <[email protected]>
e7c9a859bb3b5989d3bc30c12bc4bf255da71bf9 authored almost 2 years ago by Sebastian Dröge <[email protected]>
build tools: fix documentation link
2e2af7ceaf2ec0e4eee474588f0fd0da86fad863 authored almost 2 years ago by Sebastian Dröge <[email protected]>Bump MSRV to 1.64 everywhere
f2a366bfd26812e2a9fc9db9788344e673a2a1ba authored almost 2 years ago by Sebastian Dröge <[email protected]>Fixes https://github.com/gtk-rs/gtk-rs-core/issues/833
2352c3c532eb3963ef830e4661ca82a42ae14503 authored almost 2 years ago by Paolo Borelli <[email protected]>
Commit a577a12b761654a752564d427e824bb409e3c13d bumped it for glib.
Update the README accordingl...
3a405375d12af617b49c82fd0dbd63e4a1eb2dfe authored almost 2 years ago by Sebastian Dröge <[email protected]>
glib: Fix usage of `gformat!` macro if `GString` is not in scope
f43e8cea0001f83ad628045eb239a1f1e8ecf079 authored about 2 years ago by Guillaume Gomez <[email protected]>5c980b0461bbd67e1711e00282c23c6ce7b4fb43 authored about 2 years ago by Sebastian Dröge <[email protected]>
Generate string constants as `&'static GStr` / `[u8]`
f0b96302b4fd0b80b72f36630580d1acd4c1efe4 authored about 2 years ago by Sebastian Dröge <[email protected]>See https://github.com/gtk-rs/gir/pull/1424
0f5440005075eb9201b3bf61f16bd5e29d86ecea authored about 2 years ago by Sebastian Dröge <[email protected]>f1bd8591dc2030cc37953883d9e3e5ed31faae7a authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Use `IntoGStr` trait in a couple of places
84667c82d82f594eb5c269fe594f789cd00e1411 authored about 2 years ago by Guillaume Gomez <[email protected]>glib: Add Value::from_type_unchecked()
5091b7debd056e71a5aa92cd6fd79fbdbd097c8d authored about 2 years ago by Guillaume Gomez <[email protected]>
This reduces allocations as all those strings are usually small and
would be stack-allocated now...
This gets rid of a lot of unnecessary assertion code.
3ba6e70e79d3f798289bee0198a85c953711c623 authored about 2 years ago by Sebastian Dröge <[email protected]>This avoids the type checking and panic code generation.
96ec7f489c53dd6a6d79a939bcc06e76db03c910 authored about 2 years ago by Sebastian Dröge <[email protected]>Use `IntoGlibPtr` instead of `to_glib_full()` in more places
ae20f0d34369f4723cb80087e42519441de130d8 authored about 2 years ago by Sebastian Dröge <[email protected]>0cf12f8b95c1186e6f99bef1f17bfcd2cfe0a063 authored about 2 years ago by Sebastian Dröge <[email protected]>
Less refcounting.
a2c8bba4a24f1ffb51ed31c6e90e379d28017a1a authored about 2 years ago by Sebastian Dröge <[email protected]>
It was previously returning the stack allocated memory, which is invalid
after the function retu...
Fixes https://github.com/gtk-rs/gtk-rs-core/issues/872
49f78b3b91d421326c8ed45f8555ff85858631fc authored about 2 years ago by Sebastian Dröge <[email protected]>glib: Optimize various from/to `Vec` FFI translation functions
85e25820f5a9b76959753288c70998ff0891722c authored about 2 years ago by Guillaume Gomez <[email protected]>
Use memcpys if possible instead of manual loops, and directly write into
the `Vec` memory and se...
5a15d86e73e550cc6e54dbc574cb92d2003768e0 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Fix `glib::wrapper!` for `BoxedInline` with generic parameters
08e6f301453fc882c83cf526941bf22c1f2cf605 authored about 2 years ago by Guillaume Gomez <[email protected]>aa1abc2a06161f631820ddf0a90db9b5336ab689 authored about 2 years ago by Sebastian Dröge <[email protected]>
94a9159930bc15145ac5d3f7b41d9d87da9b9bc8 authored about 2 years ago by Sebastian Dröge <[email protected]>
glib: Minor optimization for `List`/`SList` with `Copy` types
9e7db4bdffdfe2782738cc166d897ac5e551aea1 authored about 2 years ago by Guillaume Gomez <[email protected]>It's not necessary to free them or to explicitly copy them.
3db22a74bdea49a49dbc698e8c288d215a5785db authored about 2 years ago by Sebastian Dröge <[email protected]>Improve `glib::collections` API and make it more versatile
21c5579f4e81e8252d0f1306346d89787eff9e9f authored about 2 years ago by Sebastian Dröge <[email protected]>
Also comes with a `IntoStrV` trait that allows to borrow as a
`NULL`-terminated string array eff...
0d7f9e797310bf4e143a095c3d960ab51212482b authored about 2 years ago by Sebastian Dröge <[email protected]>
040ed32cc68907ef980e0182a0b5b6524d1c9bf7 authored about 2 years ago by Sebastian Dröge <[email protected]>
771461e93af8a54776903ede2c2bb1af4554fb3f authored about 2 years ago by Sebastian Dröge <[email protected]>
450c2497b4173a9e108c6019e9b639242e42344b authored about 2 years ago by Sebastian Dröge <[email protected]>
And add an `IntoPtrSlice` trait that allows borrowing slices/etc as
efficient as possible as a `...
4caa41017bff4560454ecec79a242ddb26020493 authored about 2 years ago by Sebastian Dröge <[email protected]>
5276976ef97a09c159326fb14eaa29120bb49c21 authored about 2 years ago by Sebastian Dröge <[email protected]>
gio: simplify async initable
ab7525fca4138a2fe9333b19dc1a34f6f5edf602 authored about 2 years ago by Sebastian Dröge <[email protected]>Use CancellableFuture to clean up the code a little
3a00734fcab9e0d018f2a0300f111aa95ffbda05 authored about 2 years ago by Paolo Borelli <[email protected]>2c27b4dd7d1eff8dc1a6d3285017d567b3c0a657 authored about 2 years ago by Sebastian Dröge <[email protected]>
b1513a6e043bddb69f2c20e840682a02d628ece0 authored about 2 years ago by Sebastian Dröge <[email protected]>
Suggest kebab-case for the error domain
d738b2a264032a662399de9238a0097f4c460818 authored about 2 years ago by Sebastian Dröge <[email protected]>
Since the quark string is part of the public API (it ends up in
the gir file), follow the same c...
Inline various trivial functions
b018db2adf050d96ac80afc4526adb5f2c098051 authored about 2 years ago by Sebastian Dröge <[email protected]>3273b197fab2d5bea269b0c775688eeecab2570d authored about 2 years ago by Sebastian Dröge <[email protected]>
This avoids checking for that in every caller.
28d83c869b9defcd3dc3d3b3d189911a54a2f40d authored about 2 years ago by Sebastian Dröge <[email protected]>1de42422e4ff8bdc6c5c12e7f638f728c034f196 authored about 2 years ago by Sebastian Dröge <[email protected]>
d9b569c644dbfe772e4ea7bb0c8cabd6adbd6d6b authored about 2 years ago by Sebastian Dröge <[email protected]>
These assertions can only trigger because of bugs in the bindings
implementation or in the C cod...
a1637abd29e2ceb6afaad994b7cc7d584190af0a authored about 2 years ago by Sebastian Dröge <[email protected]>
See https://github.com/gtk-rs/gir/pull/1421
2e2b91a976afa4d63a6dae17ddf33afd698f4c48 authored about 2 years ago by Sebastian Dröge <[email protected]>ActionEntry: take proper types instead of strings
59cb4d2f70f36fdfd4fee9c53402b592f90f6504 authored about 2 years ago by Sebastian Dröge <[email protected]>42c72aa9bfd40016e5b497c50950df19325b2f55 authored about 2 years ago by Paolo Borelli <[email protected]>
Fixes https://github.com/gtk-rs/gtk-rs-core/issues/845
b54cb5ff9bbbd4efbc86423e130ec5c6cd4d7a53 authored about 2 years ago by Paolo Borelli <[email protected]>GString refactor
8a9d3bee666bb2741b4c79432e2ec0427f0fcd0e authored about 2 years ago by Sebastian Dröge <[email protected]>add some PartialEq and PartialOrd implementations for GStr too
9753a72c2c59aca95ac154266bbde1f651160598 authored about 2 years ago by Jason Francis <[email protected]>8fc92173601900e928163ef92e94981abbf25776 authored about 2 years ago by Jason Francis <[email protected]>
c77cbfcba5760d178abbaac0f4530c574b68d29b authored about 2 years ago by Jason Francis <[email protected]>
3caed0f22fee49168ad1b8d81daf6848299eed98 authored about 2 years ago by Jason Francis <[email protected]>
These traits can accept both &str or &GStr as an argument. A copy is
made when passing &str, but...
fbc18146b847f4e68e88e9a104471ff3536657f7 authored about 2 years ago by Jason Francis <[email protected]>
Also use Cow<[u8]> as storage to optimize out empty string allocations.
37c7b182607da12d29c6b840e6a1bf58e6b5483b authored about 2 years ago by Jason Francis <[email protected]>
For const std::slice::from_raw_parts, stabilized in
https://github.com/rust-lang/rust/pull/97522
0c15b297fd13ba2f1ae2b868278b7b9c272034f9 authored about 2 years ago by Jason Francis <[email protected]>
5368f2775f06541991e7c875b24fbdaed5fc1773 authored about 2 years ago by Jason Francis <[email protected]>
Optimizes GString to avoid unnecessary checking for interior nul bytes.
Interior nul bytes will ...
For consistency with str::as_bytes. Since we always store the length of
the slice we can always ...
9840c3bc71e42b1de116c0f1a1dda8d587a4f646 authored about 2 years ago by Jason Francis <[email protected]>
55e7db28c2e86a327dbabad8ed53b37fbed67b6e authored about 2 years ago by Jason Francis <[email protected]>
Various `Stash` / `to_glib_none()` related optimizations and bugfixes
d983c4ef42a141dfa7863f9fb7069f015b1c7df2 authored about 2 years ago by Sebastian Dröge <[email protected]>This reduces the size of most stashes from two pointers to one.
d373a78b01957b0d3430f3eb8b19b8459b5029ef authored about 2 years ago by Sebastian Dröge <[email protected]>
They're just borrowed to the C code so we need to make sure to keep them
alive via a `PhantomDat...
That completely defeats the purpose of `GStr` as it is already
NUL-terminated. `to_glib_none()` ...
3a1118be857256a5c0c1b0a99e12c90efa71dd63 authored about 2 years ago by Sebastian Dröge <[email protected]>
In case of shared, boxed and object types the value itself is already
kept alive via the stash a...
examples: spawn async gio task on the current thread context
a796130bfe3a11da3d4ae7b6978838d845cffc3c authored about 2 years ago by Sebastian Dröge <[email protected]>9f9def118d0364560065bae12866be271c60f79d authored about 2 years ago by Paolo Borelli <[email protected]>
Fix various new beta clippy warnings
380a0772e56d270ec4f61f9aebd908af424d0edc authored about 2 years ago by Sebastian Dröge <[email protected]>b2fcbe396a902be483cec8c849d06c83f5238e52 authored about 2 years ago by Sebastian Dröge <[email protected]>