-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation and remove nphysics mentions (#60)
* fix compilation ; remove mentions to nphysics/ncollide ; update community links * removed asmjs mentions * translate Fluid::compute_aabb for parry
- Loading branch information
Showing
11 changed files
with
85 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,55 @@ | ||
[package] | ||
name = "salva2d" | ||
name = "salva2d" | ||
version = "0.9.0" | ||
authors = [ "Sébastien Crozet <[email protected]>" ] | ||
authors = ["Sébastien Crozet <[email protected]>"] | ||
description = "2-dimensional particle-based fluid dynamics in Rust." | ||
documentation = "https://salva.rs/docs" | ||
homepage = "https://salva.rs" | ||
repository = "https://github.com/dimforge/salva" | ||
readme = "README.md" | ||
categories = [ "science", "game-development", "mathematics", "simulation", "wasm"] | ||
keywords = [ "physics", "dynamics", "particles", "fluids", "SPH" ] | ||
categories = [ | ||
"science", | ||
"game-development", | ||
"mathematics", | ||
"simulation", | ||
"wasm", | ||
] | ||
keywords = ["physics", "dynamics", "particles", "fluids", "SPH"] | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
|
||
[badges] | ||
maintenance = { status = "actively-developed" } | ||
|
||
[features] | ||
default = [ "dim2" ] | ||
dim2 = [ ] | ||
parallel = [ "rayon" ] | ||
sampling = [ "rapier" ] | ||
rapier = [ "parry", "rapier2d" ] | ||
rapier-testbed = [ "rapier", "rapier_testbed2d", "graphics" ] | ||
rapier-harness = [ "rapier-testbed" ] | ||
parry = [ "parry2d" ] | ||
wasm-bindgen = [ "rapier2d/wasm-bindgen" ] | ||
graphics = [ "bevy", "bevy_egui" ] | ||
default = ["dim2"] | ||
dim2 = [] | ||
parallel = ["rayon"] | ||
sampling = ["rapier"] | ||
rapier = ["parry", "rapier2d"] | ||
rapier-testbed = ["rapier", "rapier_testbed2d", "graphics"] | ||
rapier-harness = ["rapier-testbed"] | ||
parry = ["parry2d"] | ||
wasm-bindgen = ["rapier2d/wasm-bindgen"] | ||
graphics = ["bevy", "bevy_egui"] | ||
|
||
[lints] | ||
rust.unexpected_cfgs = { level = "warn", check-cfg = [ | ||
'cfg(feature, values("dim3"))', | ||
] } | ||
|
||
[lib] | ||
name = "salva2d" | ||
path = "../../src/lib.rs" | ||
required-features = [ "dim2" ] | ||
required-features = ["dim2"] | ||
|
||
[dependencies] | ||
approx = "0.5" | ||
num-traits = "0.2" | ||
fnv = "1.0" | ||
itertools = "0.13" | ||
generational-arena = "0.2" | ||
instant = { version = "0.1", features = [ "now" ] } | ||
instant = { version = "0.1", features = ["now"] } | ||
rayon = { version = "1.8", optional = true } | ||
|
||
nalgebra = "0.33" | ||
|
@@ -49,8 +60,15 @@ rapier_testbed2d = { version = "0.21", optional = true } | |
bevy_egui = { version = "0.26", features = ["immutable_ctx"], optional = true } | ||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
bevy = { version = "0.13.2", default-features = false, features = ["bevy_winit", "bevy_render", "x11"], optional = true } | ||
bevy = { version = "0.13.2", default-features = false, features = [ | ||
"bevy_winit", | ||
"bevy_render", | ||
"x11", | ||
], optional = true } | ||
|
||
# Dependencies for WASM only. | ||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
bevy = { version = "0.13", default-features = false, features = ["bevy_winit", "bevy_render"], optional = true } | ||
bevy = { version = "0.13", default-features = false, features = [ | ||
"bevy_winit", | ||
"bevy_render", | ||
], optional = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,45 @@ | ||
[package] | ||
name = "salva3d" | ||
name = "salva3d" | ||
version = "0.9.0" | ||
authors = [ "Sébastien Crozet <[email protected]>" ] | ||
authors = ["Sébastien Crozet <[email protected]>"] | ||
description = "3-dimensional particle-based fluid dynamics in Rust." | ||
documentation = "https://salva.rs/rustdoc/salva3d/index.html" | ||
homepage = "https://salva.rs" | ||
repository = "https://github.com/dimforge/salva" | ||
readme = "README.md" | ||
keywords = [ "physics", "dynamics", "particles", "fluids", "SPH" ] | ||
keywords = ["physics", "dynamics", "particles", "fluids", "SPH"] | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
|
||
[lints] | ||
rust.unexpected_cfgs = { level = "warn", check-cfg = [ | ||
'cfg(feature, values("dim2"))', | ||
] } | ||
|
||
[features] | ||
default = [ "dim3" ] | ||
dim3 = [ ] | ||
parallel = [ "rayon" ] | ||
rapier = [ "parry", "rapier3d" ] | ||
sampling = [ "rapier" ] | ||
rapier-testbed = [ "rapier", "rapier_testbed3d", "graphics" ] | ||
rapier-harness = [ "rapier-testbed" ] | ||
parry = [ "parry3d" ] | ||
wasm-bindgen = [ "rapier3d/wasm-bindgen" ] | ||
graphics = [ "bevy", "bevy_egui" ] | ||
default = ["dim3"] | ||
dim3 = [] | ||
parallel = ["rayon"] | ||
rapier = ["parry", "rapier3d"] | ||
sampling = ["rapier"] | ||
rapier-testbed = ["rapier", "rapier_testbed3d", "graphics"] | ||
rapier-harness = ["rapier-testbed"] | ||
parry = ["parry3d"] | ||
wasm-bindgen = ["rapier3d/wasm-bindgen"] | ||
graphics = ["bevy", "bevy_egui"] | ||
|
||
[lib] | ||
name = "salva3d" | ||
path = "../../src/lib.rs" | ||
required-features = [ "dim3" ] | ||
required-features = ["dim3"] | ||
|
||
[dependencies] | ||
approx = "0.5" | ||
num-traits = "0.2" | ||
fnv = "1.0" | ||
itertools = "0.13" | ||
generational-arena = "0.2" | ||
instant = { version = "0.1", features = [ "now" ] } | ||
instant = { version = "0.1", features = ["now"] } | ||
rayon = { version = "1.8", optional = true } | ||
|
||
nalgebra = "0.33" | ||
|
@@ -45,8 +50,15 @@ rapier_testbed3d = { version = "0.21", optional = true } | |
bevy_egui = { version = "0.26", features = ["immutable_ctx"], optional = true } | ||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
bevy = { version = "0.13", default-features = false, features = ["bevy_winit", "bevy_render", "x11"], optional = true } | ||
bevy = { version = "0.13", default-features = false, features = [ | ||
"bevy_winit", | ||
"bevy_render", | ||
"x11", | ||
], optional = true } | ||
|
||
# Dependencies for WASM only. | ||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
bevy = { version = "0.13", default-features = false, features = ["bevy_winit", "bevy_render"], optional = true } | ||
bevy = { version = "0.13", default-features = false, features = [ | ||
"bevy_winit", | ||
"bevy_render", | ||
], optional = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters