nexus_viewer2d 0.4.0

Viewer for 2D GPU physics demos with nexus.
# 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_viewer2d"
version = "0.4.0"
authors = ["Sébastien Crozet <developer@crozet.re>"]
build = false
exclude = ["**/.DS_Store"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Viewer for 2D GPU physics demos with nexus."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dimforge/nexus"
resolver = "2"

[features]
cpu = [
    "nexus2d/cpu",
    "vortx/cpu",
]
cpu-parallel = [
    "cpu",
    "nexus2d/cpu-parallel",
    "vortx/cpu-parallel",
]
cuda = ["nexus2d/cuda"]
default = [
    "dim2",
    "webgpu",
]
dim2 = []
metal = [
    "khal/metal",
    "nexus2d/metal",
]
webgpu = ["khal/webgpu"]

[lib]
name = "nexus_viewer2d"
path = "src_viewer/lib.rs"
required-features = ["dim2"]

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

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

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

[dependencies.kiss3d]
version = "0.45"
features = ["egui"]

[dependencies.nexus2d]
version = "0.4.0"
features = ["rbd"]

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

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

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

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