mirror of
https://github.com/actix/examples
synced 2024-11-30 09:12:54 +01:00
update deps
This commit is contained in:
parent
ce10427457
commit
7b865c6aed
1207
Cargo.lock
generated
1207
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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`
|
||||||
|
@ -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"
|
||||||
|
@ -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)]
|
||||||
|
Loading…
Reference in New Issue
Block a user