Skip to content

Commit

Permalink
fix mdbook compilation errors due to multiple matching deps found
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd committed Dec 12, 2024
1 parent 2ac6c28 commit 5b61b90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion design/src/rfcs/rfc0037_http_wrapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ This also enables supporting request extensions for different downstream provide
<summary>Proposed Implementation of `request`</summary>

```rust,ignore
{{#include ../../../rust-runtime/aws-smithy-runtime-api/src/client/http/request.rs}}
{{#include ../../../rust-runtime/aws-smithy-runtime-api/src/http/request.rs}}
```
</details>

Expand Down
4 changes: 2 additions & 2 deletions design/src/server/instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUST_LOG=aws_smithy_http_server=warn,aws_smithy_http_server_python=error

and

```rust
```rust,ignore
# extern crate tracing_subscriber;
# extern crate tracing;
# use tracing_subscriber::filter;
Expand Down Expand Up @@ -88,7 +88,7 @@ let app = PokemonService::builder(config)

The Pokémon service example, located at `/examples/pokemon-service`, sets up a `tracing` `Subscriber` as follows:

```rust
```rust,ignore
# extern crate tracing_subscriber;
use tracing_subscriber::{prelude::*, EnvFilter};
Expand Down
12 changes: 6 additions & 6 deletions design/src/server/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub struct NewService<S> {

and a complementary

```rust
```rust,ignore
# extern crate tower;
# pub struct NewService<S> { inner: S }
use tower::{Layer, Service};
Expand Down Expand Up @@ -137,7 +137,7 @@ where `UpgradeLayer` is the `Layer` converting Smithy model structures to HTTP s

The output of the Smithy service builder provides the user with a `Service<http::Request, Response = http::Response>` implementation. A `Layer` can be applied around the entire `Service`.

```rust,no_run
```rust,ignore
# extern crate aws_smithy_http_server;
# extern crate pokemon_service_server_sdk;
# extern crate tower;
Expand Down Expand Up @@ -175,7 +175,7 @@ A _single_ layer can be applied to _all_ routes inside the `Router`. This
exists as a method on the `PokemonServiceConfig` builder object, which is passed into the
service builder.

```rust,no_run
```rust,ignore
# extern crate tower;
# extern crate pokemon_service_server_sdk;
# extern crate aws_smithy_http_server;
Expand Down Expand Up @@ -209,7 +209,7 @@ Note that requests pass through this middleware immediately _after_ routing succ

A "HTTP layer" can be applied to specific operations.

```rust,no_run
```rust,ignore
# extern crate tower;
# extern crate pokemon_service_server_sdk;
# extern crate aws_smithy_http_server;
Expand Down Expand Up @@ -253,7 +253,7 @@ This middleware transforms the operations HTTP requests and responses.

A "model layer" can be applied to specific operations.

```rust,no_run
```rust,ignore
# extern crate tower;
# extern crate pokemon_service_server_sdk;
# extern crate aws_smithy_http_server;
Expand Down Expand Up @@ -296,7 +296,7 @@ Suppose we want to apply a different `Layer` to every operation. In this case, p

Consider the following middleware:

```rust,no_run
```rust,ignore
# extern crate aws_smithy_http_server;
# extern crate tower;
use aws_smithy_http_server::shape_id::ShapeId;
Expand Down

0 comments on commit 5b61b90

Please sign in to comment.