[package] name = "sparkl3d" version = "0.4.0" authors = [ "Sébastien Crozet " ] description = "3-dimensional physics engine in Rust." documentation = "http://docs.rs/sparkl3d" homepage = "http://sparkl.rs" repository = "https://github.com/dimforge/sparkl" readme = "README.md" categories = [ "science", "game-development", "mathematics", "simulation", "wasm"] keywords = [ "physics", "dynamics", "rigid", "real-time", "joints" ] license = "Apache-2.0" edition = "2018" [badges] maintenance = { status = "actively-developed" } [features] default = [ "dim3", "f32" ] dim3 = [] f32 = [] cuda = [ "cust", "sparkl3d-kernels" ] serde-serialize = [ "serde", "nalgebra/serde-serialize", "parry3d/serde-serialize", "rapier3d/serde-serialize", "sparkl3d-core/serde-serialize" ] # Third-party integration. rapier-testbed = [ "rapier_testbed3d", "graphics", "itertools" ] rapier-harness = [ "rapier-testbed" ] graphics = [ "bevy", "bevy_egui", "bevy_ecs" ] [lib] path = "src/lib.rs" required-features = [ "dim3", "f32" ] [dependencies] sparkl3d-core = { version = "0.4", path = "../sparkl3d-core" } nalgebra = "0.32" parry3d = "0.13" rapier3d = { version = "0.17.2", git = "https://github.com/dimforge/rapier.git", rev = "e9ea2ca10b3058a6ac2d7f4b79d351ef18ad3c06" } instant = { version = "0.1", features = [ "now" ] } bitflags = "1" anyhow = "1" log = "0.4" oorandom = "11" # TODO: remove this, only for testing. # Serialization serde = { version = "1.0", optional = true, features = [ "derive" ]} # Parallelism rayon = "1" ordered-float = "3" # Used by sp-grid memmap2 = "0.5" bytemuck = "1" # Third-party integration rapier_testbed3d = { version = "0.17.0", optional = true, git = "https://github.com/dimforge/rapier.git", rev = "e9ea2ca10b3058a6ac2d7f4b79d351ef18ad3c06" } bevy_egui = { version = "0.22", optional = true, features = [ "immutable_ctx" ] } bevy_ecs = { version = "0.11", optional = true } itertools = { version = "0.10", optional = true } # CUDA cust = { version = "0.3", optional = true } sparkl3d-kernels = { version = "0.4", optional = true, path = "../sparkl3d-kernels" } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] bevy = { version = "0.11", default-features = false, features = ["bevy_winit", "bevy_render", "x11"], optional = true } # Dependencies for WASM only. #[target.'cfg(target_arch = "wasm32")'.dependencies] #bevy = { version = "0.6", default-features = false, features = ["bevy_winit", "render"], optional = true } #bevy_webgl2 = { version = "0.5", optional = true } [dev-dependencies] oorandom = "11"