xash3d-ffi

Crates.ioxash3d-ffi
lib.rsxash3d-ffi
version0.1.0
created_at2025-09-12 04:40:35.330372+00
updated_at2025-09-12 04:40:35.330372+00
descriptionRaw FFI bindings to Xash3D FWGS engine
homepage
repositoryhttps://github.com/numas13/xash3d-ffi
max_upload_size
id1835145
size339,325
Denis Drakhnia (numas13)

documentation

README

Raw FFI bindings to Xash3D FWGS engine

xash3d-ffi provides all of the definitions necessary to interoperate with Xash3D FWGS engine. Bindings are generated statically to minimize build dependencies.

Features

  • std - links to the standard library.
  • libm - add additional methods to vectors in no-std environments.

Features to enable bindings for DLLs

  • all (enabled by default) - bindings to all supported DLLs.
  • client - bindings to a client DLL.
  • server - bindings to a server DLL.
  • menu - bindings to a menu DLL.
  • render - bindings to a render DLL.

Usage

Add the following to your Cargo.toml:

[dependencies]
xash3d-ffi = "0.1"

Rust version support

The minimum supported Rust toolchain version is currently Rust 1.64.

Generate bindings

bindgen-cli is required.

To manually generate bindings run generate.sh [target]. The default target is i686-unknown-linux-gnu.

cd xash3d-ffi
./generate.sh
Commit count: 33

cargo fmt