Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Can you recommend a Simple http Server written in Rust? #50

Closed
bestia-dev opened this issue Mar 31, 2019 · 4 comments
Closed

Can you recommend a Simple http Server written in Rust? #50

bestia-dev opened this issue Mar 31, 2019 · 4 comments

Comments

@bestia-dev
Copy link

In the examples for Dodrio it is suggested to use:
python -m SimpleHTTPServer

I would like to use a Simple http Server written in Rust.
I found many projects on Github, but it is very confusing.
Some are too complex for a simple development Server. Others are incomplete.
I would appreciate if somebody recommends a suitable Simple Server for this use-case.

@anderejd
Copy link

Here are two alternatives:

At a glance the http server named https seems to have more features, but it also has more dependencies. On my current machine basic-http-server builds roughly twice as fast as https does.

@bestia-dev
Copy link
Author

Fantastic.
basic-http-server is great for use in development as a simple static file server.
Just what I need to run Dodrio examples. Maybe it can be suggested in README.md files instead of pythons server.
Thanks.

@bestia-dev
Copy link
Author

I found your (anderejd) "A minimal wasm-bindgen example" and there you recommended basic-http-server. Great!
I like the idea of not using npm and webpack at all. Keep it super simple.
Dodrio examples are also without the additional complexity of npm and webpack. I like that.

@fitzgen
Copy link
Owner

fitzgen commented Apr 1, 2019

The big feature you probably want is for the server to use application/wasm as the MIME type for .wasm files it serves.

We did some analysis of various simple servers in Rust here: rustwasm/rfcs#10

@fitzgen fitzgen closed this as completed Apr 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants