1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

update deps

This commit is contained in:
Rob Ede 2023-07-08 18:51:57 +01:00
parent ce10427457
commit 7b865c6aed
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
4 changed files with 641 additions and 572 deletions

1207
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@ mkcert -install
If you want to generate your own cert/private key file, then run: If you want to generate your own cert/private key file, then run:
```sh ```sh
mkcert 127.0.0.1 localhost mkcert -key-file key.pem -cert-file cert.pem 127.0.0.1 localhost
``` ```
For `rsa` keys use `rsa_private_keys` function instead `pkcs8_private_keys` For `rsa` keys use `rsa_private_keys` function instead `pkcs8_private_keys`

View File

@ -9,4 +9,4 @@ actix-web-lab.workspace = true
env_logger.workspace = true env_logger.workspace = true
log.workspace = true log.workspace = true
sailfish = "0.6" sailfish = "0.7"

View File

@ -3,7 +3,7 @@ use actix_web::{middleware, web, App, Error, HttpRequest, HttpResponse, HttpServ
use actix_web_actors::ws; use actix_web_actors::ws;
async fn ws_index(r: HttpRequest, stream: web::Payload) -> Result<HttpResponse, Error> { async fn ws_index(r: HttpRequest, stream: web::Payload) -> Result<HttpResponse, Error> {
ws::start(AutobahnWebSocket::default(), &r, stream) ws::start(AutobahnWebSocket, &r, stream)
} }
#[derive(Debug, Clone, Default)] #[derive(Debug, Clone, Default)]