Skip to content
Snippets Groups Projects
Unverified Commit 027f9c40 authored by Louis's avatar Louis :fire: Committed by GitHub
Browse files

Update README.md

parent a2613e7f
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment