Skip to content

Commit b9d6b11

Browse files
committed
Auto merge of #3114 - Turbo87:default-run, r=jtgeibel
Cargo.toml: Specify `server` as `default-run` field This allows us to use just `cargo run` instead of `cargo run --bin server` r? `@pietroalbini`
2 parents 1aa5822 + bb68a15 commit b9d6b11

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)