build: enable runtime server features by default

This commit is contained in:
Keisuke Hirata 2026-07-29 19:57:59 +09:00
parent fb285b17e4
commit 0b64eab148
No known key found for this signature in database
6 changed files with 4 additions and 7 deletions

View File

@ -17,7 +17,7 @@ path = "src/worker_runtime_bin.rs"
required-features = ["ws-server", "fs-store"] required-features = ["ws-server", "fs-store"]
[features] [features]
default = [] default = ["ws-server", "fs-store"]
fs-store = [] fs-store = []
http-server = ["dep:axum", "dep:tower", "dep:reqwest"] http-server = ["dep:axum", "dep:tower", "dep:reqwest"]
ws-server = ["http-server", "axum/ws", "dep:futures", "tokio/sync"] ws-server = ["http-server", "axum/ws", "dep:futures", "tokio/sync"]

View File

@ -8,7 +8,6 @@ From the repository root:
```bash ```bash
cargo run -p worker-runtime \ cargo run -p worker-runtime \
--features ws-server,fs-store \
--bin yoi-runtime \ --bin yoi-runtime \
-- --bind 127.0.0.1:38800 -- --bind 127.0.0.1:38800
``` ```
@ -23,7 +22,6 @@ To bind another address explicitly:
```bash ```bash
cargo run -p worker-runtime \ cargo run -p worker-runtime \
--features ws-server,fs-store \
--bin yoi-runtime \ --bin yoi-runtime \
-- --bind 0.0.0.0:38800 -- --bind 0.0.0.0:38800
``` ```

View File

@ -30,7 +30,7 @@ memory.workspace = true
tokio = { workspace = true, features = ["fs", "macros", "net", "rt-multi-thread", "sync"] } tokio = { workspace = true, features = ["fs", "macros", "net", "rt-multi-thread", "sync"] }
tokio-tungstenite.workspace = true tokio-tungstenite.workspace = true
worker.workspace = true worker.workspace = true
worker-runtime = { workspace = true, features = ["ws-server", "fs-store"] } worker-runtime.workspace = true
toml.workspace = true toml.workspace = true
tracing.workspace = true tracing.workspace = true
url.workspace = true url.workspace = true

View File

@ -137,7 +137,6 @@ For repository builds, the equivalent cargo command is:
```bash ```bash
cargo run -p worker-runtime \ cargo run -p worker-runtime \
--features ws-server,fs-store \
--bin yoi-runtime \ --bin yoi-runtime \
-- --bind 127.0.0.1:38800 -- --bind 127.0.0.1:38800
``` ```

View File

@ -93,7 +93,7 @@ rustPlatform.buildRustPackage rec {
postBuild = '' postBuild = ''
cargo build --offline --profile release -p yoi-workspace-server --bin yoi-server cargo build --offline --profile release -p yoi-workspace-server --bin yoi-server
cargo build --offline --profile release -p worker-runtime --bin yoi-runtime --features ws-server,fs-store cargo build --offline --profile release -p worker-runtime --bin yoi-runtime
''; '';
# The package check is a credential-free install smoke check below. Running the # The package check is a credential-free install smoke check below. Running the

View File

@ -307,7 +307,7 @@ build_runtime_backend() {
log "building runtime binary" log "building runtime binary"
( (
cd "$ROOT_DIR" cd "$ROOT_DIR"
run_cargo build -p worker-runtime --features ws-server,fs-store --bin yoi-runtime run_cargo build -p worker-runtime --bin yoi-runtime
) )
else else
log "runtime disabled by YOI_DEV_RUNTIME_ENABLED=0; skipping runtime build" log "runtime disabled by YOI_DEV_RUNTIME_ENABLED=0; skipping runtime build"