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
writer: check return code as gboolean
7ca0cbfc850e8bbc898134b9a16b5349e7f86932 authored about 3 years ago
This makes the check on return code stricter, by using the actual
gboolean value.
codgen: trim extra _async in future variants
a3709a9f9d375d87325c6ac5d55a6d35bacc73c9 authored about 3 years agoFixes #1208
a00b9893e246f7a231d86dd5b6d3a788056ec578 authored about 3 years agodocs: allow to set doc_struct_name for global functions
3e58ef5ba5c76cddc3369c53bb71959379dd7fb0 authored about 3 years agoLike async_finish, ignored ones or special ones
66323be35df7820870b7b0dc9b7374c22638672d authored about 3 years agoUseful for Widget's TickCallbackId for example
fe1ba1f1d614455fd58bf5eab070a86ea435c51b authored about 3 years ago
Some of those are moved to a different struct in some cases
like gdk::Key and would be nice to h...
docs: allow documenting global functions in traits
3830c66a883af1b757333674872cc279e7159d1c authored about 3 years agob38a05db3b6abdf14ccd5ecda439be59e19b247e authored about 3 years ago
sys: stop importing time_t,
c3e8577085f54d0b142bb6b8e0f888b9e1109688 authored about 3 years agoNothing seems to be using it
Fixes #1276
fa9aaf3c3541a057b3ecaad67718536648c31346 authored about 3 years agodocs: work around glib::Variant case
cb1a36ab80f81bbb0bf7367a20b9c87a6c42a05f authored about 3 years agoas it's a derive macro and a struct, specify the generated docs as a struct
2494f16b4f23ab1dc6c6aefdf79e09c2b96ebda0 authored about 3 years agocodegen/function: assert sane GError behavior
878c7cdd654c009d49c67ff7e368448dc4b2d9db authored about 3 years ago
This introduces an assertion in generated code for FFI logic
making use of GError.
When the wrap...
Add `#[must_use]` to the autogenerated builder types
50377b88695979e542e4b276f6fead7a0c6d1d84 authored about 3 years agoa26090d5c2db309eec9be7c8221e1499675c293d authored about 3 years ago
They don't do anything on their own and must be built to have any
effect.
Fixes https://github....
086742e6ec66c0fe20c5736be52926ec4165d047 authored about 3 years ago364908a94cf735efa3cfaa8c8cf5c654309950b0 authored about 3 years ago
gir: fix per emit_by_name change
a69abbe5ee1a745e554cac9433c65d2ac26a7688 authored about 3 years ago
ObjectExt::emit_by_name now return the correct type directly
instead of Option<Value>
Mark gi-docgen as optional
768c48de2bf2875a9465699269a6cf3f99e981f2 authored about 3 years agoThis should probably be rewritten someday to make use of some other config options
e3b56b2ccbc6b4e84bc5707f24b93128f932684b authored about 3 years agoOnly the minimum that's known to not regress the general functionnality
e65154bf3f4796fe9460c74187697f065c1e6d77 authored about 3 years ago
This would be used for setting whether the bindings docs would use the gi-docgen parser
or the d...
86247a649b67714bcfb80f92754feee278986801 authored about 3 years ago
Only use remove_dir_all if there is a folder to remove
d855b4c7cd916dc10ebae654ca42cea18efb15ee authored about 3 years agoa5b78d95d400ed257e396089490fc5b3917d6850 authored about 3 years ago
Move auto folder removal into gir directly
02eb99133f11749f3e6b959f060f55bbcffe9994 authored about 3 years agoe754270bd6570e37e1b172984b262f6a46968007 authored about 3 years ago
Update to system-deps 6
e73659189122e09b34d87f7a0fab0286e30d8137 authored about 3 years ago439f47301f70963b3da177c92695aae65308078c authored about 3 years ago
Remove "auto" folder when regenarating non-sys crate
9f22311a93bf49448cddb5e6ad80d373a494fa68 authored about 3 years ago3bd0a6e57474c0ce2c77698a9f17690814902c5e authored about 3 years ago
codegen: stop renaming crates inside sys generated code
6570de5a52cde8802842fde8acbd46204389ecdb authored about 3 years ago34c9b6e1eea0c05d60b15ec7fccd83d67e63ed92 authored about 3 years ago
As per other 2018 edition changes, the renames should be done on Cargo.toml instead
Fixes #998
codgen: don't generate empty impl blocks
ba0ee13f6f1eade812d0c05640d8fb37754db54b authored about 3 years ago8302383b039181069a739b96b568ba390cfa912e authored about 3 years ago
1889a9536af2eaa0eacea0694a58890f774f93e4 authored about 3 years ago
Fixes #976
35df99822070b822a0e250f7229e93167ff9ac75 authored about 3 years agocodgen: don't generate a functions mod if it's empty
af7318db247f6d43bc1490336fdd4e46480befb8 authored about 3 years agoNoticed that in https://gtk-rs.org/gtk4-rs/git/docs/gsk4/functions/index.html
c870b147b8a5774781f1685bdd24a0631f4da1bc authored about 3 years agocodgen: generate builders inside a builders module
14108e9753fab8e53084486dd65c269f472b2f1d authored about 3 years agoed042b357b9cc06c200cf4d2fc508b92fbf3b87d authored about 3 years ago
This is a workaround to make sure the builders are usable from outside
without making the module...
codgen: don't re-export builder types on crate root
6ed534660667170622ce1a0f2f08f53a86c7a429 authored about 3 years agoaffd98b609632fc45036e65d976b3e29abcffe5a authored about 3 years ago
they are available nowadays through Type::builder method
22629190464463854dbcbfedfcf8ba9b93bf0a9f authored about 3 years agoCorrectly generate opaque types
61d2f713d84d670690c6918541d398463023c8b2 authored about 3 years ago943a23da0f6f0826e2d075f3f212e0dcc9bfb942 authored about 3 years ago
codgen: don't assume child props are gtk only
1c1c59f7f5b05d16503df1c4235923b0c250eefa authored about 3 years agolibraries such as libhandy have those
Fixes #1096
05bb2fec5a78a7d8e9c05bd2fb781c253374924e authored about 3 years agocodgen: fix a logic issue in version_condition_no_doc
df67128a87f0140e5a2dc845e86968f833c75503 authored about 3 years ago
If no version is set for another crate name, we should always add a guard
This caused some guar...
revert edition change
2b5250cca3f9bba0d09b7f442422d5a64f6b0fe2 authored about 3 years agod215aff430a015c91a236bbc0f2bc4b355749e02 authored about 3 years ago
per crate min version
f4ce88ca32478c13de6956ca88525d6b71d69bd9 authored about 3 years ago
we should fallback to comparing against min_cfg_version
if there's no version to compare with
similar to the former commit
9b38cc378ba72c3c4412fc0a6e67b061301a6ca8 authored about 3 years ago
When generating a builder pattern; the properties could be
from a super-type interface/class tha...
986b3e79f5aebdf3be8b89c9dc32686a4ed1e350 authored about 3 years ago
ee9d6ebfc90838753e3885220afdc45c91202bd8 authored about 3 years ago
2d171ede7c79d509a699a54612803429a35aeee9 authored about 3 years ago
Instead of comparing the main crate's min_version with the required version of super-types
use t...
f06e6f228a28bbbf5ddf65819b086bf784554fdc authored about 3 years ago
codgen: simplify properties getters/setters
dd6854cae9fd070eb8331b44225e934fbc7bbb30 authored about 3 years agoUse ObjectExt directly instead of going through ffi
9b389a79026b707925f16e6c7f0f2595a1c23a0c authored about 3 years agoc447bbe8cad7c3b619e4edd78e1b79ea72ca99ef authored about 3 years ago
codegen: generate NONE constants as associated constants
e0b1709803a72df2223aace1eb15881c45bbbb96 authored about 3 years agoSo that we can use `Pad::NONE` instead of crate global `NONE_PAD`.
See https://github.com/gtk-r...
cf4f728a93e3da9773d793f7fafcd6d5aeda50bb authored about 3 years agoRevert #1248
8663b33dd5e8c284013c5ff5d306cc04b578d4d4 authored about 3 years agothe deprecated guard has no effect on impl
dddd3bdd5f56d6aac800d5d7c4f4258479bcc3bb authored about 3 years agoFix support for nullable paths / OsStrings
3b7a04e5bda457b097b34b7db79e4f464320be7b authored about 3 years agoAnd produce "to_glib_extra" code snippet in a single place consistently.
3cf1256ba6c2aa518d4cf55c1b5c9361cc978a46 authored about 3 years agocodgen: generate deprecated cfg attribute for Default trait
9c362508f28e690005248372dbe0506f5b03540d authored about 3 years ago
If the constructor method is deprecated, the builder pattern should have a guard
as well
Switch to 2021 edition
7b93dbf37ad73bd21125b5082c75210839541d9e authored about 3 years ago3a28f6c8747e8bee584b6c760112867a79b7fd09 authored about 3 years ago
8b2f4ad11b40785226db81afa56686976b713276 authored about 3 years ago
364678bf8674d8bdda02fde783f639abd000d245 authored about 3 years ago
No changes needed.
2c0c8216297cc2843ec79fae88aa642f05f2a8be authored about 3 years agoAdd `use glib::translate::*` for generating the equal special function
f47b683f898759afc76fb088c07955a87be06a71 authored about 3 years agob39d72a851ab5f3878389a8d0125ccec51ee0505 authored about 3 years ago
book: Fix sys crate import to use the 'ffi' convention.
7e38713666f4ef798ddf4d997c8bf640337ac75a authored about 3 years agoGir now generates code expecting the crate to be imported as 'ffi'.
72b2d281a95e0fefa5c1f7cbdd1711054e137b72 authored about 3 years agobook: Add a section on fixing missing macros
8063678f33f2afe6d83d68ef93fb4e1d40077770 authored about 3 years ago
Co-authored-by: pentamassiv <[email protected]>
Co-authored-by: Sebastian Dröge <slomo@coaxi...
book: Remove suggestions to add `extern crate` imports
9c2218f95444816498c6ce03f1772c9d9a2d60e4 authored about 3 years ago
Gir generates edition = "2018" crates now, which do not require them:
https://doc.rust-lang.org/...
book: Fix references to the `girs_dir` config option
cd7330f5f022754a353066ef4a4f9b9773487fb5 authored about 3 years ago0a0b1829caf111dd858721eda5ce33c198ee79c0 authored about 3 years ago
analysis: mark to_str functions as renamed
3cfd4200d742e856730b69df387182e314055ecd authored about 3 years ago
Instead of overriding their original names; this makes the docs work without workarounds
by mark...
Implement support for inline allocated Boxed types
a97e6087cf6b92c30daed1129afe97a22a8dac00 authored over 3 years agod7c183071c14c53a3a32441e058f8e63129f5c35 authored over 3 years ago
Previously only AutoBoxed was considered boxed, which caused wrong code
generation for special f...
038739e070d722e62c58c8c310a91ade5c9c21f6 authored over 3 years ago
47509fe91cc2aec026bb64b44bae6a82bf5f3725 authored over 3 years ago