There's too many dependencies at the moment. There are currently 11 dependencies, some of which are not needed.
I'm mostly focused on file size and compile time right now. The example in the book (the github_wiki.rs example in the examples/ directory) is a very typical example of how this package should be used. Compiling a debug build gives a file size of 18.3M, while a release build is 4.6.
|
File size |
Build time |
github_wiki (debug) |
18.3 Mb |
5min 2sec |
github_wiki (release) |
4.6 Mb |
8min 20sec |
I'd like to get rid of as many dependencies as possible. Here's some ideas:
There's too many dependencies at the moment. There are currently 11 dependencies, some of which are not needed.
I'm mostly focused on file size and compile time right now. The example in the book (the
github_wiki.rsexample in theexamples/directory) is a very typical example of how this package should be used. Compiling a debug build gives a file size of18.3M, while a release build is4.6.github_wiki(debug)18.3 Mbgithub_wiki(release)4.6 MbI'd like to get rid of as many dependencies as possible. Here's some ideas:
rocketwithtiny_http- The web server is very small and only has a couple of routes. I really don't need all the features that rocket comes with. I did a test and the same hello world app was over 50% smaller withtiny_http, and marginally faster.