Это мой первый раз, когда я использую ящик Actix-Web. Я написал простую программу Hello World, которая не будет компилироваться. < /P>
Вот мой груз.[package]
name = "actix_hello"
version = "0.1.0"
edition = "2021"
[dependencies]
actix-web = "4"
handlebars = { version = "4.3.3", features = ["dir_source"] }
serde_json = "1.0.83"
actix-files = "0.6.2"
< /code>
use actix_web::{get, App, web, HttpServer, HttpResponse, Responder};
use handlebars::{Handlebars};
use serde_json::json;
use std::sync::Arc;
use actix_web::web::{get, Data};
#[get("/")]
async fn hello(hb: web::Data
Подробнее здесь: https://stackoverflow.com/questions/794 ... mplemented
Rust rust actix web andler <'_> не реализован ⇐ Html
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение