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

Merge pull request #1014 from fengalin/doc-aliases

Doc aliases for C & renamed functions

974c5bcf82ebeb3984563fdc97008a52b2e01df0 authored about 4 years ago
add doc aliases for glib & renamed func

0e501e399a016a5c278d26289e79091c06fdad54 authored about 4 years ago
Make calls to from_glib unsafe

c7052b1cefc5f95226bec9efa8d42d0bb3b39fbf authored about 4 years ago
Merge pull request #1015 from sdroege/improved-final-type-heuristic

Improve final type heuristic to also check for unknown instance structs

3918b7c46446afed50b7712bd104be9d34379ef2 authored about 4 years ago
Merge pull request #991 from MarijnS95/enum-functions

Generate `impl` blocks for associated enum functions

1c1a8d701cf372ed673ca609bd176a75848e75aa authored about 4 years ago
Merge pull request #1017 from sdroege/cargo-warning

Use `cargo:warning` instead of `eprintln!` for printing warnings

5e2f7bd96c000199c0434a42f4c36c4d3c36c39f authored about 4 years ago
Use `cargo:warning` instead of `eprintln!` for printing warnings

The latter just disappears instead of being printed.

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

5740e32b39232ca98d590f4ccf675b9f50167e42 authored about 4 years ago
Cargo update

2915bde468de0785bc2b650444f50c5c56a40e31 authored about 4 years ago
Give more string-returning functions on flags/enums a static lifetime

5b32e695f97e498a9a3c4c01cb3009ed4b10f890 authored about 4 years ago
Separate special functions from traits

18c12a519119d9de234b8ee8c0d8f589bad243e8 authored about 4 years ago
special_functions: Only override to_string nullability if not trusted

bf7dd099e29774687b0636491b9bae0c3d58683b authored about 4 years ago
special_functions: Add version condition to imports as well

Complements: 5ce31f2 ("codegen: Add version condition on special function traits")

a1cfe6515cc82b566f23772fa86d8b81d8c217c6 authored about 4 years ago
enums: Do not inherit InfoBase to get rid of unused imports

37366a2950dbdb9ea9ccb1e298436dae612a0220 authored about 4 years ago
codegen: Don't emit Rust Display impl when C function is available

When get_name or to_string is available and adheres to the right
conditions a Display impl lever...

68760c0b70f4034654853b6a1adccb131cdf824e authored about 4 years ago
codegen/flags: Add missing display trait generation

Analysis was copied from enums which adds an std::fmt when
generate_display_trait is true, but t...

518d2772b262704cd6f0307d3879ad59ea377a55 authored about 4 years ago
Copypaste enum analysis and function generation to bitfield

e549975b156139e67b8325e9e74e76ef11ff8f9f authored about 4 years ago
analysis: Move enum discovery out of generic analyze() function

6a43595097297e09fdc9a680f7edbaf579c75065 authored about 4 years ago
enums: Generate special to_str for static functions

c3e827f83aedea77c6f950f9c32875bc1f5cf423 authored about 4 years ago
enums: Move rejection and glib imports from codegen to analysis

This not only cleans up unnecessary mutable variables in the codegen
loop and a cloned Imports i...

50cee9e04e3b1681beefe37abb47032816120742 authored about 4 years ago
codegen/enums: Add missing trait_impls::generate call

This function is responsible for generating a Display impl, and caused
unused std::fmt import pr...

70eab37b826d47d5bdce7be70f4b10bd8d5f1c82 authored about 4 years ago
codegen: Add version condition on special function traits

71232805c4735d0cd24949e44fac2b8e06aec4a8 authored about 4 years ago
analysis/enums: Treat first function parameter as instance

3023445e0600620e7a82ffba74a57c256d4556e4 authored about 4 years ago
imports: Add support for multiple, lazily added declared symbols

This is used in enum function generation where all enum types
asssociated with a given crate are...

6e89f569bf7fde2319be1e58705bcd765488e0d3 authored about 4 years ago
enum: all imports should go to one Imports as it's one file

9bc5f6e9687256f41dbaeda3630f6d15e6c5474d authored about 4 years ago
Generate associated functions for enums

