Skip to main content

Crate bevy_iroh

Crate bevy_iroh 

Source
Expand description

Share Bevy entities between peers over iroh.

ⓘ
App::new()
    .add_plugins((DefaultPlugins, IrohPlugin::default()))
    .replicate::<Cube>()
    .run();

commands.spawn(Room::host("hello"));
commands.spawn((Cube, Shared::default(), Transform::default()));

Re-exports§

pub use net::FastPaths;
pub use net::Relays;
pub use net::RoomTicket;
pub use net::Via;
pub use net::stats::Stats;
pub use node::Identity;
pub use node::Iroh;
pub use node::IrohPlugin;
pub use node::IrohSet;
pub use node::IrohTask;
pub use node::NetStats;
pub use node::StartError;
pub use node::StartIroh;
pub use node::StopIroh;
pub use iroh;

Modules§

media
Voice and video over the same endpoint. Behind the media feature.
message
Typed messages between peers: anything that is not an entity.
net
The transport, with no Bevy in it.
node
The seam between tokio and Bevy.
prelude
replicate
Entity replication: mark an entity Shared and peers get it.
room
Rooms and who is in them.

Structs§

TopicId
The identifier for a topic