| Crates.io | wxdragon-sys |
| lib.rs | wxdragon-sys |
| version | 0.8.25 |
| created_at | 2025-05-08 08:27:52.46725+00 |
| updated_at | 2025-09-17 02:37:00.846411+00 |
| description | Raw FFI bindings to libwxdragon (which statically links wxWidgets). |
| homepage | |
| repository | https://github.com/AllenDang/wxDragon |
| max_upload_size | |
| id | 1665031 |
| size | 30,418,461 |
This crate provides raw FFI (Foreign Function Interface) bindings to libwxdragon, a C++ library that wraps parts of the wxWidgets cross-platform GUI toolkit. libwxdragon itself is built and statically linked by this crate during its build process, and it includes a vendored version of wxWidgets.
wxdragon-sys is the unsafe foundation upon which the safe Rust abstractions in the wxdragon crate are built. It is not typically used directly by end-users but rather as a dependency for higher-level crates aiming to use wxWidgets functionality from Rust.
unsafe bindings to the C API exposed by libwxdragon.libwxdragon and its vendored wxWidgets.links = "wxdragon" directive in Cargo.toml ensures proper linking and allows other crates to discover build metadata.The build process (build.rs) for this crate performs the following key steps:
wxdragon C++ wrapper code (found in the src directory of the main project) which links against the just-built wxWidgets. This also becomes a static library.bindgen to generate Rust FFI bindings from the include/wxdragon.h header file.This crate is intended to be used as a dependency in your Cargo.toml:
[dependencies]
wxdragon-sys = "0.1.0" # Replace with the desired version from crates.io
Direct interaction with this crate involves unsafe calls to C functions. For a safer, more idiomatic Rust experience, consider using the wxdragon crate.
wxdragon: Safe, idiomatic Rust wrappers for wxWidgets, built on top of this -sys crate.This crate is licensed under the terms of the MIT license OR the Apache License 2.0 (see LICENSE-MIT and LICENSE-APACHE files in the workspace root).
The vendored wxWidgets library is distributed under its own wxWindows Library Licence.