Skip to content

Commit

Permalink
Merge pull request #1189 from tpmccallum/tidy-up-rust-links
Browse files Browse the repository at this point in the history
Signed-off-by: tpmccallum <[email protected]>
  • Loading branch information
Timothy McCallum authored Feb 23, 2024
2 parents 1a23836 + 84ec8c6 commit c9380eb
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion content/spin/v1/http-outbound.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ println!("Status: {}", response.status().as_str());
* The Rust SDK surfaces the idiomatic `http` types rather than the raw Wasm interface types. For example, the `method` in Rust is a string, not an enum.
* Request and response bodies are of type `Option<bytes::Bytes>`.

You can find a complete example for using outbound HTTP in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/http-rust-outbound-http).
You can find a complete example for using outbound HTTP in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/http-outbound).

{{ blockEnd }}

Expand Down
2 changes: 1 addition & 1 deletion content/spin/v1/rdbms-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ match rowset.rows.first() {
* Modified row counts are returned as `u64`. (MySQL `execute` does not return the modified row count.)
* All functions wrap the return in `anyhow::Result`.

You can find complete examples for using relational databases in the Spin repository on GitHub ([MySQL](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/rust-outbound-mysql), [PostgreSQL](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/rust-outbound-pg)).
You can find complete examples for using relational databases in the Spin repository on GitHub ([MySQL](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/mysql), [PostgreSQL](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/postgres)).

{{ blockEnd }}

Expand Down
2 changes: 1 addition & 1 deletion content/spin/v1/redis-outbound.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ let value = redis::get(&address, &key)?;

* The arguments and results are enums, representing integers, binary payloads, and (for results) status and nil values.

You can find a complete Rust code example for using outbound Redis from an HTTP component in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/rust-outbound-redis). Please also see this, related, [outbound Redis (using Rust) section](./rust-components#storing-data-in-redis-from-rust-components).
You can find a complete Rust code example for using outbound Redis from an HTTP component in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/redis-outbound). Please also see this, related, [outbound Redis (using Rust) section](./rust-components#storing-data-in-redis-from-rust-components).

{{ blockEnd }}

Expand Down
4 changes: 2 additions & 2 deletions content/spin/v1/rust-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ Hello, there!
```

> You can find a complete example for a Redis triggered component in the
> [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/redis-rust).
> [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/redis).
## Sending Outbound HTTP Requests

Expand Down Expand Up @@ -362,7 +362,7 @@ This HTTP component can be paired with a Redis component, triggered on new
messages on the `messages` Redis channel.

> You can find a complete example for using outbound Redis from an HTTP component
> in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/rust-outbound-redis).
> in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/redis-outbound).
## Storing Data in the Spin Key-Value Store

Expand Down
2 changes: 1 addition & 1 deletion content/spin/v2/http-outbound.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async fn handle_request(_req: Request) -> anyhow::Result<impl IntoResponse> {
}
```

For an example of receiving the response in a streaming style, [see this example in the Spin repository](https://github.com/fermyon/spin-rust-sdk/blob/main/examples/wasi-http-rust-streaming-outgoing-body/src/lib.rs).
For an example of receiving the response in a streaming style, [see this example in the Spin repository](https://github.com/fermyon/spin-rust-sdk/blob/main/examples/wasi-http-streaming-outgoing-body/src/lib.rs).

{{ blockEnd }}

Expand Down
2 changes: 1 addition & 1 deletion content/spin/v2/rdbms-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ match rowset.rows.first() {
* Modified row counts are returned as `u64`. (MySQL `execute` does not return the modified row count.)
* All functions wrap the return in `anyhow::Result`.

You can find complete examples for using relational databases in the Spin repository on GitHub ([MySQL](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/rust-outbound-mysql), [PostgreSQL](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/rust-outbound-pg)).
You can find complete examples for using relational databases in the Spin repository on GitHub ([MySQL](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/mysql), [PostgreSQL](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/postgres)).

For full information about the MySQL and PostgreSQL APIs, see [the Spin SDK reference documentation](https://fermyon.github.io/rust-docs/spin/main/spin_sdk/index.html).

Expand Down
2 changes: 1 addition & 1 deletion content/spin/v2/redis-outbound.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ For full details of the Redis API, see the [Spin SDK reference documentation](ht

* The arguments and results are enums, representing integers, binary payloads, and (for results) status and nil values.

You can find a complete Rust code example for using outbound Redis from an HTTP component in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/rust-outbound-redis). Please also see this, related, [outbound Redis (using Rust) section](./rust-components#storing-data-in-redis-from-rust-components).
You can find a complete Rust code example for using outbound Redis from an HTTP component in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/redis-outbound). Please also see this, related, [outbound Redis (using Rust) section](./rust-components#storing-data-in-redis-from-rust-components).

{{ blockEnd }}

Expand Down
6 changes: 3 additions & 3 deletions content/spin/v2/rust-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Hello, there!
```

> You can find a complete example for a Redis triggered component in the
> [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/redis-rust).
> [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/redis).
## Sending Outbound HTTP Requests

Expand Down Expand Up @@ -293,7 +293,7 @@ proxies or URL shorteners.
## Routing in a Component

The Rust SDK [provides a router](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/http-rust-router) that makes it easier to handle routing within a component:
The Rust SDK [provides a router](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/http-router) that makes it easier to handle routing within a component:

```rust
use anyhow::Result;
Expand Down Expand Up @@ -408,7 +408,7 @@ This HTTP component can be paired with a Redis component, triggered on new
messages on the `messages` Redis channel.

> You can find a complete example for using outbound Redis from an HTTP component
> in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/rust-outbound-redis).
> in the [Spin repository on GitHub](https://github.com/fermyon/spin-rust-sdk/tree/main/examples/redis-outbound).
## Storing Data in the Spin Key-Value Store

Expand Down

0 comments on commit c9380eb

Please sign in to comment.