Update all dependencies and Reqwest -> http_req
Updated all the dependencies, resolving conflicts and fixing issues that arised. This should solve a few minor issues. Replaced Reqwest with the much simpler and smaller http_req for various reasons.
|3 tygodni temu|
|.github||2 miesięcy temu|
|migrations||2 miesięcy temu|
|scripts||8 miesięcy temu|
|src||3 tygodni temu|
|static||2 miesięcy temu|
|templates||2 miesięcy temu|
|.dockerignore||7 miesięcy temu|
|.gitignore||4 miesięcy temu|
|CONTRIBUTING.md||9 miesięcy temu|
|Cargo.toml||3 tygodni temu|
|DEPLOYING.md||8 miesięcy temu|
|Dockerfile||3 miesięcy temu|
|LICENSE||10 miesięcy temu|
|README.md||2 miesięcy temu|
|Rocket.toml||5 miesięcy temu|
|diesel.toml||11 miesięcy temu|
|logo.svg||6 miesięcy temu|
Rewrite of the RCOS observatory in a way that hopefully makes a bit more sense. Since we have kinda lost track of what number we’re on at this point I am codenaming this version Observatory-New (I think it’s the 5th version though).
This implementation is intended to be simpler than previous incarnations in order to be easier to maintain in the long run.
If you would like to help out please read CONTRIBUTING.md.
Before anything else make sure that you have the development tools for your system. On Ubuntu/Debian you can install these with:
$ sudo apt install build-essential pkg-config
Then you need to install the
openssl development headers.
How to do this varies by system but on Ubuntu the package is
libssl-dev and should be similar on other distros.
Next install Rust with Rustup. Instructions are on the website linked and is fairly straightforward.
Rocket requires Rust Nightly (for now). This can be set for the Observatory-new repository folder specifically by running
rustup override set nightly
in cloned folder.
As of Rustup 1.20.0 this will automatically install the additional tools and can be updated
After that it’s as simple as
$ cargo build
And to run do
$ cargo run
This is for deploying to a server, not a developer machine
Please read the Deploying instructions for information on how to setup and deploy observatory-new.
The code is primarily documented using in-code doc comments. This can be viewed either by browsing the source or in a web browser with.
$ cargo doc --no-deps --document-private-items --all-features --open