jawt
Cross-platform, safe Rust bindings to Java AWT Native Interface.
Versions
| jawt |
jawt-sys |
jni |
jni-sys |
euclid |
windows |
objc2 |
objc2-{app-kit, quartz-core} |
x11-dl |
MSRV |
| 0.1.0 |
0.1 |
0.22 |
0.3 |
0.22 |
0.60 |
0.6 |
0.3 |
0.2 |
1.74 |
| 0.2.0 |
0.1 |
0.22 |
0.3 |
0.22 |
0.60 |
0.6 |
0.3 |
0.2 |
1.74 |
Features
| Feature name |
Default |
Description |
euclid |
|
Enables conversions between jawt::Rect and euclid::Rect. |
java-1-4 |
✅ |
Enables APIs introduced in Java 1.4. |
java-9 |
✅ |
Enables APIs introduced in Java 9. |
dynamic-get-awt |
✅ |
Configures jawt::Awt to locate JAWT_GetAWT in jawt.dll orlibjawt.{dylib, so} at runtime. |
static-get-awt |
|
Configures jawt::Awt to use jawt_sys::JAWT_GetAWT. Users must manually link jawt.dll or libjawt.{dylib, so} at build time. |
How to use
Please refer to the WGPU example in the GitHub repository.
Licensing
Dual-licensed under MIT and Apache License version 2.0.