Comments (11)
I believe this issue can be closed now, unless we want to keep it open for tracking the winapi-rs pull request.
from druid.
@vi, does it work for other examples? I have the same issue when I tried to use druid in my own project.
from druid.
Of course it doesn't. druid_win_shell doesn't compile, so nothing that relies on it can compile.
from druid.
@IslandUsurper , Does it work if you patch druid
, adding that as i32
?
from druid.
I'm sure it does, but I don't think that's the right solution. Instead, it looks like winapi needs to fix how it defines SetWindowLongPtrW (and friends) on x86 arch. Right now it aliases it to SetWindowLongW (etc), but that function takes a LONG
instead of a LONG_PTR
, which is what's going to be passed to it. And Rust doesn't consider isize
and i32
to be the same type, even when they are the same size.
from druid.
I'm going to check this theory, and if it works, I'll file a PR against winapi and link it here.
from druid.
retep998/winapi-rs#735 is now a thing.
from druid.
@IslandUsurper Thanks for looking into this! It's not obvious to me whether this should be solved in winapi or at the next level above, but sounds like we have at the very least a plausible solution.
from druid.
This is still a problem. I ran into this while trying to cross-compile for i686-pc-windows-gnu.
Changing it to style as _
makes it work.
If I submit a pull request with that change, would it be acceptable?
from druid.
@crumblingstatue I would accept that PR.
from druid.
I think our solution is acceptable long-term.
from druid.
Related Issues (20)
- Can't compile the program in Chapter 2 of druid book HOT 1
- Docs? HOT 2
- Broken links in the book.
- Window name is not null terminated in X11 HOT 3
- Build error of an empty project: `syn::Type` doesn't implement `Debug` HOT 7
- Issue building druid-derive on macos HOT 1
- Require widget to implement compute_max_intrinsic HOT 7
- App update upgrade features HOT 1
- do we stop to develop the project? HOT 1
- Read data from an other thread HOT 3
- Looks like the documentation is out of date HOT 1
- Dual monitor App invisible
- version `GLIBCXX_3.4.29' not found HOT 2
- assertion 'width >= -1' failed on NixOS/Sway HOT 1
- Prevent closing app with cross
- expected tuple struct or tuple variant, found struct variant `KbKey::Character` HOT 3
- Scroll to bottom on dynamic content HOT 1
- Druid ignoring custom painter HOT 1
- Druid does not allow low window sizes
- [question] What is the execution efficiency of desktop applications developed in Rust? HOT 1
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 druid.