df_st_updater needs to request a page from our server to check for updates.
This request is currently done by using
This works perfect, but
reqwest is not small and has a lot dependencies. This is not ideal for just the 1 request we have to make. So replacing this package with a lighter package will fit our needs better as the binary will be smaller and build times will be shorter. This also limits the potential security risks because there is just fewer code.
So what to do:
- Find a crate that has less dependencies and does HTTP(S) requests. (maybe something like the http crate or hyper, or something else).
reqwest::blocking::get(&source)line with the new implementation.
- Make sure the error handling is updated (if needed).
- Test out if everything still works.
In order to test this out you can do this in a new project.
df_st_updater has no dependencies on other parts of the DF Storyteller code, so you can separate it and test it.
If you have problems or questions, join us on Discord and ask for help or reply to this issue.
The request should be blocking, this is also the easier option. This means that the code stops and waits for a response from the server and then continues.