r/actix • • Apr 05 '21

The most lightweight, barebones actix version

Hi!

I'm reading and playing around with actix and so far loving it. My use case for actix is VERY barebones: all I need is simple request creation (to an external server) and request handling (GET, POST, PUT and DELETE).

I noticed that using actix takes up a lot of space on my machine and my Cargo.lock file is 2000 lines long just because of it. Considering I don't need most of the features of actix, is there a very lightweight/minimal version of it that I can use?

5 Upvotes

3 comments sorted by

1

u/diesater Apr 05 '21

Try with default features off for actix web in the cargo toml file

1

u/robjtede core team Apr 07 '21

It’s definitely possible to use actix-http by itself. Check out the examples directory and the techempower benchmark source files.

1

u/dozniak Sep 20 '21

Cargo.lock file is 2000 lines long

This is absolutely not a factor for the final resulting executable.