Turn hagrid into a multi-binary project.

- Moving the importer to src allows us to reuse code.
This commit is contained in:
Justus Winter 2019-02-27 09:01:23 +01:00
parent d3e1fc0ae9
commit 1361193a75
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386
3 changed files with 10 additions and 4 deletions

View File

@ -25,6 +25,8 @@ lettre_email = "0.8"
handlebars = "1.1.0"
base64 = "0.10"
pathdiff = "0.1"
num_cpus = "1.0"
fs_extra = "1.0"
[dependencies.lettre]
version = "0.8"
@ -40,6 +42,10 @@ features = ["handlebars_templates"]
[build-dependencies]
vergen = "3"
[dev-dependencies]
num_cpus = "1.0"
fs_extra = "1.0"
[[bin]]
name = "hagrid"
path = "src/main.rs"
[[bin]]
name = "hagrid-import"
path = "src/import.rs"

View File

@ -16,7 +16,7 @@ keys, user IDs and tokens. To run it, supply the absolute path to where you
want the database to live and the absolute path to the template directory.
```bash
cargo run -- `pwd`/dist
cargo run --bin hagrid -- `pwd`/dist
```
This will spawn a web server listening on port 8080.