#jni #java #awt

jawt

Cross-platform Rust bindings to Java AWT

3 unstable releases

0.2.1 Oct 2, 2025
0.2.0 Sep 18, 2025
0.1.0 Aug 15, 2025

#336 in FFI

Download history 24/week @ 2025-10-06 10/week @ 2025-10-13 2/week @ 2025-10-20

166 downloads per month

MIT/Apache

88KB
2K SLoC

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.2 0.22 0.3 0.22 0.60 0.6 0.3 0.2 1.74
0.2.1 0.2 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.

Windows macOS Linux
Windows WGPU Demo macOS WGPU Demo Linux WGPU Demo

Licensing

Dual-licensed under MIT and Apache License version 2.0.

Dependencies

~1–44MB
~594K SLoC