nexus_rbd2d 0.4.0

Cross-platform 2D GPU-accelerated rigid-body physics.
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "nexus_rbd2d"
version = "0.4.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
build = "build.rs"
exclude = ["**/.DS_Store"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform 2D GPU-accelerated rigid-body physics."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dimforge/nexus"
resolver = "2"

[features]
cpu = [
    "nexus_rbd_shaders2d/cpu",
    "vortx/cpu",
]
cpu-parallel = [
    "cpu",
    "vortx/cpu-parallel",
    "nexus_rbd_shaders2d/cpu-parallel",
]
cuda = [
    "khal/cuda",
    "khal-builder/cuda",
    "nexus_rbd_shaders2d/cuda",
]
default = [
    "dim2",
    "f32",
    "webgpu",
]
dim2 = []
f32 = []
f64 = []
metal = ["khal/metal"]
webgpu = ["khal/webgpu"]

[lib]
name = "nexus_rbd2d"
path = "src_rbd/lib.rs"
required-features = ["dim2"]

[dependencies.bvh]
version = "0.7"

[dependencies.bytemuck]
version = "1"
features = ["derive"]

[dependencies.futures]
version = "0.3"

[dependencies.glamx]
version = "0.3"
features = [
    "nostd-libm",
    "bytemuck",
]
default-features = false

[dependencies.include_dir]
version = "0.7"

[dependencies.khal]
version = "0.2"
features = ["derive"]

[dependencies.nexus_rbd_shaders2d]
version = "0.4.0"

[dependencies.parry2d]
version = "0.29"
features = ["default"]
default-features = false

[dependencies.rapier2d]
version = "0.34"
features = ["default"]
default-features = false

[dependencies.vortx]
version = "0.3"
features = ["unsafe_remove_boundchecks"]

[dependencies.web-time]
version = "1"

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.futures-test]
version = "0.3"

[dev-dependencies.rand]
version = "0.9"

[dev-dependencies.serial_test]
version = "3"

[build-dependencies.khal-builder]
version = "0.2"

[build-dependencies.nexus_rbd_shaders2d]
version = "0.4.0"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("dim3"))']