Comments (5)
We could avoid importing most of the types by taking advantage of reexports in the root namespace.
unsafe impl <Upcast<::Container>> for Bin { }
from gir.
It works if all usable type will reexported.
If some still needed use (Ex. c_double
) then task still ever
more difficul, we need do check on both "sides"
from gir.
Maybe we do need to cache the lines before writing to the file, this would allow us to gather the list of types that must be imported.
from gir.
Yes, i proposed this from beginning. May be I was not clear enough.
I try add uses (with interfaces) tomorrow, as I say in beginning of last PR, I prefer get compilable code sooner.
from gir.
Closed with #34
from gir.
Related Issues (20)
- Objects are not marked as deprecated
- Signal handler (and other closures) return values don't use `IntoGlibPtr` trait
- Don't create `assert_initialized_main_thread!()` assertions for enum/flags methods HOT 1
- Can't autogenerate `g_file_copy()` and others with latest gir files anymore HOT 1
- Make shared library error message helpful
- generated code broken HOT 2
- Regression in soup3-rs
- Types' names that start with a number in input gir file produce invalid code
- [Feature request] Create release for 0.16 HOT 1
- [Feature request] Create release for 0.17 HOT 1
- Fails to find .gir files out of nowhere
- Suggestion: Remove dox feature in favor of rustc args HOT 6
- How to fix libgir::parser warning with GTK4? HOT 4
- No bindings generated for Vala async methods
- `void`-returning non-throwing async method generates broken binding code HOT 1
- DEFAULT_GIR_PATH could respect CARGO_TARGET_DIR
- Append implementors list to ExtManual traits
- Add a way to disable abi test for a certain type
- Question: How to rename Object HOT 4
- Should generate deprecate warning in rust code, when C code macro expand to `__attribute__` `__deprecated__` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gir.