ef8c22be36fe2fa55dec1939a269b8d15f34c2fd authored about 4 years ago
Only generate enum functions if >=1 function

841582f7c03277a5d3d350b177d6b50634cf7979 authored about 4 years ago
Remove unnecessary main_sys_crate_name imports

`crate::ffi`, which these calls resolve to are ignored in
Imports::common_checks, no need to pas...

354c580230785e73e9658ad35f21e538271961b4 authored about 4 years ago
special_functions: Perform argument and ret validation on to_string

18d4a5468dbf21c7e1c75bb6e572c1ab6717d0bf authored about 4 years ago
Fix clippy::unnecessary_wraps

a63936437a567b6b26a0b0c347f179508dcca09f authored about 4 years ago
codegen/parameter: Do not pass ByRef::None as reference

0f554d7d0d95f78fffc267075836f957b6f31bd4 authored about 4 years ago
env: Remove unnecessary `if` from main_sys_crate_name

This function always returns the value from sys_crate_name.

e54e73f8974ec6a37fde6cc74a247e00096543c7 authored about 4 years ago
special_functions: Rename ToString after the trait it impls: Display

68e4c73cf79cb279a5d03695739d2d0fd6c26b0b authored about 4 years ago
Fix clippy::search_is_some

bfb0a2d016ebe0cb15c32c5f1cc0d3298c5b03bb authored about 4 years ago
Improve final type heuristic to also check for unknown instance structs

These always show up in the .gir file but for final types there wouldn't
be any fields inside it...

cf079be55ad0798e24f398c501bfdb06658138f0 authored about 4 years ago
Merge pull request #1001 from bilelmoussaoui/bilelmoussaoui/less-verbose

don't be verbose on missing c:type on internal fields

cda8f542e1860006bb149c4cf9922eb375dad240 authored about 4 years ago
Merge pull request #1011 from MarijnS95/system-deps-unversioned-name

cargo_toml: Do not overwrite library name for unversioned system-deps

cd1785739c88f31e07ee391271dfa0ded61c6d19 authored about 4 years ago
cargo_toml: Do not overwrite library name for unversioned system-deps

See: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/565#note_709394

In ...

67c2d9711aae104d5a0a4bbdf8cd393f5a5f1956 authored about 4 years ago
Merge pull request #1010 from gtk-rs/revert-1005-switch-to-doc

Revert "Switch to doc cfg instead of feature dox"

e941700f720b09ceb98d37369275ca292c34d650 authored about 4 years ago
Revert "Switch to doc cfg instead of feature dox"

656652e58827e374312774d672d8c48bc851230f authored about 4 years ago
Merge pull request #1006 from BrainBlasted/glib-value-fix

codegen: Explicitly use glib::Value instead of importing

918f87cafa876b0ce3b593f98719763295f6c22b authored about 4 years ago
codegen: Explicitly use glib::Value instead of importing

Fixes an issue where glib::Value could conflict with other
things named "Value"

6864c3f4ede3151444892ace7d270f4a49d47a6a authored about 4 years ago
Merge pull request #1008 from MarijnS95/write_str

Use write_str instead of write_fmt when no formatting is needed

9a2e43b6f30f7c86e6993bfd6bdaf60d8b4448c3 authored about 4 years ago
Merge pull request #1007 from MarijnS95/traits-version-condition

codegen: Add version condition on special function traits

0ed0b79934960f7d77c5c4f063c61d655fbd1cfb authored about 4 years ago
Use write_str instead of write_fmt when no formatting is needed

Write_fmt (what write! expands to) needs to be set up with an
std::fmt::Arguments object that is...

13121c52e5ad41a884fb2411275766ba652c97e6 authored about 4 years ago
codegen: Add version condition on special function traits

5ce31f2d15633bb45a194f78b188e367b82a0783 authored about 4 years ago
Merge pull request #1005 from GuillaumeGomez/switch-to-doc

Switch to doc cfg instead of feature dox

b16d610330e6313f9ae00ec48632910630ea6876 authored about 4 years ago
Switch to doc cfg instead of feature dox

a744f1dd8730253e60b471e9c89c7c37cd073045 authored about 4 years ago
generator: Autoformat and normalize quotation with `black`

