Comments (1)
Would it be possible to have a separate rust api such that this isn't necessary, as Azul seems to be written in rust?
Azul is written in Rust, but everything has to go through a C FFI layer, so that there is one binary interface for C, C++ and Rust. Every callback requires extern "C"
, otherwise passing callbacks would not be possible from C and C++. Rusts default extern "Rust"
callbacks are not ABI-stable, they may change between different compiler versions. As such, they are only useful in statically-linked code (azul is usually dynamically linked).
All extern "C"
functions are callbacks. The examples that don't require extern "C"
are likely just outdated. This can't be changed because that's how the C ABI works.
from azul.
Related Issues (20)
- If would like to split out text shaping what is the plan? HOT 3
- Cargo run error, could nto find IOReader in bincode
- couldn't read D:\soft\cargo/lib/azul-dll-0.0.1/target/release/azul.dll HOT 9
- Cannot compile Azul on M1 MacBook Pro due to older WInit dependency HOT 1
- License not updated on official website HOT 2
- Links broken on azul.rs HOT 6
- Build from crates.io command doesn't work HOT 1
- Timers, Threads and Animations guide and after grade abnormal display HOT 1
- Error from link.exe HOT 1
- Support for more programming languages other than python? HOT 2
- [Suggestion] Game example?
- It is not clear from the README whether azul supports Rust & C, Rust & C++ or Rust & C & C++ HOT 2
- [BUG] 404 error for azul.dll file HOT 3
- get rid of four year old xcb dependency HOT 1
- C header fails to parse with clang
- text_layout word_positions_to_inline_text_layout seems to loose words HOT 2
- azul.pyd not working on win7 and win11 HOT 1
- azul didn't create a window HOT 3
- Cannot compile `azul-text-layout` due using old version of freetype
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 azul.