build: enable runtime server features by default
This commit is contained in:
@@ -17,7 +17,7 @@ path = "src/worker_runtime_bin.rs"
|
||||
required-features = ["ws-server", "fs-store"]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
default = ["ws-server", "fs-store"]
|
||||
fs-store = []
|
||||
http-server = ["dep:axum", "dep:tower", "dep:reqwest"]
|
||||
ws-server = ["http-server", "axum/ws", "dep:futures", "tokio/sync"]
|
||||
|
||||
@@ -8,7 +8,6 @@ From the repository root:
|
||||
|
||||
```bash
|
||||
cargo run -p worker-runtime \
|
||||
--features ws-server,fs-store \
|
||||
--bin yoi-runtime \
|
||||
-- --bind 127.0.0.1:38800
|
||||
```
|
||||
@@ -23,7 +22,6 @@ To bind another address explicitly:
|
||||
|
||||
```bash
|
||||
cargo run -p worker-runtime \
|
||||
--features ws-server,fs-store \
|
||||
--bin yoi-runtime \
|
||||
-- --bind 0.0.0.0:38800
|
||||
```
|
||||
|
||||
@@ -30,7 +30,7 @@ memory.workspace = true
|
||||
tokio = { workspace = true, features = ["fs", "macros", "net", "rt-multi-thread", "sync"] }
|
||||
tokio-tungstenite.workspace = true
|
||||
worker.workspace = true
|
||||
worker-runtime = { workspace = true, features = ["ws-server", "fs-store"] }
|
||||
worker-runtime.workspace = true
|
||||
toml.workspace = true
|
||||
tracing.workspace = true
|
||||
url.workspace = true
|
||||
|
||||
Reference in New Issue
Block a user