From 027f9c40f1a302c5ab0ac46bec6c22482bc075d1 Mon Sep 17 00:00:00 2001 From: Louis Capitanchik <contact@louiscap.co> Date: Mon, 16 Apr 2018 15:51:46 +0100 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a397b2c..deca95a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ serving files, but the roadmap includes API mocking to make front end developmen ``` ### From source -To build and install swerve from source, you will need `rustc 1.22.0-nightly` or later as well as the Cargo package +To build and install swerve from source, you will need `rustc 1.27.0-nightly` or later as well as the Cargo package manager 1. In a command prompt, run `cargo install swerve` @@ -48,3 +48,6 @@ Option | Param | Description | Notes `-t`, `--threads` | thread count; `unsigned int` | Create this number of threads in the thread pool, to use for serving files concurrently | Defaults to `32`. Performance may be improved on lower end machines by decreasing the number of worker threads `-q`, `--quiet` | | Don't print anything to stdout | Useful if you're spawning swerve from another process and need to monitor stdout `--no-index` | | Don't attempt to serve an `index.html` file from a directory path | By default, swerve will treat directories as requests for an `index.html` file. e.g. `/foo/bar` is treated as `/foo/bar/index.html` +`-u`, `--upload` | | Accept form uploads via a `POST` request to the `/uploads` endpoint | The `file_handling` and `field_handling` config value affect how forms are handled. Setting them to `Log` or `File` will log the values or write them to disk respectively +`-U`, `--upload-path` | path; `string` | Accept formuploads via a `POST` request to the specified endpoint | See the `--upload` option for information on configuration +`--license` | | Print out the GPL 3 license text | GPL compliance is cool, kids -- GitLab