Ecosyste.ms: OpenCollective

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

github.com/gtk-rs/gir

Tool to generate rust bindings and user API for glib-based libraries
https://github.com/gtk-rs/gir

Fix generation of anonymous unions and structs-in-unions

Previously these were using the attributes of the parent element and
accidentially worked most o...

5aa17dac178e4e0bce1667fd27cc1429ae78c0f3 authored over 7 years ago
Rename some variables to prevent aliasing them

And actually use the correct variables in various places because of
that.

67d3d5586f75f9a6bf14cd3eb800b28a76531895 authored over 7 years ago
Merge pull request #412 from sdroege/unions

Generate get_type() functions for unions and some cleanup

61edbf272afc4b79fd5ff5d7fb607bcfb984aaa9 authored over 7 years ago
Fix generation of nested structs/unions

They should have no functions or glib_get_type function associated with
them, especially not the...

3d9ab86926a5dd703ca2e6d7f4a27de2e4de4afb authored over 7 years ago
Fix clippy warning about if let &Some(_) = some_option

0d3850cdd951a2a867456379969790c5a8d3f9a2 authored over 7 years ago
Don't create double-references but use the references directly

0fe73b7fa35ffc084135fae522e5f2d186d2b9c4 authored over 7 years ago
Write bitflags/enum get_type() functions the same way as for records/classes/etc

This also inserts them in the same extern "C" block instead of creating
a new block for every si...

f6172b3184eaf163aaec55b53f75511b0df7bf53 authored over 7 years ago
Always parse unions, independent of configuration

Unifies some code and has no actual effect if the configuration for
using unsafe unions is not e...

b43fb465570c78d8cb28bddaf43c93a41dc9e5f3 authored over 7 years ago
Minor rustfmt fixup

4da3fce3921270178f931204af31321cb4931162 authored over 7 years ago
Parse and generate get_type() functions for unions

f1f25578ff1e4e3a0ed1d750456a6eb3f5c7f7e0 authored over 7 years ago
Merge pull request #411 from GuillaumeGomez/indent

Fix indent

a4dcfeacd83460fefce039769738a330564c761c authored over 7 years ago
Fix indent

5de5760f98c3a059372025564f6e2470729ce300 authored over 7 years ago
Merge pull request #409 from sdroege/value-enum-flags

Add support for generating StaticType and Value trait impls for flags…

ac9a8dadb62d003af9f0c6ed46e82ff0971125e5 authored over 7 years ago
Run everything through rustfmt 0.1.9-nightly

195f9ba1435ee78a21058a4e6c20e39a79a8665d authored over 7 years ago
Add support for generating StaticType and Value trait impls for flags and enums

6472453538fb15cfa67a6c39d88061068833cf88 authored over 7 years ago
Merge pull request #410 from sdroege/get-type-boxed-shared

Pass get_type() functions, if any, to glib_wrapper!() for shared/boxe…

dd775a9bf41eda657784defffd2aa9081bec35ca authored over 7 years ago
Pass get_type() functions, if any, to glib_wrapper!() for shared/boxed types

78fb4e3873ac6052acf932dc973ced2d0ced672d authored over 7 years ago
Merge pull request #408 from sdroege/non-generic-pointer-array-impls

Add various imports needed by new trait impls and distinguish FromGli…

ce03df6738e93870115e2f175f81ac7c069d423d authored over 7 years ago
Add various imports needed by new trait impls and distinguish FromGlibContainer and FromGlibPtrContainer

e04e48d7e6cf9c5edcfece31cbfce1d448bce8b4 authored over 7 years ago
Update README.md (#406)

Update README.md

4b09025ee4935483c4a11e132201e1a45e20ef28 authored over 7 years ago
Merge pull request #407 from sdroege/non-generic-value-impls

Add SetValue/SetValueOptional bounds to property setters and import g…

0c614019bb1a3b16c42f61bd0dbcd50e367b631c authored over 7 years ago
Add SetValue/SetValueOptional bounds to property setters and import gobject_ffi

This is needed now as glib_wrapper!() implements the Value traits
instead of having generic impl...

93fb71d480890ac3602655dc64b3ca8e58059c5c authored over 7 years ago
Merge pull request #405 from sdroege/ref-mode-config

Add configuration for overriding the RefMode

7504fb655f6c3f1abef6d1d683b3db0632ac6f81 authored over 7 years ago
Update README.md for ref_mode configuration

f43f5634ecd8664836a06a29324f9c829e052f1f authored over 7 years ago
Add configuration for overriding the RefMode

This is mostly useful for manual types where the actually implemented
RefMode is different from ...

e13a4a3f5b1e3739d51d844aa4de5122ad823902 authored over 7 years ago
Merge pull request #404 from GuillaumeGomez/fn-version

Allow to have a better version prediction for functions

89daf8f60096fb80b7a1eff67feb0bf1bf165ec4 authored over 7 years ago
Limit double version check to main namespace

d23b06792b8f990217c40dbbf90060a20c48dafa authored over 7 years ago
Allow to have a better version prediction for functions

b78b9c67aba4d0df5049f5d8b11bffaf210549f9 authored over 7 years ago
Merge pull request #402 from Luke-Nukem/master

Full enablement of Unions using nightly Rust

2192ae7a423664422b5ed1f43c7cdeb69168579d authored over 7 years ago
Adds ability to generate unions and nested (anonymous) structs

This commit enables full genertion of unions if using nightly Rust with feature
"use-unions" ena...

78d6f9b20dc65ac9d52d3e0a17e37674af4edd33 authored over 7 years ago
Merge pull request #398 from GuillaumeGomez/alias

Import everything from auto in case a type is an alias of an auto type

9e3f4ccff85d1e22fef3fcc4e712aada544bdaa6 authored over 7 years ago
Import everything from auto in case a type is an alias of an auto type

2614ecf078ba77fcd5a4ab71faaff4d08dc03546 authored over 7 years ago
Merge pull request #397 from GuillaumeGomez/destroy

Destroy

0575527d182acf4308be9a79a9187073017755fc authored over 7 years ago
Add missing free kind functions

0bab5da2594d51c192bedb9746ef08b7933706bc authored over 7 years ago
Merge pull request #394 from EPashkin/external_libraries_customize

Add customization of crate names for external libraries

33e9567bd547e420da3a101bf7f12a9baffd24c0 authored over 7 years ago
Move filling package.links from each update to creating empty Cargo.toml

cd0c042a3c7e383b01e3258ea686d8de81cbfb4b authored over 7 years ago
Add customization of crate names for external libraries

067159bf3bde02a24cfec0fa795f6d3f039236a1 authored over 7 years ago
Merge pull request #393 from sdroege/send-sync

Implement Send/Sync configuration for objects/records

3354568b0b09c2da0bb794d2eee55db4974dea87 authored over 7 years ago
Update README.md with the new concurrency setting

2374a347a630c2bd79a03efbec7c521ae6c03ad4 authored over 7 years ago
Implement Send/Sync configuration for objects/records

This allows configuring crate-wide and per object/record if an object is
supposed to be Send, Sy...

2167ba12d65efd3d94823de3f8c87732a988b605 authored over 7 years ago
Merge pull request #392 from EPashkin/from_glib_safety

Fix enums from_glib unsafety, store unknown value

3c73dd9d4cd9ce6cb81b1de64ddc33a521b9fe53 authored over 7 years ago
Fix enums from_glib unsafety, store unknown value

ee6032ba9741e7f598812d7645272e4c6e795d91 authored over 7 years ago
Merge pull request #390 from sdroege/rustfmt

Run everything through rustfmt-nightly 0.1.5

b1553034d04170d3e29969c520f39017e899dab1 authored over 7 years ago
Run everything through rustfmt-nightly 0.1.5

3a0894f53e052463173b16b69d11af7c5eaf5de4 authored over 7 years ago
Merge pull request #387 from sdroege/array-length

Add support for array-length for parameters and return values

2071a9360b981dc712dc26a12f3ee7541bcd75d1 authored over 7 years ago
Merge pull request #391 from sdroege/out-strings2

Don't support String InOut parameters and &mut String Out parameters

b79be2f7462d85df94572b598a7804e77726ccff authored over 7 years ago
Don't support String InOut parameters and &mut String Out parameters

These are not implemented yet.

69e3c198ed78113319331095d676170f9d020088 authored over 7 years ago
Mangle parameter names before comparison

In the outs array they are the original one, in the params array not. It
might make sense to use...

017e7cc886c554ec6018138c1545e14a8d9f44cf authored over 7 years ago
Use Vec<_>::get() instead of iter().nth()

5269a93397c55cfca034c345323c2e0c193547fd authored over 7 years ago
Calculate array length positions based on parameter position, not out parameter position

bf35750567d9bf43256d4b3146fb8033d44241e1 authored over 7 years ago
Minor cleanup

89b552f2ee5ac8872e87167e67d9e67c60002fce authored over 7 years ago
Parse (array length=X) field from the GIR

For parameters and fields.

aef99e088bf0e27c6685686570c9f3e492678994 authored over 7 years ago
Add support for array-length for parameters and return values

Only pointer typed array elements are supported for now.

https://github.com/gtk-rs/gir/issues/376

d9f893a62211d2bf2c0cdd1e34280e4f4cee7edb authored over 7 years ago
Merge pull request #389 from sdroege/out-strings

Add support for String/PathBuf out parameters

ec457c614dc1b479958a962ce145e9d56f8c1c78 authored over 7 years ago
Add support for String/PathBuf out parameters

32e71ff4311d917bdc84a42f267ec754c5806612 authored over 7 years ago
Merge pull request #386 from EPashkin/clippy

Fix some Clippy warnings

3ad22de284ffb21670f372a2b28606960bb32c44 authored over 7 years ago
Fix some Clippy warnings

85b4d42ac886596cbdba84a377f4bb5d3212e341 authored over 7 years ago
Merge pull request #385 from sdroege/gsize-gssize

Add support for gsize/gssize by using usize/isize

045514dde8a6cc221026c1d75828bca6ca704f0e authored over 7 years ago
Add support for gsize/gssize by using usize/isize

574fa28053aefe52406e984a65f818b953e99344 authored over 7 years ago
Merge pull request #384 from sdroege/docopt-xml-toml

Update docopt to 0.8, xml-rs to 0.6 and toml to 0.4

9279f448b2d6b36270c8feeb48dffa7a9b0c414b authored over 7 years ago
Update docopt to 0.8, xml-rs to 0.6 and toml to 0.4

7aa5dadce0c74b85e3dec745cf7b70e1564c65d9 authored over 7 years ago
Merge pull request #383 from sdroege/bitflags-0.9

Update to bitflags 0.9

d121f7e01ae0eb6e10e1e1f645499a57ead679f9 authored over 7 years ago
Update to bitflags 0.9

e5659bb3b8a103ec7f6df27b2edb000995fcbc6d authored over 7 years ago
Merge pull request #381 from GuillaumeGomez/cleanup

Replace some unwrap with expect calls

1db48ab3d0660f59c822f7089aa15173232e10c0 authored over 7 years ago
Replace some unwrap with expect calls

fdeaa47ae0639b649f10dc2de18f6bf24760f22f authored over 7 years ago
Merge pull request #380 from gtk-rs/fix-readme

Update README.md

2ff30096f629c233fa4db988f31418dd2b5194c6 authored over 7 years ago
Update README.md

b1e562562c88b368c5bdf9ef70b192273f01460c authored over 7 years ago
Merge pull request #378 from GuillaumeGomez/into-child-properties

Add Into for child properties as well

5c017c9bf0dd1234ca8b1d7b993705fda7172c67 authored over 7 years ago
Add Into for child properties as well

aab0d88273cb4259d038749a67f1b75a9fe98431 authored over 7 years ago
Merge pull request #377 from EPashkin/is_windows_utf8

Add sys function config is_windows_utf8

28183c8777ccd756058d5fdc6cb3bb08008038d6 authored over 7 years ago
Add sys function config is_windows_utf8

63cd5ef5725c4f5127db26798daf5a41399ec80e authored over 7 years ago
Merge pull request #374 from sdroege/out-parameters-comma

Don't prepend a comma before the first non-out parameter if the first…

9bc164798d88f564493264ebc362bfc49e31996c authored over 7 years ago
Don't prepend a comma before the first non-out parameter if the first one is an out parameter

5388125dbbe4a8617e1d50ccc32d4bfb7b2626c0 authored over 7 years ago
Merge pull request #373 from sdroege/bool-error

Add configuration for converting bool return values to Result<(), Boo…

9be52a71ea6a451cd5b0ab488fd2d58d56fc6194 authored over 7 years ago
Update README.md

80c1d4689fa8df52aabc83e52b3b6b3ebc8b5c33 authored over 7 years ago
Allow specifying a error message string for bool_return_is_error configuration

This allows giving more meaningful details about why a function could
fail.

12e473cbdb1b5975d0b54f83f8ce2ec363d5d6b0 authored over 7 years ago
Add configuration for converting bool return values to Result<(), BoolError>

https://github.com/gtk-rs/gir/issues/368

d000fa713bbaa1e63d67e764aeb79e3366cb20bd authored over 7 years ago
Merge pull request #371 from sdroege/generate-functions

Generate functions

b010d34e1975be5c9b10a62d57fb19fdb42eb49b authored over 7 years ago
Update README.md

8ed6d6be7add37c197d769381644258ca8eaf063 authored over 7 years ago
Remove "glib" import in clean_glib() too

266525a8cc9db6c1396abceff5e8d8e6d6b6c16a authored over 7 years ago
Correctly qualify fundamental types inside the glib crate

I.e. without the glib:: prefix.

3ba88ca9c0ecb02dd7ba0df637e9b7c38f64e34c authored over 7 years ago
Add std::mem import always for Fundamental/Bitfield/Enum out parameters

Not only if the caller does not allocate.

2030cc935a591ef00fd9f14102569d1580552ae2 authored over 7 years ago
Generate global functions if $NAMESPACE.* is to be generated

https://github.com/gtk-rs/gir/issues/295

73162c7c65f6383d70443f9eca10fe1ac61eedc0 authored over 7 years ago
Analyze and store global functions

d9bc7d3eb135a1111932da37bdb2618de03db098 authored over 7 years ago
Remove condition that is always true in alias code generator

a7caa3a875ac9ae2b16df5d87e90cf6d12991339 authored over 7 years ago
Merge pull request #369 from EPashkin/trait_readme_update

Update trait config description

81e3f51670257ab8d15006374776735f9e17a612 authored over 7 years ago
Update trait config description

3423badd1bc0314f197777184804c3c5999bd76b authored over 7 years ago
Merge pull request #364 from sdroege/force-trait-default

Generate *Ext traits by default and allow disabling them instead

8343e00abe2d211c00f0b053a79cdf3c30b21fa9 authored over 7 years ago
Refactor known-subtypes check into its own function

b4f8613def72d88f20d0ae89e3b63bddb75953dc authored over 7 years ago
Generate trait impl function call generically in one place

Instead of having the same code with minor differences in multiple
places.

7a3a01e126a92e57d926f2652315e2e3c20497e5 authored over 7 years ago
Log an error if the user requests no trait to be generated but there are subtypes in this crate

It's unlikely that no trait generation is wanted in that case.

9e9b056cdbe9d00906aa6a7133b32c7b2ecda4c3 authored over 7 years ago
Correctly generate imports based on whether a trait is generated and other conditions

As a side effect, only calculate once in the analysis if a trait is to
be generated and store th...

79ac9fe3b8530dcd74de3f3de6830005364318b6 authored over 7 years ago
Merge pull request #365 from sdroege/aliases

Add support for generating alias types

43a569c7bf6d77ec5d6e681e143702551693b7d7 authored over 7 years ago
Call special functions directly for the Ext trait if trait is generated

Otherwise there can be ambiguities if the struct implements other traits
with the same function ...

f14547a3b282a15b733143159a6256510d40b727 authored over 7 years ago
Only generate Ext trait if there are methods, properties, child properties or signals

Otherwise the trait will be completely empty, which is not very useful.

13a7654495e1bad158dcaca62b2b97172658a180 authored over 7 years ago
Rename has_children to generate_trait

We can't globally know if some type has subtypes/children, however what
we want to actually know...

87387287b5444b5589b07616c3bdc7ff068f6c9d authored over 7 years ago
Generate *Ext traits by default and allow disabling them instead

Reason for this is that the general case is that subclasses of any
GObject are allowed, and in y...

abdf58b5ab69839a14c9c5c423cf89b6378aa749 authored over 7 years ago
Add support for generating alias types

These come without any conversion traits implemented as they should be
directly compatible with ...

5693b427592ccf3f930a9d9b674cf268b66537ac authored over 7 years ago
Merge pull request #366 from sdroege/explicit-object

Fully qualify the glib::object::Object for the IsA<_> constraints

647769230fd2e10bb41887d7771aa2641d14810c authored over 7 years ago
Fully qualify the glib::object::Object for the IsA<_> constraints

In crates like gtk or gstreamer, which have their own GtkObject and
GstObject, this otherwise wi...

fcb37f20ef4bbcca0c2d18c7b10774da1eba7552 authored over 7 years ago