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

Use `Self::` links instead of full path

Shorter and easier to read while debugging

8b5d67259b2c8ba1d4adca83c1b7837470cf829f authored over 3 years ago
docs: handle Class methods

currently, we can't look correctly for virtual functions/class methods
as they are manually impl...

62b4a0036bd5e8a5fc3a6dc067ab2d07e35d1cd2 authored over 3 years ago
fixup: Deduplicate method and function parsing

cd477e2f39a452a11c62652dc93b2ddca45c9a6f authored over 3 years ago
docs: mark functions as part of object not a trait

dc8cb260b85886b00ffd134707e72b6f9ef881a2 authored over 3 years ago
docs: try to find enums/flags/consts by parsing %NAME

this approaches uses analysis so we are sure the item do exists

4a95a906496a6cafa07b948b053827cd94a34db0 authored over 3 years ago
docs: handle %TRUE/%FALSE/%NULL

7c952ee283c697bdb8be888569208b892190ad53 authored over 3 years ago
symbols: stop using glib::object::ObjectExt

ObjectExt is in glib's prelude

61e4d2f2f8873efbbc61fa5225c083953f26d42c authored over 3 years ago
docs: handle constructor functions & ensure we don't pick crate::prelude::GtkWindowExt

a4658797c7e1ec1af623eafde87ef18a565ab2ec authored over 3 years ago
docs: re-add @param parsing back

19111162b923ff40334d1b297b098d2ee139c053 authored over 3 years ago
Make intradoc links look more like what they were before

e6218a1775335a1df9da642023466ee55f96b4f5 authored over 3 years ago
library: add status to Enumeration members/Bitfield variants

gstreamer has some ignored enum members which ends up in the docs links
and we need a way to ign...

915ce7d6423ca3a5853e347a1a6250ff8067e34d authored over 3 years ago
docs: use Self instead of type name when possible

instead of passing the current type name, we use the TypeId for that
and now we render Self::som...

