dimforge / dimforge/bevy_rapier

0.13.0 no longer works with renderless Bevy

Open
#152 10 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
1.6k
Forks
282
PR merge metrics
No merged PRs in 30d

Description

The following *cargo.toml* configuration does not build anymore: `bevy_rapier3d = {version= "0.13.0" ,default-features = false, features = [ "dim3" ]}`

Build output:
```

Compiling bevy_rapier3d v0.13.1
error[E0433]: failed to resolve: could not find `render` in `bevy`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:6:11
|
6 | bevy::render::mesh::{Indices, VertexAttributeValues},
| ^^^^^^ could not find `render` in `bevy`

error[E0433]: failed to resolve: could not find `render` in `bevy`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/plugin/context.rs:11:11
|
11 | use bevy::render::primitives::Aabb;
| ^^^^^^ could not find `render` in `bevy`

error[E0433]: failed to resolve: use of undeclared type `Mesh`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:727:35
|
727 | let vertices = mesh.attribute(Mesh::ATTRIBUTE_POSITION)?;
| ^^^^ use of undeclared type `Mesh`

error[E0433]: failed to resolve: use of undeclared type `VertexAttributeValues`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:731:9
|
731 | VertexAttributeValues::Float32(vtx) => Some(
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `VertexAttributeValues`

error[E0433]: failed to resolve: use of undeclared type `VertexAttributeValues`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:736:9
|
736 | VertexAttributeValues::Float32x3(vtx) => Some(
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `VertexAttributeValues`

error[E0433]: failed to resolve: use of undeclared type `Indices`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:745:9
|
745 | Indices::U16(idx) => idx
| ^^^^^^^ use of undeclared type `Indices`

error[E0433]: failed to resolve: use of undeclared type `Indices`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:749:9
|
749 | Indices::U32(idx) => idx.chunks_exact(3).map(|i| [i[0], i[1], i[2]]).collect(),
| ^^^^^^^ use of undeclared type `Indices`

error[E0412]: cannot find type `Mesh` in this scope
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider.rs:19:17
|
19 | Mesh(Handle),
| ^^^^ not found in this scope
|
help: there is an enum variant `crate::prelude::AsyncCollider::Mesh`; try using the variant's enum
|
19 | Mesh(Handle),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: you might be missing a type parameter
|
17 | pub enum AsyncCollider {
| ++++++

error[E0412]: cannot find type `Mesh` in this scope
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider.rs:21:32
|
21 | ConvexDecomposition(Handle, VHACDParameters),
| ^^^^ not found in this scope
|
help: there is an enum variant `crate::prelude::AsyncCollider::Mesh`; try using the variant's enum
|
21 | ConvexDecomposition(Handle, VHACDParameters),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: you might be missing a type parameter
|
17 | pub enum AsyncCollider {
| ++++++

error[E0412]: cannot find type `Mesh` in this scope
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:161:29
|
161 | pub fn bevy_mesh(mesh: &Mesh) -> Option {
| ^^^^ not found in this scope
|
help: there is an enum variant `crate::prelude::AsyncCollider::Mesh`; try using the variant's enum
|
161 | pub fn bevy_mesh(mesh: &crate::prelude::AsyncCollider) -> Option {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0412]: cannot find type `Mesh` in this scope
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:169:50
|
169 | pub fn bevy_mesh_convex_decomposition(mesh: &Mesh) -> Option {
| ^^^^ not found in this scope
|
help: there is an enum variant `crate::prelude::AsyncCollider::Mesh`; try using the variant's enum
|
169 | pub fn bevy_mesh_convex_decomposition(mesh: &crate::prelude::AsyncCollider) -> Option {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0412]: cannot find type `Mesh` in this scope
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:179:16
|
179 | mesh: &Mesh,
| ^^^^ not found in this scope
|
help: there is an enum variant `crate::prelude::AsyncCollider::Mesh`; try using the variant's enum
|
179 | mesh: &crate::prelude::AsyncCollider,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0412]: cannot find type `Mesh` in this scope
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/geometry/collider_impl.rs:724:41
|
724 | fn extract_mesh_vertices_indices(mesh: &Mesh) -> Option<(Vec>, Vec<[u32; 3]>)> {
| ^^^^ not found in this scope
|
help: there is an enum variant `crate::prelude::AsyncCollider::Mesh`; try using the variant's enum
|
724 | fn extract_mesh_vertices_indices(mesh: &crate::prelude::AsyncCollider) -> Option<(Vec>, Vec<[u32; 3]>)> {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0412]: cannot find type `Mesh` in this scope
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/plugin/systems.rs:544:24
|
544 | meshes: Res>,
| ^^^^ not found in this scope
|
help: there is an enum variant `crate::prelude::AsyncCollider::Mesh`; try using the variant's enum
|
544 | meshes: Res>,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: you might be missing a type parameter
|
542 | pub fn init_async_shapes(
| ++++++

error[E0412]: cannot find type `Aabb` in this scope
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/plugin/context.rs:619:15
|
619 | aabb: Aabb,
| ^^^^ help: a type alias with a similar name exists: `AABB`
|
::: /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/rapier3d-0.12.0/src/geometry/mod.rs:42:1
|
42 | pub type AABB = parry::bounding_volume::AABB;
| --------------------------------------------- similarly named type alias `AABB` defined here

error[E0277]: the trait bound `for<'r, 's, 't0, 't1, 't2, 't3> fn(bevy::prelude::Commands<'r, 's>, bevy::prelude::Res<'t0, bevy::prelude::Assets<[type error]>>, bevy::prelude::Query<'t1, 't2, (bevy::prelude::Entity, &'t3 collider::AsyncCollider), bevy::prelude::Without>) {init_async_shapes}: IntoSystem<(), (), _>` is not satisfied
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/plugin/plugin.rs:86:34
|
86 | .with_system(systems::init_async_shapes)
| ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoSystem<(), (), _>` is not implemented for `for<'r, 's, 't0, 't1, 't2, 't3> fn(bevy::prelude::Commands<'r, 's>, bevy::prelude::Res<'t0, bevy::prelude::Assets<[type error]>>, bevy::prelude::Query<'t1, 't2, (bevy::prelude::Entity, &'t3 collider::AsyncCollider), bevy::prelude::Without>) {init_async_shapes}`
| |
| required by a bound introduced by this call
|
= note: required because of the requirements on the impl of `IntoSystemDescriptor<_>` for `for<'r, 's, 't0, 't1, 't2, 't3> fn(bevy::prelude::Commands<'r, 's>, bevy::prelude::Res<'t0, bevy::prelude::Assets<[type error]>>, bevy::prelude::Query<'t1, 't2, (bevy::prelude::Entity, &'t3 collider::AsyncCollider), bevy::prelude::Without>) {init_async_shapes}`
note: required by a bound in `bevy::prelude::SystemSet::with_system`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.7.0/src/schedule/system_set.rs:80:55
|
80 | pub fn with_system(mut self, system: impl IntoSystemDescriptor) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `bevy::prelude::SystemSet::with_system`

