Skip to content

Commit 4ba6063

Browse files
authored
Move all binaries in the Pokémon service example under src/bin (#1788)
We're currently being inconsistent in that only the TLS example is under `src/bin`, but the other two are under `src/`.
1 parent 6322569 commit 4ba6063

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

rust-runtime/aws-smithy-http-server/examples/pokemon-service/Cargo.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,37 @@ description = "A smithy Rust service to retrieve information about Pokémon."
88
default-run = "pokemon-service"
99

1010
[[bin]]
11-
name = "pokemon-service-tls"
12-
path = "src/bin/pokemon-service-tls.rs"
11+
name = "pokemon-service"
12+
path = "src/bin/pokemon-service.rs"
1313

1414
[[bin]]
15-
name = "pokemon-service"
16-
path = "src/main.rs"
15+
name = "pokemon-service-tls"
16+
path = "src/bin/pokemon-service-tls.rs"
1717

1818
[[bin]]
1919
name = "pokemon-service-lambda"
20-
path = "src/lambda.rs"
20+
path = "src/bin/pokemon-service-lambda.rs"
2121

2222
[dependencies]
2323
async-stream = "0.3"
2424
clap = { version = "~3.2.1", features = ["derive"] }
2525
hyper = {version = "0.14.12", features = ["server"] }
26-
lambda_http = "0.6.0"
2726
rand = "0.8"
2827
tokio = "1.20.1"
2928
tower = "0.4"
3029
tower-http = { version = "0.3", features = ["trace"] }
3130
tracing = "0.1"
3231
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
3332

34-
# These dependencies are only required for `pokemon-service-tls`.
33+
# These dependencies are only required for the `pokemon-service-tls` program.
3534
tls-listener = { version = "0.5.1", features = ["rustls", "hyper-h2"] }
3635
tokio-rustls = "0.23.4"
3736
rustls-pemfile = "1.0.1"
3837
futures-util = "0.3"
3938

39+
# This dependency is only required for the `pokemon-service-lambda` program.
40+
lambda_http = "0.6.0"
41+
4042
# Local paths
4143
aws-smithy-http-server = { path = "../../" }
4244
pokemon-service-server-sdk = { path = "../pokemon-service-server-sdk/" }
@@ -47,7 +49,7 @@ home = "0.5"
4749
serial_test = "0.7.0"
4850
wrk-api-bench = "0.0.7"
4951

50-
# These dependencies are only required for testing `pokemon-service-tls`.
52+
# This dependency is only required for testing the `pokemon-service-tls` program.
5153
hyper-rustls = { version = "0.23.0", features = ["http2"] }
5254

5355
# Local paths

0 commit comments

Comments
 (0)