Skip to content

Commit

Permalink
chore: rename middleware dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Oct 29, 2023
1 parent 5d36d72 commit 0de1c02
Show file tree
Hide file tree
Showing 21 changed files with 33 additions and 28 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ members = [
"json/json-validation",
"json/json",
"json/jsonrpc",
"middleware/middleware-encrypted-payloads",
"middleware/middleware-ext-mut",
"middleware/middleware-http-to-https",
"middleware/middleware",
"middleware/encrypted-payloads",
"middleware/http-to-https",
"middleware/rate-limit",
"middleware/request-extensions",
"middleware/various",
"protobuf",
"run-in-thread",
"server-sent-events",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "middleware-encrypted-payloads"
version = "1.0.0"
edition = "2021"
publish.workspace = true
edition.workspace = true

[dependencies]
actix-http.workspace = true
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "middleware-http-to-https"
version = "1.0.0"
edition = "2021"
publish.workspace = true
edition.workspace = true

[dependencies]
actix-web = { workspace = true, features = ["rustls-0_21"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Now, the only problem left to solve is, to listen to **HTTP** connections as wel
## Usage

```sh
cd middleware/middleware-http-to-https
cd middleware/http-to-https
cargo run
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "middleware-ext-mut"
name = "middleware-request-extensions"
version = "1.0.0"
edition = "2021"
publish.workspace = true
edition.workspace = true

[dependencies]
actix-web.workspace = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Middleware: Add/Retrieve Request-Local Data

This example showcases a middleware that adds and retrieves request-local data. See also the [middleware guide](https://actix.rs/docs/middleware/).
This example showcases a middleware that adds and retrieves request-local data. See also the [middleware guide](https://actix.rs/docs/middleware).

## Usage

```sh
cd middleware/middleware-ext-mut
cd middleware/request-extensions
cargo run
```

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "middleware-example"
name = "middleware-various"
version = "1.0.0"
edition = "2021"
publish.workspace = true
edition.workspace = true

[dependencies]
actix-http.workspace = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Middleware: Various

This example showcases a bunch of different uses of middleware. See also the [Middleware guide](https://actix.rs/docs/middleware/).
This example showcases a bunch of different uses of middleware.

See also the [Middleware guide](https://actix.rs/docs/middleware).

## Usage

```sh
cd basics/middleware
cd middleware/various
cargo run
# Started http server: 127.0.0.1:8080
```

Look in `src/main.rs` and comment the different middleware in/out to see how they function.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0de1c02

Please sign in to comment.