Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 189 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
members = [
"bevy_matchbox",
"flecs_matchbox",
"matchbox_protocol",
"matchbox_socket",
"matchbox_server",
Expand Down
49 changes: 49 additions & 0 deletions flecs_matchbox/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[package]
name = "flecs_matchbox"
version = "0.1.0"
authors = [
"Johan Helsing <johanhelsing@gmail.com>",
"nomaterials <nomaterials@gmail.com>",
]
edition = "2021"
description = "A flecs integration for the matchbox WebRTC networking library"
license = "MIT OR Apache-2.0"
keywords = ["flecs", "webrtc", "peer-to-peer", "networking", "wasm"]
categories = [
"network-programming",
"game-development",
"wasm",
"web-programming",
]
repository = "https://github.com/johanhelsing/matchbox"
homepage = "https://github.com/johanhelsing/matchbox"
readme = "README.md"

[features]
default = []
signaling = ["dep:matchbox_signaling", "dep:async-compat"]

[dependencies]
flecs_ecs = "0.1.1"
matchbox_socket = { version = "0.12.0", path = "../matchbox_socket" }
cfg-if = "1.0"
futures-lite = "2.3.0"
log = "0.4.21"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
matchbox_signaling = { version = "0.12.0", path = "../matchbox_signaling", optional = true }
async-compat = { version = "0.2.2", optional = true }

[dev-dependencies]
env_logger = "0.11.3"

[[example]]
name = "hello"

[[example]]
name = "hello_host"
required-features = ["signaling"]

[[example]]
name = "hello_signaling"
required-features = ["signaling"]
7 changes: 7 additions & 0 deletions flecs_matchbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# flecs_matchbox

A [`Flecs-Rust`](https://github.com/Indra-db/Flecs-Rust) integration for the `matchbox` WebRTC networking library.

This crate provides a simple, resource-based API to add peer-to-peer WebRTC networking to your `Flecs-Rust` application, making it easy to create web-based multiplayer games and applications.

It is heavily inspired by the [`bevy_matchbox`](https://github.com/johanhelsing/matchbox/tree/main/bevy_matchbox) crate and follows its API design closely.
Loading
Loading