Turn hagrid into a multi-binary project.
- Moving the importer to src allows us to reuse code.
This commit is contained in:
parent
d3e1fc0ae9
commit
1361193a75
12
Cargo.toml
12
Cargo.toml
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue