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
Shorter and easier to read while debugging
8b5d67259b2c8ba1d4adca83c1b7837470cf829f authored over 3 years ago
currently, we can't look correctly for virtual functions/class methods
as they are manually impl...
cd477e2f39a452a11c62652dc93b2ddca45c9a6f authored over 3 years ago
dc8cb260b85886b00ffd134707e72b6f9ef881a2 authored over 3 years ago
this approaches uses analysis so we are sure the item do exists
4a95a906496a6cafa07b948b053827cd94a34db0 authored over 3 years ago7c952ee283c697bdb8be888569208b892190ad53 authored over 3 years ago
ObjectExt is in glib's prelude
61e4d2f2f8873efbbc61fa5225c083953f26d42c authored over 3 years agoa4658797c7e1ec1af623eafde87ef18a565ab2ec authored over 3 years ago
19111162b923ff40334d1b297b098d2ee139c053 authored over 3 years ago
e6218a1775335a1df9da642023466ee55f96b4f5 authored over 3 years ago
gstreamer has some ignored enum members which ends up in the docs links
and we need a way to ign...
instead of passing the current type name, we use the TypeId for that
and now we render Self::som...
* fixup: rsplit+next
* fixup: Add back missing () on unresolved function symbols
* fixup: ...
0a0e91ff8a3e4761c296c70d6d08e8860ee9e048 authored over 3 years ago611e5a333b32bc04bae45fdf9bafe12c92b0a39e authored over 3 years ago
this also fixes records search
21f8f5c44adc11ca2247e5b3b1a84dec4afd76ad authored over 3 years ago
the helper checks whether a function can be used as doc link.
and some stuff that are duplicated...
5e804e6fe5bfaa61f2a5f9ac22ed2abee17fc0f0 authored over 3 years ago
ebbd556bf6c09d2f04294c43762347bb182363c5 authored over 3 years ago
c149662d3bb3c41e19608bd2a1496527f383386f authored over 3 years ago
This was overriding the `type_id` for enums and bitfields so that they
always resolve to the las...
because gi-docgen uses @ in it's format, it avoids breaking things before they are replaced by g...
beafba2d0aa76e7f127a650574bdfb0e475dd120 authored over 3 years ago8f342205d2e17df6023825ed368f4d5190255567 authored over 3 years ago
751e07163d1d2ef65b2bfc596732d329c85282cc authored over 3 years ago
instead of always returning the symbol name formatted we return an Option
in case we want to cha...
8f32d383920f6cf337a27be6b449947767eaec71 authored over 3 years ago
like the functions::Info's doc_link but for specific types
the helpers are here to ensure both l...
as we don't mark explicitly as ignored on GIR side
6fe4a4cd5f595f2ec6e61a4a569f5ec028524159 authored over 3 years agowith this approach we can only omit links when it makes sense instead of always having one
6523296ef6b90bdd2e81012890fbad6fa6d80dcf authored over 3 years agoa parser and replacer for gi-docgen special links to rust ones
0891ae49ae4604027700a9c390bef394eb8c121d authored over 3 years ago
it's very common to have GskX or PangoX
with this change both will be replaced with their equiva...
ca56a5e87ad4550d3f335f267b86e354e3e0039d authored over 3 years ago
3121452ebd27d32dc7a4a92d4cf12e0209adcf02 authored over 3 years ago
856020d3d5e1f50935624df5569f7f574419868a authored over 3 years ago
the reasoning behind is we want to be able to replace `GtkButton` with a link to Button
instead ...
This will be helpful for later so we can use analysis to find a type by it's rust name
or it's k...
flags: generate doc aliases
95ea27fa5d7f05f1111f9905c271dd00a863d82d authored over 3 years agoenums,flags: Do not analyze imports if the type is not generated
ecaa828d5e65ce3752358de3c0d461240d5414cd authored over 3 years agoe529cc54f9a406dfde3cb7e82d7ec61dbdb5f9bd authored over 3 years ago
Otherwise unused imports show up in the enums/flags files.
Fixes: 68591f1 ("enums,flags: Always...
6c2c8c2a8a10563f3c71a76f1bb072856d0a397d authored over 3 years agoenums,flags: Always analyze manual types
a2a23a1ece35b3f86d8526d63b32316f40416454 authored over 3 years agocodegen/doc: Make extension trait docs link back to the type
55c0d96aa4946a7c8fbfbc16929e194422a8bd95 authored over 3 years ago42253c3c261e9d2d11bf190e40351fd758856664 authored over 3 years ago
Otherwise some enum members are not found
c32c0e15d92dfc8f80a2ff908c8d5f034c2ce2d5 authored over 3 years agodocs: filter out final types from implements trait list
c7088514d27f6177487ac14cec7b91b901e2a204 authored over 3 years agoThe name is already there, but it isn't an intradoc-link yet.
ff1a55a975736217c02fc72a9d5f5f7875476a1a authored over 3 years agoBecause such traits don't exists for those types
d9d6173a3832c6f1a6dd1bea50c032f9e43eb072 authored over 3 years ago
Docs generation is going to look at analysis data to know what variants
and functions are availa...
5bd86f71918b439b5f52871e0c5051f542515156 authored over 3 years ago
When the surrounding type is ignored or manually implemented the
underlying functions are never ...
[refactor] Simplify handling of trait bounds and aliases
de679ce5e7c26674ad788084227ec52f03f1df59 authored over 3 years ago
Most of the callers were not reading the return value leading to
potentially missed failed type ...
ee6666d0ad7d8fe1efd1456769ccc67980bafeab authored over 3 years ago
Regardless of it being a generic type with the first type parameter or
not.
3c0e6b5e1e8b4031fbd2fcae63a6dea00547cc9f authored over 3 years ago
This member was always set to `false`, and by extension `fn
get_base_alias` always returns `None`.
This simplifies the code (gir and generated results) a fair bit by
placing the trait bound direc...
codgen: generate impl T if there are builder properties as well
cf12b297b1bb228610ed1f0c27318f9e491da522 authored over 3 years agoFixes https://github.com/gtk-rs/gtk4-rs/issues/405
95529ba3a66d56df3a1accb468d72b3542de7664 authored over 3 years agocodgen: generate a builder method for objects with a Builder
88c650eb2f0d906feb4cd7ea46ea699d5cc17472 authored over 3 years agofixes #1070
bc10ea9f9d2ac00cbb731170dd434a16d73d0215 authored over 3 years agodocs: use doc_ignore_parameters for global functions as well
db99e37be415799cd77667a90800fb8f3da1472b authored over 3 years agof1eaf6410e1f3ae2fae8cd283a2ffb96f3ea5947 authored over 3 years ago
docs: fix a missing param due to not rebasing #1151
6b5d24f558eddad82a98f09a1f6dce18e278a678 authored over 3 years ago35494e099dce40c5485ba515d94099cb7c5641e8 authored over 3 years ago
docs: ignore not useful function parameters
395e9ab1395d369c288167684ea42709a9ec592b authored over 3 years agodocs: generate docs for global functions
ef658454573569e3708079e3f4bbf1e93d8eb5f4 authored over 3 years agocodegen: use C value instead of hardcoding it
842e3374d8787e37b8fc66f39fa9f9ece77b395d authored over 3 years ago0bd5e584af570c920a6cccbfc0f38587594f8438 authored over 3 years ago
28bce4c483136139391387171e48be3b04ae2a74 authored over 3 years ago
7a152f6226c88165acbbd7f644d9e54a900b99ea authored over 3 years ago
this allows defining a list of parameters to be ignored when the docs are generated
other than t...
This changes few things in the generated docs of a function
- ignores a bunch of function parame...
codegen/doc: Drop `[Deprecated]` text in favour of Rust annotations
565b312dafa620adecead12df1b5437990b78f97 authored over 3 years agodocs: generate docs for builder properties
bdf4d5b455d4b7c8e7519dbc1e4c9ef0007991b7 authored over 3 years agocodegen/object: Add missing deprecation attribute to builders
ffebed58a810e35eb8fbb9f7b91c47e4649dddd2 authored over 3 years ago273a77cfe531db94f1a0bf314019b0e91a747cf8 authored over 3 years ago
75f144884a3e834884e5b4fb1c02cfddc1220506 authored over 3 years ago
All deprecated objects, traits and records already receive a
`#[deprecated = "Since XXX"]` annot...
a28f68df0b8051c5b525ae2032ee0c152b65c858 authored over 3 years ago
Rename `do_main` to `main`
13393ff5ef8e176d91746982748ce45edb19d8d6 authored over 3 years ago
This app was probably written before Rust 1.26 introduced main who could return Result
https://g...
548500835e0ddee228a06b8b1fb320c2388275df authored over 3 years ago
codegen: default to gtk-rs-core for sys crates
f3d92ad178d54a840f4c92c4404ad3611bd08fc8 authored over 3 years ago298ccca6b9e21f6f7f87604dc025a3fce431905d authored over 3 years ago
Stop dereferencing followed by reborrowing in `match` and `if let`
8baeaa40310a08db5516020add5288aa82c8a316 authored over 3 years ago59452c4cf0e9642ee506a86ab3937ec13fdf76b6 authored over 3 years ago
59c661fe4a4b38215fa5c1ce1bd63a4ca3f447ba authored over 3 years ago
codegen/sys: Use pointer formatting literal to print address of self
f6a5a6c8fb094a225f5844f0e7fe47ce4d033343 authored over 3 years agoPrints the same, but without a cast.
a9ec81436288fed0412b8422e8914bfc75527f6c authored over 3 years agoUse try_from_glib shortcut
f825e3a1cd84ef113034881642aff9169c35fb98 authored over 3 years ago65bc1af84a639fa5bc6b3d7f2caddf694d40d566 authored over 3 years ago
3bf10f9732df81ecfc43d5a61c54baca0e50126e authored over 3 years ago
bd16b711f477b9c43155649b15109b974f725a40 authored over 3 years ago
Update CI
5cd46af961e783f0122e6ebe6c0ef8aa3d560b10 authored over 3 years ago038755bdd0a793e0c8149571f09c456461dde95e authored over 3 years ago
Fix some clippy/compiler warnings
c148542ce89b0bf7cbb9f5ef4179c96a45d022df authored over 3 years ago0c48ea9b876c8ac22ccfdf1f017b4532f88193ae authored over 3 years ago
7984460c98d462b4766e745f6bbd01be1f159dc5 authored over 3 years ago
funct async: use codegen name for _future funct
41ab88c0af1ada2c9bb2d0868babdc95552038c8 authored over 3 years ago
... otherwise we can't take advantage of config and auto-renaming
on non-future function.