Replace crossbeam channel with std::sync::mpsc (#861)

* Replace crossbeam channel with std::sync::mpsc

- Replace all uses of crossbeam::channel with std::sync::mpsc
- Remove crossbeam dependency from all Cargo.toml files
- Update documentation to remove crossbeam references
- Use std::sync::mpsc::channel() instead of crossbeam::channel::unbounded()

Fixes #828

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update mod.rs

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Nam Se Hyun
2025-07-24 23:31:59 +09:00
committed by GitHub
parent 0f5b4a4d88
commit f4b659ed02
12 changed files with 6 additions and 15 deletions

View File

@@ -25,7 +25,6 @@ pub extern crate parry3d as parry;
#[cfg(all(feature = "dim3", feature = "f64"))]
pub extern crate parry3d_f64 as parry;
pub extern crate crossbeam;
pub extern crate nalgebra as na;
#[cfg(feature = "serde-serialize")]
#[macro_use]

View File

@@ -1,7 +1,7 @@
use crate::dynamics::RigidBodySet;
use crate::geometry::{ColliderSet, CollisionEvent, ContactForceEvent, ContactPair};
use crate::math::Real;
use crossbeam::channel::Sender;
use std::sync::mpsc::Sender;
bitflags::bitflags! {
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
@@ -90,14 +90,14 @@ impl EventHandler for () {
}
}
/// A collision event handler that collects events into a crossbeam channel.
/// A collision event handler that collects events into a channel.
pub struct ChannelEventCollector {
collision_event_sender: Sender<CollisionEvent>,
contact_force_event_sender: Sender<ContactForceEvent>,
}
impl ChannelEventCollector {
/// Initialize a new collision event handler from crossbeam channel senders.
/// Initialize a new collision event handler from channel senders.
pub fn new(
collision_event_sender: Sender<CollisionEvent>,
contact_force_event_sender: Sender<ContactForceEvent>,