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 #1128 from MarijnS95/dont-simplify-intradoc-links

[RFC] codegen/doc: Simplify links by allowing `Self::` and `crate::` prefix

612ed8942537fddb59095411b09f3858d8f53bb9 authored over 3 years ago
codegen/doc: Simplify links by allowing `Self::` and `crate::` prefix

A lot of effort was put in to hide these from the final documentation,
by using `[]()` kind of l...

996f3b15296d6b4c5fd25458306467d882e1d0e8 authored over 3 years ago
Merge pull request #1127 from MarijnS95/intradoc-constant-links-crate-prefix

codegen: Emit `crate::` for all global `%` constants except from prelude

5c1645f203f73a343dc2d03569ae7250e7f09512 authored over 3 years ago
Merge pull request #1119 from MarijnS95/intradoc-fn-links-prelude

doc: Link trait functions in `prelude`

5fb331f5938001da85f3f4fc78e4383bae029148 authored over 3 years ago
codegen: Emit `crate::` for all global `%` constants except from prelude

Rust prelude symbols - `true`, `false` and `None` - are explicitly added
to the list of symbols....

52a79988204b4a39e10b9ec22729e7bc9904fcef authored over 3 years ago
generator: Strip docs before embedding new ones

Otherwise documentation is repeatedly added on subsequent runs, and
rustdoc-stripper-ignore-next...

d95cde766978fa8062247d6dceac17cfb828268b authored over 3 years ago
doc: Locally override class symbol with trait name and prelude

Both the symbol name and module it resides in need to be updated for the
resulting link to be va...

39adc2fd52351b33a38432fe40690412a02400a1 authored over 3 years ago
doc: Link trait functions in prelude

We recently removed all `Ext` and `ExtManual` traits from crate roots in
favour of consistently ...

c80f24e2b4887331200fc89e31284265e1c23f7d authored over 3 years ago
Merge pull request #1126 from fengalin/constructor-config

config/function: allow forcing 'constructor' annotation

50d7e2aca657662b63d2112a7fe78d860fe1f377 authored over 3 years ago
config/function: allow forcing 'constructor' annotation

23b4b3a2e4f500402ca5d98b1417d85fa052d9f2 authored over 3 years ago
Merge pull request #1092 from fengalin/try_from_glib-handling

TryFromGlib support

e2661d84a7fed3dd3ac17f4de087ef0ea3971c14 authored over 3 years ago
README: add conversion_type Option & Result entries

b8b48552fbdd79789f0cc2bbddfd667a44a48066 authored over 3 years ago
Support types implementing try_from_glib

Types implementing `TryFromGlib` can now be configured to define
how code generation should hand...

3de149ebbbfaa72b498c3dc9dca0ba6aded2887d authored over 3 years ago
Apply analyzer suggestions regarding filter_map

d6493cce79dd2d33abb43afb1961d5c86e226a98 authored over 3 years ago
Rework module rust_type

Most functions in the `rust_type` modules are designed to pass
a subset of the different argumen...

c43d9a5c8314631ccf7350e5750d7df96e49c625 authored over 3 years ago
Use impl Into for ConversionTypes Result & Option in params

This allows defining functions such as:

```rust
fn update_flow(&self, ret: Into<FlowReturn>);
`...

08bd9895e1126c1dbeccc83a29aaa2f2a51671b1 authored over 3 years ago
Merge pull request #1116 from fengalin/rename-doc-aliases

Add rename doc aliases

b5ff6f8dd8713c3a8d4864f2f975374f0612976b authored over 3 years ago
Merge pull request #1124 from MarijnS95/fix-self-in-enum-display

codegen/enums: Keep emitting name of `Self` in string literals

a5d125fe5ba5a6c9a550176b69e92e60603a309b authored over 3 years ago
Merge pull request #1125 from bilelmoussaoui/patch-2

codegen: add missing } for build pattern

52aa5891b5aed52e24a267f9bd520f08a36ad617 authored over 3 years ago
codegen: remove the double quote

oh another issue from my latest PR

c93c8905b572bcd8e1551625a82d58b21ad2c5a3 authored over 3 years ago
codegen: add missing } for build pattern

75fa993e9d266fff95e01f47e65daa22a7e485e6 authored over 3 years ago
codegen/enums: Keep emitting name of `Self` in string literals

Commit 3f36d06 ("Fix some clippy::use_self warnings in generated code")
did away with repeating ...

0b2ab39a2e19619065fe6856be9bf920b2bca663 authored over 3 years ago
Merge pull request #1123 from bilelmoussaoui/patch-2

codegen: only use ret if a builder_postprocess is set

d86778e21879a502c2e1c4b9468f469ec31b36bc authored over 3 years ago
codegen: only use ret if a builder_postprocess is set

this allows us to enable clippy::let_and_return lint

f073a172b3154db7b7e91d1c336985230dcedb31 authored over 3 years ago
Merge pull request #1121 from MarijnS95/dry

Fix some clippy::use_self warnings in generated code

05168259538c9d78d2cf41016481426a597c0342 authored over 3 years ago
Fix some clippy::use_self warnings in generated code

Some low-hanging fruit to shorten generated code and making it more
readable at the same time.

3f36d06312ffe61017b52fec6ee0643516d3a41b authored over 3 years ago
Merge pull request #1120 from fengalin/alias-out_param-imports

out_param: follow aliases for imports

c2fbdbd1df417aabde82655f7277d8e29dc58307 authored over 3 years ago
out_param: follow aliases for imports

d2432851251d436eed4256548f942f607dc2956c authored over 3 years ago
Merge pull request #1093 from bilelmoussaoui/bilelmoussaoui/copy-types

codegen: take Self for Copy types

1a0921b553383ab0e5a34bdab15ebc8844ec3b46 authored over 3 years ago
codegen: rename ToGlib trait to IntoGlib

See https://github.com/gtk-rs/gtk-rs/pull/427#issuecomment-817218736 for details

097ff2af2e189f7099e2b4fe31fa85c9db9ca2dd authored over 3 years ago
codegen: add child prop doc-aliases

5de231eedb96479e60e1c3638118c570a858b8e6 authored over 3 years ago
codegen: use property name aliases...

... instead of the function names.

f72f7479b86358417e367075645ecde7c399eb4b authored over 3 years ago
codegen: function: add doc-alias when target name...

... is different than in the gir-file name. This includes:

* Name mangling.
* Rust standards en...

f6d2bf5541e78b6d3be6e2442afc05aa59b7eb4a authored over 3 years ago
property: remove property in connect_*_notify signal

302a1037641b1b97ef87ad6df5563b16cc010401 authored over 3 years ago
codegen: take Self for Copy types

affb8b6268faf4f88a37febb7fd850e9276c304a authored over 3 years ago
Merge pull request #1118 from MarijnS95/rerun-on-hash-change

build: Rerun if git hash changed

194b530e1c58d13876aa115ff23784221741013e authored over 3 years ago
build: Rerun if git hash changed

`gir`'s hash in version files gets out of sync quite frequently with the
hash of the submodule. ...

6bb32cac4ae312cf763c9e7f41f3091043c1ef13 authored over 3 years ago
Merge pull request #1117 from MarijnS95/unused-tovalue-for-property-getters

analysis/properties: Remove unused ToValue import for property getters

4144cf953ff0424a9c10e505cdfd5f4ee5eee268 authored over 3 years ago
analysis/properties: Remove unused ToValue import for property getters

Following [1] an unnecessary `glib::ToValue` import showed up in auto
code, which does not appea...

3698e6a3258687800ba3414da42be24d511bda4f authored over 3 years ago
Merge pull request #1085 from MarijnS95/intra-doc-for-c-types

[3/3] Emit intra-doc-links for symbol references

7a92c16ac4381e94e6d3b07ae5a6fd9a99866e00 authored over 3 years ago
Merge pull request #1086 from MarijnS95/doc-features-use-doc_cfg

codegen/doc: Omit "Feature: `vXXX`" text in favour of doc_cfg

