Skip to content

Commit bb68a15

Browse files
committed
Cargo.toml: Specify server as default-run field
This allows us to use just `cargo run` instead of `cargo run --bin server`
1 parent deff144 commit bb68a15

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ license = "MIT OR Apache-2.0"
66
repository = "https://github.com/rust-lang/crates.io"
77
description = "Backend of crates.io"
88
edition = "2018"
9+
default-run = "server"
910

1011
[workspace]
1112

docker_entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ done
88

99
./script/init-local-index.sh
1010

11-
cargo run --bin server
11+
cargo run

docs/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Build and start the server by running this command (you'll need to stop this
348348
with `CTRL-C` and rerun this command every time you change the backend code):
349349
350350
```
351-
cargo run --bin server
351+
cargo run
352352
```
353353
354354
Then start the background worker (which will process uploaded READMEs):

0 commit comments

Comments
 (0)