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
[RFC] codegen/doc: Simplify links by allowing `Self::` and `crate::` prefix
612ed8942537fddb59095411b09f3858d8f53bb9 authored over 3 years ago
A lot of effort was put in to hide these from the final documentation,
by using `[]()` kind of l...
codegen: Emit `crate::` for all global `%` constants except from prelude
5c1645f203f73a343dc2d03569ae7250e7f09512 authored over 3 years agodoc: Link trait functions in `prelude`
5fb331f5938001da85f3f4fc78e4383bae029148 authored over 3 years ago
Rust prelude symbols - `true`, `false` and `None` - are explicitly added
to the list of symbols....
Otherwise documentation is repeatedly added on subsequent runs, and
rustdoc-stripper-ignore-next...
Both the symbol name and module it resides in need to be updated for the
resulting link to be va...
We recently removed all `Ext` and `ExtManual` traits from crate roots in
favour of consistently ...
config/function: allow forcing 'constructor' annotation
50d7e2aca657662b63d2112a7fe78d860fe1f377 authored over 3 years ago23b4b3a2e4f500402ca5d98b1417d85fa052d9f2 authored over 3 years ago
TryFromGlib support
e2661d84a7fed3dd3ac17f4de087ef0ea3971c14 authored over 3 years agob8b48552fbdd79789f0cc2bbddfd667a44a48066 authored over 3 years ago
Types implementing `TryFromGlib` can now be configured to define
how code generation should hand...
d6493cce79dd2d33abb43afb1961d5c86e226a98 authored over 3 years ago
Most functions in the `rust_type` modules are designed to pass
a subset of the different argumen...
This allows defining functions such as:
```rust
fn update_flow(&self, ret: Into<FlowReturn>);
`...
Add rename doc aliases
b5ff6f8dd8713c3a8d4864f2f975374f0612976b authored over 3 years agocodegen/enums: Keep emitting name of `Self` in string literals
a5d125fe5ba5a6c9a550176b69e92e60603a309b authored over 3 years agocodegen: add missing } for build pattern
52aa5891b5aed52e24a267f9bd520f08a36ad617 authored over 3 years agooh another issue from my latest PR
c93c8905b572bcd8e1551625a82d58b21ad2c5a3 authored over 3 years ago75fa993e9d266fff95e01f47e65daa22a7e485e6 authored over 3 years ago
Commit 3f36d06 ("Fix some clippy::use_self warnings in generated code")
did away with repeating ...
codegen: only use ret if a builder_postprocess is set
d86778e21879a502c2e1c4b9468f469ec31b36bc authored over 3 years agothis allows us to enable clippy::let_and_return lint
f073a172b3154db7b7e91d1c336985230dcedb31 authored over 3 years agoFix some clippy::use_self warnings in generated code
05168259538c9d78d2cf41016481426a597c0342 authored over 3 years ago
Some low-hanging fruit to shorten generated code and making it more
readable at the same time.
out_param: follow aliases for imports
c2fbdbd1df417aabde82655f7277d8e29dc58307 authored over 3 years agod2432851251d436eed4256548f942f607dc2956c authored over 3 years ago
codegen: take Self for Copy types
1a0921b553383ab0e5a34bdab15ebc8844ec3b46 authored over 3 years agoSee https://github.com/gtk-rs/gtk-rs/pull/427#issuecomment-817218736 for details
097ff2af2e189f7099e2b4fe31fa85c9db9ca2dd authored over 3 years ago5de231eedb96479e60e1c3638118c570a858b8e6 authored over 3 years ago
... instead of the function names.
f72f7479b86358417e367075645ecde7c399eb4b authored over 3 years ago... is different than in the gir-file name. This includes:
* Name mangling.
* Rust standards en...
302a1037641b1b97ef87ad6df5563b16cc010401 authored over 3 years ago
affb8b6268faf4f88a37febb7fd850e9276c304a authored over 3 years ago
build: Rerun if git hash changed
194b530e1c58d13876aa115ff23784221741013e authored over 3 years ago
`gir`'s hash in version files gets out of sync quite frequently with the
hash of the submodule. ...
analysis/properties: Remove unused ToValue import for property getters
4144cf953ff0424a9c10e505cdfd5f4ee5eee268 authored over 3 years ago
Following [1] an unnecessary `glib::ToValue` import showed up in auto
code, which does not appea...
[3/3] Emit intra-doc-links for symbol references
7a92c16ac4381e94e6d3b07ae5a6fd9a99866e00 authored over 3 years agocodegen/doc: Omit "Feature: `vXXX`" text in favour of doc_cfg
deec94b93405cd96405a65e72f76921899703d48 authored over 3 years agocodegen/general: Emit "Since vXXX" in #[deprecated] attributes
1959d1ed417f79f77627fa1293475461972ee93d authored over 3 years agodocs: manual traits are in prelude only
4ee43f36d2a0b6c9ce4c38d4d3f89e3682946945 authored over 3 years agocodegen/object: Only re-export traits from `traits`/`prelude` module
2d659a14b5e48562af1eaef07e70abfba0102814 authored over 3 years agodoc: Always consider `trait_name` from `Gir.toml` in implementation docs
1f1e3e9d019f2a78c459c36243d669948f5c78cf authored over 3 years agoci: Symlink gir directory to ourselves to find generator.py
63f378d08954d0b0627ede7490c40fc2a5917a5f authored over 3 years ago
`generator.py` moved into this repository, and gtk-rs (and friends) now
symlink to `gir/generato...
Following a discussion in [1] we have decided to remove all trait
exports - both manual and auto...
f2528905ada0f7c4134ef6f15bb688cb2788c37e authored over 3 years ago
Value trait refactoring
a01a90fb9ccd146827a8d1fcdf9766799ad88ab0 authored over 3 years agoSee https://github.com/gtk-rs/gtk-rs/pull/454
c6cacb0cb36c314c9a02126d1ddf3de0e18b1e41 authored over 3 years agofixes #1110
2a109d1258331a11a630f0e8cd9924f5043e356e authored over 3 years ago
Some types have their trait name overridden for clarity, but this is not
always conveyed in the ...
Import generator.py from gtk-rs
a972bd6d8d02cd44992811bd0a73b1da01c3a261 authored over 3 years agoc423525068d4c46c7e1afa088d87f76e7bd45cc0 authored almost 4 years ago
006ec07351ef7bb624172d085f2c18521a69c555 authored almost 4 years ago
65c4c3f924566c69409ae2ea51cfa7a62f5ceafc authored almost 4 years ago
This is fixed in Python 3.8:
https://github.com/python/cpython/commit/744c08a9c75a1a53b7a6521fce...
We have decided to get rid of checked-in documentation in favour of
performing generation and em...
Asyncio is much better suited for spawning complex tasks - in this case
involving process spawni...
Get removal round 2
f2739a95d57d2a25846cafc2bd37233d13317998 authored almost 4 years ago9e7af3e8338f685f43a5406c4a2a97cb5b034e48 authored almost 4 years ago
* Rename child properties getters.
* Add a config to force a specific name for child properties ...
1d11fb7ffbaaf8a16dc4cc856f5a666bc5ff386b authored almost 4 years ago
We want to use the generator in the CI to update docs, for which we
don't want to emit updated R...
config,git: Omit gir directory hash and URL if not a submodule
f0d3e902e6519fad909e1e8ff11642a41c3fa95c authored almost 4 years agodoc: Use intra-doc-links instead of relative paths to html pages
8dd201f1f5c502e120973d0f55e1c5d24fb2766d authored almost 4 years agoanalysis/record: Do not bail on missing memory functions
9cd682ae0e701572c49677524a19bd0c03f1bf73 authored almost 4 years agoFix renamed functions not being documented
bcadc6e326bdb04fdb24efa46d0f3ae409a15146 authored almost 4 years ago
This constraint is already enforced with a `panic!` during codegen,
effectively disallowing Gir....
As final step in the intra-doc link conversion this enables generating
links for `#` and `%` ref...
Virtual functions ar generally referred to as #Type.vfunc() which would
get treated as `Type.vfu...
Using intra-doc-links saves quite a bit of code in gir, looks cleaner in
the markdown files and ...
This already exists in the C docs and is clearer to the reader that a
function is referenced and...
bd65bf91a0ae315aaa5c681840b68630e7233bfe authored almost 4 years ago
Intially plaguing GStreamer-rs this code grabs the git hash from the
root repository if the spec...
3a9adda888c3a42498645111c4d25d2748b67462 authored almost 4 years ago
Similar to Rusts return and try, just use exceptions and pretty-print
them at the highest level ...
Since the addition of doc regeneration - which also spawns a gir process
for every non-sys crate...
Convenience method to emit documentation for all crates with a
`Gir.toml` file. Optionally take...
Remove get for getters
3c6ebf46353f5356f5ca7591476cedb5e8da8542 authored almost 4 years ago
This is required for enum with get functions since they consume self
and are not considered as g...
adb7f2dc4c0beb0cd4809eb9a3555b8a4a012623 authored almost 4 years ago
4384773b3def43311991166f93c7091ebae05f70 authored almost 4 years ago
8a0d91cfaaf3cf8021010225ea0ae5d919c6f481 authored almost 4 years ago
- Rename the get functions when applicable.
- Rename the get_property function when applicable.
config: Normalize submodule path before looking it up in .gitmodules
d3b324d9d1ed2e5a1866052506c0a6ff4207cc7c authored almost 4 years ago
`normalize_path` was introduced in [1] for pretty-printing relative
paths with `../` ParentDir c...
[1/3] Emit intra-doc links for self (`@`) references
5421eea6c1add5e832a9e53cb382a79c67151034 authored almost 4 years agogit: Read remote url from upstream or origin
28780fde939e93a45f4a254ba812a0df50a910f6 authored almost 4 years ago
`@` is used in few invalid places in the (GStreamer) docs where `#`
should have been used. Inst...
This is using an explicit reference to `Self::` so that there is no
confusion over what to refer...
In the near future we'll want to generate intra-doc-links based on the
reference type in the doc...
`full_rust_name` is only used in two places; one of thich -
`replace_c_types` - does not deal wi...
Neither the module nor struct (wrapped inside `glib::wrapper`) had a
deprecation warning previou...
48ccfa9b7fd76c48c60b858930a780cf9d04c600 authored almost 4 years ago
Nowadays we have the `doc_cfg` feature rendering clean, consistent and
obvious markers for featu...
With the new separate gir directories it is useful to know what repo
(url) a git hash came from,...
As an improvement over the previous commit, which deals with custom
setups where contributors an...
02644f02f75d3992838bf4061ef7b17412f5a146 authored almost 4 years ago