Basic Example does not compile
cetra3 opened this issue · 4 comments
cetra3 commented
The Basic Example does not appear to compile, with the following error:
error[E0277]: the trait bound `actix_web::Body: std::convert::From<std::string::String>` is not satisfied
--> src/main.rs:20:10
|
20 | .body(format!("Hello {}!", req.match_info().get("name").unwrap()))
| ^^^^ the trait `std::convert::From<std::string::String>` is not implemented for `actix_web::Body`
|
= note: required because of the requirements on the impl of `std::convert::Into<actix_web::Body>` for `std::string::String`
Using main.rs equal to the basic example and a Cargo.toml
that looks like:
[package]
name = "actix_test"
version = "0.1.0"
[dependencies]
actix = "*"
actix-web = "*"
env_logger = "*"
fafhrd91 commented
examples require actix-web from master. I will release new version of actix-web during next couple days
cetra3 commented
I'll give the master
branch a shot. Thanks!
fafhrd91 commented
I have another complex example. I am working on Sockjs server implementation. this is server for SockJS client
fafhrd91 commented
new version is published