Prepare project for multiple binaries #26

Closed
opened 2021-04-15 19:17:02 +02:00 by Jef Roosens · 0 comments
Owner

The project currently only has one binary, namely the main server binary. We will be writing several binaries for doing periodic things, such as querying all the streets from ivago. Therefore, we'll have to revamp the structure a bit.

  • The main library should be useable without having rocket as a dependency

  • Each binary should get its own tests n stuff

Ideally, we should be able to compile each binary with only the bare amount necessary (e.g. the binary for getting the newest streets from Ivago shouldn't have Curseforge code compiled). This does however seem quite complicated to do, as Cargo only allows one library per project, unless we start a workspace.

The project currently only has one binary, namely the main server binary. We will be writing several binaries for doing periodic things, such as querying all the streets from ivago. Therefore, we'll have to revamp the structure a bit. - [ ] The main library should be useable without having rocket as a dependency - [ ] Each binary should get its own tests n stuff Ideally, we should be able to compile each binary with only the bare amount necessary (e.g. the binary for getting the newest streets from Ivago shouldn't have Curseforge code compiled). This does however seem quite complicated to do, as Cargo only allows one library per project, unless we start a workspace.
Jef Roosens referenced this issue from a commit 2021-04-16 00:07:06 +02:00
Commenting is not possible because the repository is archived.
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Chewing_Bever/fej#26
No description provided.