af0ae9d71c69831b069d2b1d48db826a7c947832 authored about 4 years ago
Remove python2 code

5739c3f3f106c5d895b7fe69671d3871309edeb9 authored about 4 years ago
Remove useless check

0b79fd0f08b0a2b4abb4700097127f33a45fcea9 authored about 4 years ago
Merge branch 'master' into generator

e88f4b7e369d23cb0e24dc19dd03f2d8f4aa62c1 authored about 4 years ago
Merge pull request #1004 from GuillaumeGomez/2018-tests

Add 2018 edition to tests

c653882f21a43e99bf0cede3d36a10161c13a287 authored about 4 years ago
Fix generator options

3134a21c7b472477b8af48bb4198bfe1afc4a39b authored about 4 years ago
Improve naming

18a03923de8b8991cdf424fa7c11cea491c48bdf authored about 4 years ago
Add 2018 edition to tests

3df9091c6ae4f35a45636e9032f82cb735aba3d4 authored about 4 years ago
Merge pull request #1003 from fengalin/translate-option-result

config/members: add manual to wanted check

12803402ff31a2d82a272dc910d1ab6d6978cee9 authored about 4 years ago
config/members: add manual to wanted check

da6c629bc6f6ba84f0a4c394401cd0db89d1f074 authored about 4 years ago
generator: Use pathlibs rglob to find all Gir*.toml

b1345c19e988ba79ded89ecd7779d060b46abfbf authored about 4 years ago
generator: Allow passing paths to files and directories

8bbdea39c9b08caeec8b39058eb2615f21899ec0 authored about 4 years ago
generator: Convert Popen to run

3a366fb8553f203c17ced8c6298b4a9c86ac282b authored about 4 years ago
generator: Don't guess sys crate based on level but name

Now that paths can be specified on the commandline the depth level does
not need to represent sy...

6b31dede5e5b52e074ad19c6d0e8144d029d5b78 authored about 4 years ago
generator: Immediately check for valid file/directory in argparse

Argparse conveniently prints the name of the argument that failed
parsing.

ecfbf13b4a1240b360789c500e76ed5389030b6d authored about 4 years ago
generator: Convert os.path handling to pathlib, initialized in argparse

509c54db7bf2e20627652d2d1042dc23aedbe2bb authored about 4 years ago
generator: Rename --gir-directory to --gir-files

gir-directory mentally conflicts with the directory for `gir`, rather
than the specifically-name...

12eb1511f1857aec5526ce5275e4e196ea521151 authored about 4 years ago
generator: Use requested path in def_check_submodule

b83289b358113abc9b9da045ff9d68b9511911bc authored about 4 years ago
generator: Fix "`path` is not defined" warning

e242dd991b99c3d18c83a86f5c29063517015ece authored about 4 years ago
[generator.py] Use argparse and option for paths

80d148df6b6180c093c7467207e5f7cd2bb65f51 authored about 4 years ago
Merge pull request #996 from GuillaumeGomez/switch-2018

Switch 2018

694b4b822fcb91b9e9d86c8b96d90f5c923a4bc4 authored about 4 years ago
Even more imports removal

7f8570747a40f663fd284866501ad3fdb41e3d05 authored about 4 years ago
Remove all unnecessary remaining imports

740144aefb63990c5eb9943fdcd19a1068c36253 authored about 4 years ago
Remove gobject_ffi import everywhere

b0a4e961bd3b2ff205a340e46301db0fde85a0b9 authored about 4 years ago
Add missing glib prefix for macros

d4fccf38c47084ee47d43dd96bb0c6d9d58e5ff2 authored about 4 years ago
don't be verbose on missing c:type on internal fields

fixes #1000

dea1204eb60c5e92c411e5eea5b3284b1f2cc639 authored about 4 years ago
More code improvements

663f2508244bfb0f900222c45923b0b39f557ac9 authored about 4 years ago
Add more helper functions for gio and gtk

177732362f47b8a0843710f8ab0aa6e1f59ad274 authored about 4 years ago
Remove unneeded import generations

d4b91f231191d65d8ec76804a8ab865d06934c54 authored about 4 years ago
Create a "is_gstring" helper function