deec94b93405cd96405a65e72f76921899703d48 authored over 3 years ago
Merge pull request #1087 from MarijnS95/deprecated-since

codegen/general: Emit "Since vXXX" in #[deprecated] attributes

1959d1ed417f79f77627fa1293475461972ee93d authored over 3 years ago
Merge pull request #1111 from bilelmoussaoui/patch-1

docs: manual traits are in prelude only

4ee43f36d2a0b6c9ce4c38d4d3f89e3682946945 authored over 3 years ago
Merge pull request #1113 from MarijnS95/no-traits-in-crate-root

codegen/object: Only re-export traits from `traits`/`prelude` module

2d659a14b5e48562af1eaef07e70abfba0102814 authored over 3 years ago
Merge pull request #1108 from MarijnS95/doc-trait-rename

doc: Always consider `trait_name` from `Gir.toml` in implementation docs

1f1e3e9d019f2a78c459c36243d669948f5c78cf authored over 3 years ago
Merge pull request #1114 from MarijnS95/symlink-gir

ci: Symlink gir directory to ourselves to find generator.py

63f378d08954d0b0627ede7490c40fc2a5917a5f authored over 3 years ago
ci: Symlink gir directory to ourselves to find generator.py

`generator.py` moved into this repository, and gtk-rs (and friends) now
symlink to `gir/generato...

adacd0f26a97b67ee135c03c4ad03146108b9eba authored over 3 years ago
codegen/object: Only re-export traits from `traits`/`prelude` module

Following a discussion in [1] we have decided to remove all trait
exports - both manual and auto...

37998c61780b3212ab070e0de8254bdc282c0919 authored over 3 years ago
codegen: use prelude for auto traits docs as well

f2528905ada0f7c4134ef6f15bb688cb2788c37e authored over 3 years ago
Merge pull request #1100 from sdroege/value-trait-refactoring

Value trait refactoring

a01a90fb9ccd146827a8d1fcdf9766799ad88ab0 authored over 3 years ago
Implement handling of new Value traits

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

c6cacb0cb36c314c9a02126d1ddf3de0e18b1e41 authored over 3 years ago
docs: manual traits are in prelude only

fixes #1110

2a109d1258331a11a630f0e8cd9924f5043e356e authored over 3 years ago
doc: Always consider `trait_name` from `Gir.toml` in implementation docs

Some types have their trait name overridden for clarity, but this is not
always conveyed in the ...

641d7238bd4ff9cbdedd93363297ed056eb1b2a9 authored over 3 years ago
Merge pull request #1097 from MarijnS95/extract-generator

Import generator.py from gtk-rs

a972bd6d8d02cd44992811bd0a73b1da01c3a261 authored over 3 years ago
README: Document usage of `./generator.py`

c423525068d4c46c7e1afa088d87f76e7bd45cc0 authored almost 4 years ago
cargo: Exclude generator.py from the crate

006ec07351ef7bb624172d085f2c18521a69c555 authored almost 4 years ago
Merge branch 'extract-generator' into HEAD

65c4c3f924566c69409ae2ea51cfa7a62f5ceafc authored almost 4 years ago
generator: Convert PosixPath to str for Python 3.7 asyncio

This is fixed in Python 3.8:
https://github.com/python/cpython/commit/744c08a9c75a1a53b7a6521fce...

97c80d07466928cc4c41406efbf36f6e198002f7 authored almost 4 years ago
generator: Embed documentation using rustdoc-stripper after generating

We have decided to get rid of checked-in documentation in favour of
performing generation and em...

2103cbf22de9b5e72e83e800f1d65b1701d927ab authored almost 4 years ago
generator: Convert delayed subprocess communicate() to asyncio

Asyncio is much better suited for spawning complex tasks - in this case
involving process spawni...

2ec4ab342e34da439f9d581bc3fc9ff384d4bba9 authored almost 4 years ago
Merge pull request #1102 from fengalin/get-removal-round-2

Get removal round 2

f2739a95d57d2a25846cafc2bd37233d13317998 authored almost 4 years ago
codegen: use type_ in glib macros

9e7af3e8338f685f43a5406c4a2a97cb5b034e48 authored almost 4 years ago
codegen/child_prop: fix get renames & update fix-getters-rules

* Rename child properties getters.
* Add a config to force a specific name for child properties ...

3d17b67fcc731fa1d806c15f6b4863a61e4b8432 authored almost 4 years ago
analysis: be less conservative when selecting getters

1d11fb7ffbaaf8a16dc4cc856f5a666bc5ff386b authored almost 4 years ago
generator: Don't generate Rust files when generating docs

We want to use the generator in the CI to update docs, for which we
don't want to emit updated R...

062f7d354c9799308f16282bf47662c7cd14ea94 authored almost 4 years ago
Merge pull request #1101 from MarijnS95/git-hash-only-for-submodules

config,git: Omit gir directory hash and URL if not a submodule

f0d3e902e6519fad909e1e8ff11642a41c3fa95c authored almost 4 years ago
Merge pull request #1084 from MarijnS95/intra-instead-of-file-link

doc: Use intra-doc-links instead of relative paths to html pages

8dd201f1f5c502e120973d0f55e1c5d24fb2766d authored almost 4 years ago
Merge pull request #1103 from MarijnS95/record-missing-docs

analysis/record: Do not bail on missing memory functions

9cd682ae0e701572c49677524a19bd0c03f1bf73 authored almost 4 years ago
Merge pull request #1098 from fengalin/doc-fix-renamed-fn

Fix renamed functions not being documented

bcadc6e326bdb04fdb24efa46d0f3ae409a15146 authored almost 4 years ago
analysis/record: Do not bail on missing memory functions

This constraint is already enforced with a `panic!` during codegen,
effectively disallowing Gir....

431d38f9b28311e1d2d13dc51833ab07d663bc0e authored almost 4 years ago
doc/format: Emit intra-doc-links for symbol references

As final step in the intra-doc link conversion this enables generating
links for `#` and `%` ref...

24dc5c2a99d9f4ea46e6400f4fb8c3701ae79917 authored almost 4 years ago
codegen/doc: Wrap virtual functions properly and use intra-doc-links

Virtual functions ar generally referred to as #Type.vfunc() which would
get treated as `Type.vfu...

e242609a735a773cd41f19c4f86ffca7952f980a authored almost 4 years ago
doc: Use intra-doc-links instead of relative paths to html pages

Using intra-doc-links saves quite a bit of code in gir, looks cleaner in
the markdown files and ...

70c312bc8486c9e47a400f9591f5aa6e8269c83f authored almost 4 years ago
codegen/doc: Add `()` to function symbols

This already exists in the C docs and is clearer to the reader that a
function is referenced and...

515140794b470e1dbe2459e1c3d8d27978e32a50 authored almost 4 years ago
codegen/doc: Emit intra-doc links for function references

bd65bf91a0ae315aaa5c681840b68630e7233bfe authored almost 4 years ago
config,git: Omit gir directory hash and URL if not a submodule

Intially plaguing GStreamer-rs this code grabs the git hash from the
root repository if the spec...

958e1b7c613e543e3d30cc69f1d1ff957f2ce8ac authored almost 4 years ago
Fix renamed functions not being documented

3a9adda888c3a42498645111c4d25d2748b67462 authored almost 4 years ago
generator: Simplify error handling

Similar to Rusts return and try, just use exceptions and pretty-print
them at the highest level ...

af94b64fe7f4fbdebcb622b36cefe3e676a48f4f authored almost 4 years ago
generator: Run all gir processes in parallel

Since the addition of doc regeneration - which also spawns a gir process
for every non-sys crate...

1d7e839f7cb65d90e8e10eaa87773b682372ad4d authored almost 4 years ago
generator: Add --with-docs to run `gir -m doc` for non-sys crates

Convenience method to emit documentation for all crates with a
`Gir.toml` file. Optionally take...

5547e5ad4ae15162e4bb75b44a6597269f682b50 authored almost 4 years ago
Merge pull request #1021 from fengalin/remove-get_-for-getters

Remove get for getters

3c6ebf46353f5356f5ca7591476cedb5e8da8542 authored almost 4 years ago
codegen: trait & special fn use rename when applicable

This is required for enum with get functions since they consume self
and are not considered as g...

cf4bad8ad10788dc33d685da11fdcaad9d1cc097 authored almost 4 years ago
Use fix-getters-rules from crates.io

adb7f2dc4c0beb0cd4809eb9a3555b8a4a012623 authored almost 4 years ago
Upgrade fix-getters for keywords substitutions

4384773b3def43311991166f93c7091ebae05f70 authored almost 4 years ago
Additional pattern for constructors elision

8a0d91cfaaf3cf8021010225ea0ae5d919c6f481 authored almost 4 years ago
getters & get_property_s auto-rename

- Rename the get functions when applicable.
- Rename the get_property function when applicable.

8ddae7fe407c29bd9e4fef500ddf5c3aadadf536 authored almost 4 years ago
Merge pull request #1090 from MarijnS95/normalize-gitconfig-search-path

config: Normalize submodule path before looking it up in .gitmodules

d3b324d9d1ed2e5a1866052506c0a6ff4207cc7c authored almost 4 years ago
config: Normalize submodule path before looking it up in .gitmodules

`normalize_path` was introduced in [1] for pretty-printing relative
paths with `../` ParentDir c...

e659b62581162332e9571ea433d371725488383f authored almost 4 years ago
Merge pull request #1088 from MarijnS95/intra-doc-for-self

[1/3] Emit intra-doc links for self (`@`) references

5421eea6c1add5e832a9e53cb382a79c67151034 authored almost 4 years ago
Merge pull request #1068 from MarijnS95/remote-git-url

git: Read remote url from upstream or origin

28780fde939e93a45f4a254ba812a0df50a910f6 authored almost 4 years ago
codegen/doc: Only emit Self:: for @-references if parent type matches

`@` is used in few invalid places in the (GStreamer) docs where `#`
should have been used. Inst...