error[E0277]: the trait bound `for<'r, 's, 't0, 't1, 't2, 't3> fn(bevy::prelude::Commands<'r, 's>, bevy::prelude::Res<'t0, bevy::prelude::Assets<[type error]>>, bevy::prelude::Query<'t1, 't2, (bevy::prelude::Entity, &'t3 collider::AsyncCollider), bevy::prelude::Without>) {init_async_shapes}: AsSystemLabel<_>` is not satisfied
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/plugin/plugin.rs:87:61
|
87 | .with_system(systems::apply_scale.after(systems::init_async_shapes))
| ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsSystemLabel<_>` is not implemented for `for<'r, 's, 't0, 't1, 't2, 't3> fn(bevy::prelude::Commands<'r, 's>, bevy::prelude::Res<'t0, bevy::prelude::Assets<[type error]>>, bevy::prelude::Query<'t1, 't2, (bevy::prelude::Entity, &'t3 collider::AsyncCollider), bevy::prelude::Without>) {init_async_shapes}`
| |
| required by a bound introduced by this call
|
note: required by a bound in `bevy::prelude::ParallelSystemDescriptorCoercion::after`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.7.0/src/schedule/system_descriptor.rs:135:40
|
135 | fn after(self, label: impl AsSystemLabel) -> ParallelSystemDescriptor;
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `bevy::prelude::ParallelSystemDescriptorCoercion::after`

error[E0277]: the trait bound `for<'r, 's, 't0, 't1, 't2, 't3> fn(bevy::prelude::Commands<'r, 's>, bevy::prelude::Res<'t0, bevy::prelude::Assets<[type error]>>, bevy::prelude::Query<'t1, 't2, (bevy::prelude::Entity, &'t3 collider::AsyncCollider), bevy::prelude::Without>) {init_async_shapes}: AsSystemLabel<_>` is not satisfied
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.1/src/plugin/plugin.rs:103:36
|
103 | ... .after(systems::init_async_shapes),
| ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsSystemLabel<_>` is not implemented for `for<'r, 's, 't0, 't1, 't2, 't3> fn(bevy::prelude::Commands<'r, 's>, bevy::prelude::Res<'t0, bevy::prelude::Assets<[type error]>>, bevy::prelude::Query<'t1, 't2, (bevy::prelude::Entity, &'t3 collider::AsyncCollider), bevy::prelude::Without>) {init_async_shapes}`
| |
| required by a bound introduced by this call
|
note: required by a bound in `bevy::prelude::ParallelSystemDescriptorCoercion::after`
--> /home/starwolf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.7.0/src/schedule/system_descriptor.rs:135:40
|
135 | fn after(self, label: impl AsSystemLabel) -> ParallelSystemDescriptor;
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `bevy::prelude::ParallelSystemDescriptorCoercion::after`

```
Reproduction:
[rapier-renderless.zip](https://github.com/dimforge/bevy_rapier/files/8633446/rapier-renderless.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.