3f28ad3e61643de9f881eb8cc78e622a90ce400e authored about 4 years ago
Unify code by putting the "glib::" inside a function

d4b2c47e405b5e4135f21962dd1fe72194b522a1 authored about 4 years ago
Fix clippy warnings

6ba71c648a7339b199b03417f4562ae3649984e8 authored about 4 years ago
Switch to 2018 edition code generation

d6e23d7a99c8266717c8d154515d075701d4d203 authored about 4 years ago
Add async, await, dyn and try as new 2018 edition keywords

b92efdf14456483dfc09bc7159eefd18890956d7 authored about 4 years ago
Merge pull request #995 from sdroege/remove-setvalueoptional-trait-bound

This is not needed any longer

062b3d649ccc09c17564d6bc429dc682829d71f0 authored about 4 years ago
This is not needed any longer

See https://github.com/gtk-rs/gtk-rs/pull/156

80b31bd8c25609f93fd97d834ee3df2a4b7327ab authored about 4 years ago
Merge pull request #994 from MarijnS95/doc_cfg

codegen/enum: Do not generate doc(cfg) on match arms

1ae96896fceb120eddfb2e4fedc97eb7b0454d73 authored about 4 years ago
codegen/object: Do not generate doc(cfg()) on expressions

Solves warnings of the following kind in gtk-rs:

warning: unused doc comment
--> gtk...

c9c638f946bb90d4aca952d3a7287b7d1e42e2ab authored about 4 years ago
codegen/enum: Do not generate doc(cfg) on match arms

warning: unused doc comment
--> gstreamer/src/auto/enums.rs:761:41
|
761 | ...

a0a30960d746a325008e4a91a40e2cabc2ebd539 authored about 4 years ago
codegen/general: Simplify version by reusing cfg_condition_string

11df66889a92fce31824f080b6441b9bdfa16bb9 authored about 4 years ago
version: Simplify to_cfg by reusing to_feature

96e719124384aee3989f61c18403cec38f9ad222 authored about 4 years ago
Also regen gobject if needed

fb6a05f8c72dd8f65899698f0528e13947f39a3e authored about 4 years ago
Merge pull request #992 from MarijnS95/simplification-refactor

Simplify `match` blocks into `?` operator using SSR

9f4a439da6d7d6066346807fd882b5a8942d9558 authored about 4 years ago
Cargo update

1751431fd7afd1142313cefbfc717bb9a0f13877 authored about 4 years ago
Minor cleanups and simplifications

126c6aebc3edc41915583b44177ea80c93198731 authored about 4 years ago
Simplify Err => return Err() into .map_err()?

Using Rust-analyzer SSR:

match $a {Ok($b) => $c, Err($e) => return Err($d)} ==>> $a.map_err...

560b15f4ed63dd89e8b39b4dd6a577a8e1b72e47 authored about 4 years ago
Simplify match{None => return Err($msg)} into .ok_or($msg)?

Using Rust-analyzer SSR:

match $a {Some($b) => $c, None => return Err($d)} ==>> $a.ok_or($d...

4aafe6fed044596cd7e98f451faa03002d675dd7 authored about 4 years ago
Replace match{None => return None} with ? operator using SSR

Using Rust-analyzer SSR with:

match $a {Some($b) => $c, None => return None} ==>> $a?

14d9ca175ae2a39f4af996a7446ef92dab1579e1 authored about 4 years ago
Simplify return Err() cases with map_err() and ? operator

60b4a4a04c7564c322e108d1f3f2379e004c271d authored about 4 years ago
trait_impls: Use f.write_str in impl ToString

3eaed54df37e8c6a6b1738ad4ebde064813dc15a authored about 4 years ago
Fix clippy::or_fun_call on automatically refactored code

cf161307398067f86f17f2b7d68fcdf471b0a314 authored about 4 years ago
Replace "{}", "..." formatting with direct string literal

700c2aa34c9ee4bea089838b38900894f5075a71 authored about 4 years ago
main: Don't override RUST_LOG=gir=warn with libgir=warn but combine them

66fc1dcfc81582220df20f9797ee506f79937253 authored about 4 years ago