1c2e42221524b07c5509c6c64bd3a6acff845c38 authored almost 4 years ago
codegen/doc: Generate intra-doc-links for Self:: (`@`) references

This is using an explicit reference to `Self::` so that there is no
confusion over what to refer...

9f5bdd89d67f287f3dcfcb2bfb23dcd762c07956 authored almost 4 years ago
codegen/doc: Clean up regexes and extract reference type symbol

In the near future we'll want to generate intra-doc-links based on the
reference type in the doc...

ddba065b084ddadcfd7af328ebb1594e464a8ec5 authored almost 4 years ago
symbols: Replace gobject:: with glib::object:: in full_rust_name

`full_rust_name` is only used in two places; one of thich -
`replace_c_types` - does not deal wi...

f1ec00e4fa8e0e96c18d8573ce84ef762b6defed authored almost 4 years ago
codegen/object: Emit missing `#[deprecated]` mention in mod.rs

Neither the module nor struct (wrapped inside `glib::wrapper`) had a
deprecation warning previou...

74eb5e4a86bab8a51af272d560ee6ab528acc5ae authored almost 4 years ago
codegen/general: Emit "Since vXXX" in #[deprecated] attributes

48ccfa9b7fd76c48c60b858930a780cf9d04c600 authored almost 4 years ago
codegen/doc: Omit "Feature: `vXXX`" text in favour of doc_cfg

Nowadays we have the `doc_cfg` feature rendering clean, consistent and
obvious markers for featu...

744f2c1ae53d918c4e6f757a5eeeaa275a637920 authored almost 4 years ago
git: Read remote url from upstream or origin

With the new separate gir directories it is useful to know what repo
(url) a git hash came from,...

e87c5d4dac3f1789ca9d847817d65e28d87b0bf7 authored almost 4 years ago
git: Read URL for submodules from .gitmodules

As an improvement over the previous commit, which deals with custom
setups where contributors an...

61c6784b427683d92e3e54dfa6970e1ca491448b authored almost 4 years ago
git: Generalize path handling into function

02644f02f75d3992838bf4061ef7b17412f5a146 authored almost 4 years ago