Given a Cargo.toml who enables the feature serde-serialize, and only that feature, i.e.
bevy_rapier3d = { version = "0.13.2", features = [ "serde-serialize" ] }
.. the following compile error appears.
error[E0277]: the trait bound `spherical_joint::SphericalJoint: serde::Serialize` is not satisfied
--> /home/mimi/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_rapier3d-0.13.2/src/dynamics/spherical_joint.rs:132:34
|
132 | pub struct SphericalJointBuilder(SphericalJoint);
| ^^^^^^^^^^^^^^ the trait `serde::Serialize` is not implemented for `spherical_joint::SphericalJoint`
|
note: required by a bound in `serialize_newtype_struct`
--> /home/mimi/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.137/src/ser/mod.rs:904:12
|
904 | T: Serialize;
| ^^^^^^^^^ required by this bound in `serialize_newtype_struct`
Given a
Cargo.toml
who enables the featureserde-serialize
, and only that feature, i.e... the following compile error appears.
The error disappears when the feature is removed.