rustonaut / build-qrc Goto Github PK
View Code? Open in Web Editor NEWA rust build dependency to build and include resources based on the Qt Resource system
License: Apache License 2.0
A rust build dependency to build and include resources based on the Qt Resource system
License: Apache License 2.0
The API has to prevent the case that the static assets are "optimized away".
This can happen, if a library using the qrc system is included statically. It happens because the qrc system uses side effects when globally initializing a object to register the resources with Qt. Because there are no references to the library/code unit from the program, the compiler can assume that the code is unneeded and optimize it away.
In Qt people using a qrc resource have to include the QT_INIT_RESOURCES(<name>)
macro "some where" in their code (normally it's placed in the top of main()).
This library intends to provide a build dependency, so that other rust libraries can use them, so this macro is not a possibility. Another way has to be provided instead.
(Also btw. for some reason it works without it, even with profile.release.lto = true. But I fear it just happens to work, without any guarantees)
Firstly currently there is no code in this repo the current licensing is not "wrong".
But then Qt is GPLv3/LGPLv3 license, so I might have to use this licenses.
On the other side this repo does not link to qt, and it only "uses" some
of the by Qt provided commands, but neither deriving from them or shipping/including them,
so it might not be nessesary.
Have to check it out before publishing code ;)
(the main point is that it only will use interfaces like provided by the Qt Tools, which are not cannot be protected by copyright in the EU [but than who says that github won't store this outside of the EU effictifly "exporting it" :=( ] )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.