567429f425b298844e74d67ffe647bbca1e49b23 authored over 3 years ago
GI docgen fixups (#4)

* fixup: rsplit+next

* fixup: Add back missing () on unresolved function symbols

* fixup: ...

0a0e91ff8a3e4761c296c70d6d08e8860ee9e048 authored over 3 years ago
docs: handle properties/signals when looking for a method

611e5a333b32bc04bae45fdf9bafe12c92b0a39e authored over 3 years ago
docs: try to find struct or types in general starting with #

this also fixes records search

21f8f5c44adc11ca2247e5b3b1a84dec4afd76ad authored over 3 years ago
docs: introduce a helper for functions and move some stuff to analysis

the helper checks whether a function can be used as doc link.
and some stuff that are duplicated...

e7ec5a2db125ef63f374ac4753bbbcd5dfac62a9 authored over 3 years ago
docs/gi-docgen: formatting fixes & use symbol's full_rust_name where possible

5e804e6fe5bfaa61f2a5f9ac22ed2abee17fc0f0 authored over 3 years ago
docs/gi-docgen: use [][] for doc links

ebbd556bf6c09d2f04294c43762347bb182363c5 authored over 3 years ago
codegen/doc: Add back missing backticks for references to missing types

c149662d3bb3c41e19608bd2a1496527f383386f authored over 3 years ago
analysis/symbols: Do not override type symbol with member/variant

This was overriding the `type_id` for enums and bitfields so that they
always resolve to the las...

e7ae6488c71607ac0fd06e94abdbed188f25b0cf authored over 3 years ago
docs: replace @ items after running gi-docgen

because gi-docgen uses @ in it's format, it avoids breaking things before they are replaced by g...

beafba2d0aa76e7f127a650574bdfb0e475dd120 authored over 3 years ago
docs: #Type can be a flag/enum as well

8f342205d2e17df6023825ed368f4d5190255567 authored over 3 years ago
docs: don't generate links for ignored enum members/flags variants

751e07163d1d2ef65b2bfc596732d329c85282cc authored over 3 years ago
docs/gi-docgen: add some logging & make the functions return Option

instead of always returning the symbol name formatted we return an Option
in case we want to cha...

08fc229c7702613094b0671d66b36a818056369f authored over 3 years ago
docs/gi-docgen: fallback to the original type

8f32d383920f6cf337a27be6b449947767eaec71 authored over 3 years ago
docs/gi-docgen: write generic functions for generating docs links

like the functions::Info's doc_link but for specific types
the helpers are here to ensure both l...

9181bc963e0c00f9e0f32628bf5bf8027f5a9a71 authored over 3 years ago
docs: ignore C specific functions

as we don't mark explicitly as ignored on GIR side

6fe4a4cd5f595f2ec6e61a4a569f5ec028524159 authored over 3 years ago
docs: try to find a function before replacing it

with this approach we can only omit links when it makes sense instead of always having one

6523296ef6b90bdd2e81012890fbad6fa6d80dcf authored over 3 years ago
docs: introduce gi_docgen

a parser and replacer for gi-docgen special links to rust ones

0891ae49ae4604027700a9c390bef394eb8c121d authored over 3 years ago
docs: make the gtk/gdk regex catch gsk/pango as well

it's very common to have GskX or PangoX
with this change both will be replaced with their equiva...

dd0a395876999d279176f73ad0582ef6d82dc2f0 authored over 3 years ago
docs: try to find objects/interface/records

ca56a5e87ad4550d3f335f267b86e354e3e0039d authored over 3 years ago
docs/gi-docgen: methods can be part of a record as well

3121452ebd27d32dc7a4a92d4cf12e0209adcf02 authored over 3 years ago
docs: drop crates:: from implements/implementors list

856020d3d5e1f50935624df5569f7f574419868a authored over 3 years ago
docs: allow changing the content between ``

the reasoning behind is we want to be able to replace `GtkButton` with a link to Button
instead ...

ad29927b317c94dc042a980378545edd85af8115 authored over 3 years ago
codgen: pass Env instead of the symbols list

This will be helpful for later so we can use analysis to find a type by it's rust name
or it's k...

ca0c362421385c07cff7eaafc3fd3df0a2bc0657 authored over 3 years ago
Merge pull request #1170 from bilelmoussaoui/patch-2

flags: generate doc aliases

95ea27fa5d7f05f1111f9905c271dd00a863d82d authored over 3 years ago
Merge pull request #1169 from MarijnS95/enum-flag-imports

enums,flags: Do not analyze imports if the type is not generated

ecaa828d5e65ce3752358de3c0d461240d5414cd authored over 3 years ago
flags: generate doc aliases

e529cc54f9a406dfde3cb7e82d7ec61dbdb5f9bd authored over 3 years ago
enums,flags: Do not analyze imports if the type is not generated

Otherwise unused imports show up in the enums/flags files.

Fixes: 68591f1 ("enums,flags: Always...

6c2c8c2a8a10563f3c71a76f1bb072856d0a397d authored over 3 years ago
Merge pull request #1164 from MarijnS95/analyze-manual-enums-and-flags

enums,flags: Always analyze manual types

a2a23a1ece35b3f86d8526d63b32316f40416454 authored over 3 years ago
Merge pull request #1168 from MarijnS95/trait-link-to-type

codegen/doc: Make extension trait docs link back to the type

55c0d96aa4946a7c8fbfbc16929e194422a8bd95 authored over 3 years ago
docs: use renamed function name for records as well (#1167)

42253c3c261e9d2d11bf190e40351fd758856664 authored over 3 years ago
docs: properly look for renamed enum members (#1166)

Otherwise some enum members are not found

c32c0e15d92dfc8f80a2ff908c8d5f034c2ce2d5 authored over 3 years ago
Merge pull request #1165 from bilelmoussaoui/patch-2

docs: filter out final types from implements trait list

c7088514d27f6177487ac14cec7b91b901e2a204 authored over 3 years ago
codegen/doc: Make extension trait docs link back to the type

The name is already there, but it isn't an intradoc-link yet.

ff1a55a975736217c02fc72a9d5f5f7875476a1a authored over 3 years ago
docs: filter out final types from implements trait list

Because such traits don't exists for those types

d9d6173a3832c6f1a6dd1bea50c032f9e43eb072 authored over 3 years ago
enums,flags: Always analyze manual types

Docs generation is going to look at analysis data to know what variants
and functions are availa...

68591f18a6b9670b20dddf96ef512a0ac17cedf0 authored over 3 years ago
config/gobject: Fail on repeated config of the same function name

5bd86f71918b439b5f52871e0c5051f542515156 authored over 3 years ago
analysis/function: Inherit GStatus from owning object

When the surrounding type is ignored or manually implemented the
underlying functions are never ...

8e5961c881f10d582bd8e3e68d16286319d22125 authored over 3 years ago
Merge pull request #1160 from MarijnS95/bounds-refactor

[refactor] Simplify handling of trait bounds and aliases

de679ce5e7c26674ad788084227ec52f03f1df59 authored over 3 years ago
analysis/bounds: Panic if all type parameters are exhausted

Most of the callers were not reading the return value leading to
potentially missed failed type ...

d293401483445a5ba56c1a3790fd60c6e8d481e5 authored over 3 years ago
codegen/bound: Unify all string formatting

ee6666d0ad7d8fe1efd1456769ccc67980bafeab authored over 3 years ago
codegen/trampoline: Always replace first param with `Self`

Regardless of it being a generic type with the first type parameter or
not.

f4ac7c0730ff33e56027798c48cfad606438708e authored over 3 years ago
codegen: Unify Rust "type" generation of RefMode

3c0e6b5e1e8b4031fbd2fcae63a6dea00547cc9f authored over 3 years ago
analysis/bounds: Delete unused `info_for_next_type` member

This member was always set to `false`, and by extension `fn
get_base_alias` always returns `None`.

3e324eff293adde8af12f3471bb12d1467f4e5a4 authored over 3 years ago
codegen/trampoline: Replace `where T: IsA` with direct `<T: IsA>` bound

This simplifies the code (gir and generated results) a fair bit by
placing the trait bound direc...

68055d3e57b08e771968758bf79506a71d88a69a authored over 3 years ago
Merge pull request #1159 from bilelmoussaoui/patch-2

codgen: generate impl T if there are builder properties as well

cf12b297b1bb228610ed1f0c27318f9e491da522 authored over 3 years ago
codgen: generate impl T if there are builder properties as well

Fixes https://github.com/gtk-rs/gtk4-rs/issues/405

95529ba3a66d56df3a1accb468d72b3542de7664 authored over 3 years ago
Merge pull request #1156 from bilelmoussaoui/bilelmoussaoui/generate-builder-method

codgen: generate a builder method for objects with a Builder

88c650eb2f0d906feb4cd7ea46ea699d5cc17472 authored over 3 years ago
codgen: generate a builder method for types with a Builder

fixes #1070

bc10ea9f9d2ac00cbb731170dd434a16d73d0215 authored over 3 years ago
Merge pull request #1155 from bilelmoussaoui/bilelmoussaoui/doc-ignore-global-functions

docs: use doc_ignore_parameters for global functions as well

db99e37be415799cd77667a90800fb8f3da1472b authored over 3 years ago
docs: use doc_ignore_parameters for global functions as well

f1eaf6410e1f3ae2fae8cd283a2ffb96f3ea5947 authored over 3 years ago
Merge pull request #1154 from bilelmoussaoui/patch-2

docs: fix a missing param due to not rebasing #1151

6b5d24f558eddad82a98f09a1f6dce18e278a678 authored over 3 years ago
docs: fix a missing param due to not rebasing #1151

35494e099dce40c5485ba515d94099cb7c5641e8 authored over 3 years ago
Merge pull request #1145 from bilelmoussaoui/bilelmoussaoui/ignore-not-useful-rust-func-params

docs: ignore not useful function parameters

395e9ab1395d369c288167684ea42709a9ec592b authored over 3 years ago
Merge pull request #1151 from bilelmoussaoui/bilelmoussaoui/gen-doc-functions

docs: generate docs for global functions

ef658454573569e3708079e3f4bbf1e93d8eb5f4 authored over 3 years ago
Merge pull request #1152 from bilelmoussaoui/bilelmoussaoui/enums-use-c-type

codegen: use C value instead of hardcoding it

842e3374d8787e37b8fc66f39fa9f9ece77b395d authored over 3 years ago
codegen: use C value instead of hardcoding it

0bd5e584af570c920a6cccbfc0f38587594f8438 authored over 3 years ago
docs: generate docs for constants as well

28bce4c483136139391387171e48be3b04ae2a74 authored over 3 years ago
docs: generate docs for global functions

7a152f6226c88165acbbd7f644d9e54a900b99ea authored over 3 years ago
docs: allow setting a doc_ignore_parameters for functions

this allows defining a list of parameters to be ignored when the docs are generated
other than t...

abc2386e60e8ccff61c6fd675406a3a4134052f8 authored over 3 years ago
docs: ignore not useful function parameters

This changes few things in the generated docs of a function
- ignores a bunch of function parame...

0e02fb83289bfcbf4d6af84ec1b46d8dfa1fb76f authored over 3 years ago
Merge pull request #1148 from MarijnS95/drop-deprecation-label-from-docs

codegen/doc: Drop `[Deprecated]` text in favour of Rust annotations

565b312dafa620adecead12df1b5437990b78f97 authored over 3 years ago
Merge pull request #1144 from bilelmoussaoui/bilelmoussaoui/builder-gen-prop-comments

docs: generate docs for builder properties

bdf4d5b455d4b7c8e7519dbc1e4c9ef0007991b7 authored over 3 years ago
Merge pull request #1147 from MarijnS95/builder-deprecation

codegen/object: Add missing deprecation attribute to builders

ffebed58a810e35eb8fbb9f7b91c47e4649dddd2 authored over 3 years ago
codgen: generate a doc comment for *Builder::new/*Builder::build

273a77cfe531db94f1a0bf314019b0e91a747cf8 authored over 3 years ago
docs: generate docs for builder properties

75f144884a3e834884e5b4fb1c02cfddc1220506 authored over 3 years ago
codegen/doc: Drop `[Deprecated]` text in favour of Rust annotations

All deprecated objects, traits and records already receive a
`#[deprecated = "Since XXX"]` annot...

aa236571b959432b25742b77269def51d6ba5bd0 authored over 3 years ago
codegen/object: Add missing deprecation attribute to builders

a28f68df0b8051c5b525ae2032ee0c152b65c858 authored over 3 years ago
Merge pull request #1146 from Hofer-Julian/Hofer-Julian/use_main

Rename `do_main` to `main`

13393ff5ef8e176d91746982748ce45edb19d8d6 authored over 3 years ago
Rename `do_main` to `main`

This app was probably written before Rust 1.26 introduced main who could return Result
https://g...

89e96e85574a1833158076502464ac85b0a25141 authored over 3 years ago
Add float format to PRINT_CONSTANT

548500835e0ddee228a06b8b1fb320c2388275df authored over 3 years ago
Merge pull request #1141 from bilelmoussaoui/patch-2

codegen: default to gtk-rs-core for sys crates

f3d92ad178d54a840f4c92c4404ad3611bd08fc8 authored over 3 years ago
codegen: default to gtk-rs-core for sys crates

298ccca6b9e21f6f7f87604dc025a3fce431905d authored over 3 years ago
Merge pull request #1139 from MarijnS95/ref

Stop dereferencing followed by reborrowing in `match` and `if let`

8baeaa40310a08db5516020add5288aa82c8a316 authored over 3 years ago
Stop dereferencing followed by reborrowing in `match` and `if let`

59452c4cf0e9642ee506a86ab3937ec13fdf76b6 authored over 3 years ago
clippy: Use `.flatten()` to get an iterator with `None` filtered out

59c661fe4a4b38215fa5c1ce1bd63a4ca3f447ba authored over 3 years ago
Merge pull request #1138 from MarijnS95/format-pointer

codegen/sys: Use pointer formatting literal to print address of self

f6a5a6c8fb094a225f5844f0e7fe47ce4d033343 authored over 3 years ago
codegen/sys: Use pointer formatting literal to print address of self

Prints the same, but without a cast.

a9ec81436288fed0412b8422e8914bfc75527f6c authored over 3 years ago
Merge pull request #1135 from fengalin/try_from_glib-shortcuts-and-blanket-impl

Use try_from_glib shortcut

f825e3a1cd84ef113034881642aff9169c35fb98 authored over 3 years ago
analysis/RustTypeBuilder: simplify specifiers name

65bc1af84a639fa5bc6b3d7f2caddf694d40d566 authored over 3 years ago
Clippy 1.53.0-beta.2 pass

3bf10f9732df81ecfc43d5a61c54baca0e50126e authored over 3 years ago
Use try_from_glib shortcut

bd16b711f477b9c43155649b15109b974f725a40 authored over 3 years ago
Merge pull request #1137 from GuillaumeGomez/update-ci

Update CI

5cd46af961e783f0122e6ebe6c0ef8aa3d560b10 authored over 3 years ago
Update CI

038755bdd0a793e0c8149571f09c456461dde95e authored over 3 years ago
Merge pull request #1131 from sdroege/unused-fields

Fix some clippy/compiler warnings

c148542ce89b0bf7cbb9f5ef4179c96a45d022df authored over 3 years ago
Fix new 1.52 clippy warning

0c48ea9b876c8ac22ccfdf1f017b4532f88193ae authored over 3 years ago
Remove unused property body is_nullable and is_ref fields

7984460c98d462b4766e745f6bbd01be1f159dc5 authored over 3 years ago
Merge pull request #1130 from fengalin/constructor-config

funct async: use codegen name for _future funct

41ab88c0af1ada2c9bb2d0868babdc95552038c8 authored over 3 years ago
funct async: use codegen name for _future funct

... otherwise we can't take advantage of config and auto-renaming
on non-future function.

d3e4447dbc897b486c5dc25764f4e25fb8a2a3af authored over 3 years ago