Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.17 #600

Merged
merged 2 commits into from
Aug 17, 2024
Merged
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
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ app.add_channel::<Channel1>(ChannelSettings {
client, so that your inputs can feel responsive
- **Snapshot interpolation**: with just a one-line change, you can enable Snapshot interpolation so that entities
are smoothly interpolated even if replicated infrequently.
- **Client-authoritative replication**: you can also replicate entities from the client to the server.
- **Client-authoritative replication**: you can also replicate entities from the client to the server. The authority over the entity is transferable between the client and the server.
- **Pre-spawning predicted entities**: you can spawn Predicted entities on the client first, and then transfer the
authority to
the server. This ensures that the entity is spawned immediately, but will still be controlled by the server.
authority to the server. This ensures that the entity is spawned immediately, but will still be controlled by the server.
- **Entity mapping**: *lightyear* also supports replicating components/messages that contain references to other
entities. The entities will be mapped from the local World to the remote World.
- **Interest management**: *lightyear* supports replicating only a subset of the World to clients. Interest
Expand All @@ -112,8 +111,8 @@ app.add_channel::<Channel1>(ChannelSettings {

## Supported bevy version

| Lightyear | Bevy |
|------------|------|
| 0.16 | 0.14 |
| 0.10-0.15 | 0.13 |
| 0.1-0.9 | 0.12 |
| Lightyear | Bevy |
|-----------|------|
| 0.16-0.17 | 0.14 |
| 0.10-0.15 | 0.13 |
| 0.1-0.9 | 0.12 |
4 changes: 2 additions & 2 deletions examples/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lightyear_examples_common"
version = "0.16.4"
version = "0.17.0"
authors = ["Charles Bournhonesque <charlesbour@gmail.com>"]
edition = "2021"
rust-version = "1.76"
Expand All @@ -13,7 +13,7 @@ license = "MIT OR Apache-2.0"
exclude = ["/tests"]

[dependencies]
lightyear = { version = "0.16.4", path = "../../lightyear", features = [
lightyear = { version = "0.17.0", path = "../../lightyear", features = [
"steam",
"webtransport",
"websocket",
Expand Down
94 changes: 47 additions & 47 deletions lightyear/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lightyear"
version = "0.16.4"
version = "0.17.0"
authors = ["Charles Bournhonesque <charlesbour@gmail.com>"]
edition = "2021"
rust-version = "1.76"
Expand All @@ -17,29 +17,29 @@ exclude = ["/tests"]
big_messages = []
trace = []
metrics = [
"dep:metrics",
"metrics-util",
"metrics-tracing-context",
"metrics-exporter-prometheus",
"dep:metrics",
"metrics-util",
"metrics-tracing-context",
"metrics-exporter-prometheus",
]
mock_time = ["dep:mock_instant"]
webtransport = [
"dep:wtransport",
"dep:xwt-core",
"dep:xwt-web-sys",
"dep:web-sys",
"dep:ring",
"dep:wasm-bindgen-futures",
"dep:wtransport",
"dep:xwt-core",
"dep:xwt-web-sys",
"dep:web-sys",
"dep:ring",
"dep:wasm-bindgen-futures",
]
leafwing = ["dep:leafwing-input-manager"]
avian2d = ["dep:avian2d"]
avian3d = ["dep:avian3d", "avian3d/3d"]
websocket = [
"dep:tokio-tungstenite",
"dep:futures-util",
"dep:web-sys",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
"dep:tokio-tungstenite",
"dep:futures-util",
"dep:web-sys",
"dep:wasm-bindgen",
"dep:wasm-bindgen-futures",
]
steam = ["dep:steamworks"]

Expand Down Expand Up @@ -81,14 +81,14 @@ serde = { version = "1", features = ["derive"] }
chacha20poly1305 = { version = "0.10", features = ["std"] }

# derive
lightyear_macros = { version = "0.16.4", path = "../macros" }
lightyear_macros = { version = "0.17.0", path = "../macros" }

# tracing
tracing = "0.1.40"
tracing-log = "0.2.0"
tracing-subscriber = { version = "0.3.17", features = [
"registry",
"env-filter",
"registry",
"env-filter",
] }

# server
Expand All @@ -99,19 +99,19 @@ metrics = { version = "0.23", optional = true }
metrics-util = { version = "0.15", optional = true }
metrics-tracing-context = { version = "0.15", optional = true }
metrics-exporter-prometheus = { version = "0.15.1", optional = true, default-features = false, features = [
"http-listener",
"http-listener",
] }

# bevy
bevy = { version = "0.14", default-features = false, features = [
"multi_threaded",
"bevy_state",
"serialize",
"multi_threaded",
"bevy_state",
"serialize",
] }

# compression
lz4_flex = { version = "0.11", optional = true, default-features = false, features = [
"std",
"std",
] }

# WebSocket
Expand All @@ -120,8 +120,8 @@ futures-util = { version = "0.3.30", optional = true }
# transport
# we don't need any tokio features, we use only use the tokio channels
tokio = { version = "1.36", features = [
"sync",
"macros",
"sync",
"macros",
], default-features = false }
futures = "0.3.30"
async-compat = "0.2.3"
Expand All @@ -133,14 +133,14 @@ async-channel = "2.2.0"
steamworks = { version = "0.11", optional = true }
# webtransport
wtransport = { version = "=0.1.14", optional = true, features = [
"quinn",
"self-signed",
"dangerous-configuration",
"quinn",
"self-signed",
"dangerous-configuration",
] }
# websocket
tokio-tungstenite = { version = "0.23.0", optional = true, features = [
"connect",
"handshake",
"connect",
"handshake",
] }
# compression
zstd = { version = "0.13.1", optional = true }
Expand All @@ -149,26 +149,26 @@ zstd = { version = "0.13.1", optional = true }
console_error_panic_hook = { version = "0.1.7" }
ring = { version = "0.17.8", optional = true, default-features = false }
web-sys = { version = "0.3", optional = true, features = [
"Document",
"WebTransport",
"WebTransportHash",
"WebTransportOptions",
"WebTransportBidirectionalStream",
"WebTransportSendStream",
"WebTransportReceiveStream",
"ReadableStreamDefaultReader",
"WritableStreamDefaultWriter",
"WebTransportDatagramDuplexStream",
"WebSocket",
"CloseEvent",
"ErrorEvent",
"MessageEvent",
"BinaryType",
"Document",
"WebTransport",
"WebTransportHash",
"WebTransportOptions",
"WebTransportBidirectionalStream",
"WebTransportSendStream",
"WebTransportReceiveStream",
"ReadableStreamDefaultReader",
"WritableStreamDefaultWriter",
"WebTransportDatagramDuplexStream",
"WebSocket",
"CloseEvent",
"ErrorEvent",
"MessageEvent",
"BinaryType",
] }
bevy_web_keepalive = "0.3"
futures-lite = { version = "2.1.0", optional = true }
getrandom = { version = "0.2.11", features = [
"js", # feature 'js' is required for wasm
"js", # feature 'js' is required for wasm
] }
xwt-core = { version = "0.5", optional = true }
xwt-web-sys = { version = "0.12", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lightyear_macros"
version = "0.16.4"
version = "0.17.0"
authors = ["Charles Bournhonesque <charlesbour@gmail.com>"]
edition = "2021"
rust-version = "1.65"
Expand Down
Loading