Commit Graph

3 Commits

Author SHA1 Message Date
Aleksei Voronov 1871f39331 Cross-compile using newer GCC
Building with default GCC included in `cross` at the moment (9.4.0) fails
on compiling `aws-lc-sys` with the following message:

    Your compiler (cc) is not supported due to a memcmp related bug reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189.We strongly recommend against using this compiler.

GCC 10.5 seems to include a bugfix for this, but 9.4 does not.

Building with GCC 10.5 works.
2024-08-18 21:35:03 +02:00
Aleksei Voronov 635e8506c6 Update cross-compile config to properly install openssl stuff
This is based on the recipe in Cross wiki[^1] and seems to work

[^1]: https://github.com/cross-rs/cross/wiki/Recipes#pre-build
2023-11-29 11:08:19 +01:00
Aleksei Voronov 1d17c8b637 Make it able to run in production
- Remove the build Dockerfile, it's not useful on cheap VMs because you can't really build anything on them
- Update the serving address to be 0.0.0.0 so that it's actually exposed externally (127.0.0.1 isn't)
- Also update the port to be 3030 for no reason at all
- Add a Cross.toml config file for cross-compilation since my machine isn't exactly Linux that the resulting binary needs to run on
2023-10-06 20:24:58 +02:00