Giter VIP home page Giter VIP logo

Comments (8)

fafhrd91 avatar fafhrd91 commented on May 4, 2024 2

problem is that your code uses different actix from actix-web. actix-web uses 0.4.2 and your coded uses git repo. so rust compiles those as two different code bases.

just modify your Cargo.toml to use "actix = "0.4"

very confusing, I'd say ugly :)

from actix-web.

fafhrd91 avatar fafhrd91 commented on May 4, 2024

do you have repo where I can reproduce the problem?

from actix-web.

fafhrd91 avatar fafhrd91 commented on May 4, 2024

I run tests for all guide examples on every commit, so those should work. could you also run one of examples

from actix-web.

 avatar commented on May 4, 2024

I just ran examples/basics and it worked. Give me a minute or two to prepare a repo.

from actix-web.

 avatar commented on May 4, 2024

See: https://github.com/Unmoving/actix-web-test/tree/master please! (And thanks for your efforts!)

from actix-web.

 avatar commented on May 4, 2024

Thanks, I understood Cargo wrong there then. Actually it's a shame that I even have to add actix manually then, as actix_web already specifies that as dependency... alas, I will learn. Sorry again!

from actix-web.

fafhrd91 avatar fafhrd91 commented on May 4, 2024

No problem.

You can also use HttpServer::run() method, it starts system and blocks

from actix-web.

casperin avatar casperin commented on May 4, 2024

Maybe I missed it in the docs somewhere, but it isn't immediately obvious that you have to use actix 0.5 (newest as of writing is actix 0.6) with actix-web 0.6.

from actix-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.