First public release of Rapier.

This commit is contained in:
Sébastien Crozet
2020-08-25 22:10:25 +02:00
commit 754a48b7ff
175 changed files with 32819 additions and 0 deletions

53
build/rapier2d/Cargo.toml Normal file
View File

@@ -0,0 +1,53 @@
# Name idea: bident for 2D and trident for 3D
[package]
name = "rapier2d"
version = "0.1.0"
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
description = "2-dimensional physics engine in Rust."
documentation = "http://rapier.rs/rustdoc/rapier2d/index.html"
homepage = "http://rapier.rs"
repository = "https://github.com/rustsim/rapier"
readme = "README.md"
keywords = [ "physics", "dynamics", "rigid", "real-time", "joints" ]
license = "Apache-2.0"
edition = "2018"
[features]
default = [ "dim2" ]
dim2 = [ ]
parallel = [ "rayon" ]
simd-stable = [ "simba/wide", "simd-is-enabled" ]
simd-nightly = [ "simba/packed_simd", "simd-is-enabled" ]
# Do not enable this feature directly. It is automatically
# enabled with the "simd-stable" or "simd-nightly" feature.
simd-is-enabled = [ ]
wasm-bindgen = [ "instant/wasm-bindgen" ]
serde-serialize = [ "nalgebra/serde-serialize", "ncollide2d/serde-serialize", "serde", "generational-arena/serde", "bit-vec/serde", "arrayvec/serde" ]
enhanced-determinism = [ "simba/libm_force", "indexmap" ]
[lib]
name = "rapier2d"
path = "../../src/lib.rs"
required-features = [ "dim2" ]
[dependencies]
vec_map = "0.8"
instant = { version = "0.1", features = [ "now" ]}
num-traits = "0.2"
nalgebra = "0.22"
ncollide2d = "0.24"
simba = "0.2"
approx = "0.3"
rayon = { version = "1", optional = true }
crossbeam = "0.7"
generational-arena = "0.2"
arrayvec = "0.5"
bit-vec = "0.6"
rustc-hash = "1"
serde = { version = "1", features = [ "derive" ], optional = true }
indexmap = { version = "1", features = [ "serde-1" ], optional = true }
[dev-dependencies]
bincode = "1"
serde = { version = "1", features = [ "derive" ] }

53
build/rapier3d/Cargo.toml Normal file
View File

@@ -0,0 +1,53 @@
# Name idea: bident for 2D and trident for 3D
[package]
name = "rapier3d"
version = "0.1.0"
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
description = "3-dimensional physics engine in Rust."
documentation = "http://rapier.rs/rustdoc/rapier2d/index.html"
homepage = "http://rapier.rs"
repository = "https://github.com/rustsim/rapier"
readme = "README.md"
keywords = [ "physics", "dynamics", "rigid", "real-time", "joints" ]
license = "Apache-2.0"
edition = "2018"
[features]
default = [ "dim3" ]
dim3 = [ ]
parallel = [ "rayon" ]
simd-stable = [ "simba/wide", "simd-is-enabled" ]
simd-nightly = [ "simba/packed_simd", "simd-is-enabled" ]
# Do not enable this feature directly. It is automatically
# enabled with the "simd-stable" or "simd-nightly" feature.
simd-is-enabled = [ ]
wasm-bindgen = [ "instant/wasm-bindgen" ]
serde-serialize = [ "nalgebra/serde-serialize", "ncollide3d/serde-serialize", "serde", "generational-arena/serde", "bit-vec/serde" ]
enhanced-determinism = [ "simba/libm_force", "indexmap" ]
[lib]
name = "rapier3d"
path = "../../src/lib.rs"
required-features = [ "dim3" ]
[dependencies]
vec_map = "0.8"
instant = { version = "0.1", features = [ "now" ]}
num-traits = "0.2"
nalgebra = "0.22"
ncollide3d = "0.24"
simba = "0.2"
approx = "0.3"
rayon = { version = "1", optional = true }
crossbeam = "0.7"
generational-arena = "0.2"
arrayvec = "0.5"
bit-vec = "0.6"
rustc-hash = "1"
serde = { version = "1", features = [ "derive" ], optional = true }
indexmap = { version = "1", features = [ "serde-1" ], optional = true }
[dev-dependencies]
bincode = "1"
serde = { version = "1", features = [ "derive" ] }

View File

@@ -0,0 +1,45 @@
[package]
name = "rapier_testbed2d"
version = "0.1.0"
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
description = "Testbed for the 2-dimensional physics engine in Rust."
homepage = "http://rapier.org"
repository = "https://github.com/rustsim/rapier"
keywords = [ "physics", "dynamics", "rigid", "real-time", "joints" ]
license = "Apache-2.0"
edition = "2018"
[lib]
name = "rapier_testbed2d"
path = "../../src_testbed/lib.rs"
required-features = [ "dim2" ]
[features]
default = [ "dim2" ]
dim2 = [ ]
parallel = [ "rapier2d/parallel", "num_cpus" ]
other-backends = [ "wrapped2d", "nphysics2d" ]
[dependencies]
nalgebra = "0.22"
kiss3d = { version = "0.25", features = [ "conrod" ] }
rand = "0.7"
rand_pcg = "0.2"
instant = { version = "0.1", features = [ "web-sys", "now" ]}
bitflags = "1"
num_cpus = { version = "1", optional = true }
wrapped2d = { version = "0.4", optional = true }
ncollide2d = "0.24"
nphysics2d = { version = "0.17", optional = true }
crossbeam = "0.7"
bincode = "1"
flexbuffers = "0.1"
md5 = "0.7"
[dependencies.rapier2d]
path = "../rapier2d"
version = "0.1"
features = [ "serde-serialize" ]

View File

@@ -0,0 +1,47 @@
[package]
name = "rapier_testbed3d"
version = "0.1.0"
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
description = "Testbed for the 3-dimensional physics engine in Rust."
homepage = "http://rapier.org"
repository = "https://github.com/rustsim/rapier"
keywords = [ "physics", "dynamics", "rigid", "real-time", "joints" ]
license = "Apache-2.0"
edition = "2018"
[lib]
name = "rapier_testbed3d"
path = "../../src_testbed/lib.rs"
required-features = [ "dim3" ]
[features]
default = [ "dim3" ]
dim3 = [ ]
parallel = [ "rapier3d/parallel", "num_cpus" ]
other-backends = [ "physx", "physx-sys", "glam", "nphysics3d" ]
[dependencies]
nalgebra = "0.22"
kiss3d = { version = "0.25", features = [ "conrod" ] }
rand = "0.7"
rand_pcg = "0.2"
instant = { version = "0.1", features = [ "web-sys", "now" ]}
bitflags = "1"
glam = { version = "0.8", optional = true }
num_cpus = { version = "1", optional = true }
ncollide3d = "0.24"
nphysics3d = { version = "0.17", optional = true }
physx = { version = "0.6", optional = true }
physx-sys = { version = "0.4", optional = true }
crossbeam = "0.7"
bincode = "1"
flexbuffers = "0.1"
serde_cbor = "0.11"
md5 = "0.7"
serde = { version = "1", features = [ "derive" ] }
[dependencies.rapier3d]
path = "../rapier3d"
version = "0.1"
features = [ "serde-serialize" ]