Skip to content

Reduce Dependencies #18

Description

@llamicron

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:

  • Replace rocket with tiny_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 with tiny_http, and marginally faster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions