boxdd-sys 0.1.0

Low-level FFI bindings for Box2D built from upstream via submodule
Documentation
[package]

name = "boxdd-sys"

version = "0.1.0"

edition = "2024"

description = "Low-level FFI bindings for Box2D built from upstream via submodule"

license = "MIT OR Apache-2.0"

repository = "https://github.com/Latias94/boxdd"

homepage = "https://github.com/Latias94/boxdd"

links = "box2d"

build = "build.rs"

readme = "README.md"

documentation = "https://docs.rs/boxdd-sys"

keywords = ["box2d", "physics", "ffi", "bindings", "game"]

categories = ["external-ffi-bindings", "game-engines"]



# Keep the crate slim on crates.io

include = [
    "Cargo.toml",
    "README.md",
    "build.rs",
    "src/**",
    # Only headers from upstream include/
    "third-party/box2d/include/**/*.h",
    # C sources and local headers from upstream src/
    "third-party/box2d/src/**/*.c",
    "third-party/box2d/src/**/*.h",
    # Upstream license file (Box2D is MIT-licensed)
    "third-party/box2d/LICENSE",
]


[package.metadata.docs.rs]

all-features = false

no-default-features = true

features = []

rustdoc-args = ["--cfg", "docsrs"]



[features]
default = ["build-from-source"]
# Always build vendored Box2D C sources with cc. No prebuilt linking path.
build-from-source = []
pkg-config = ["dep:pkg-config"]
## Optional performance/debug features (match upstream options)
# Enable AVX2 SIMD optimizations (x86_64 only); ignored if `disable-simd` is also set.
simd-avx2 = []
# Disable all SIMD; takes precedence over `simd-avx2`.
disable-simd = []
# Enable heavy internal validation (assertions and checks)
validate = []

[build-dependencies]
cc = "1"
bindgen = "0.72"
pkg-config = { version = "0.3", optional = true }

[dependencies]