Add required dependencies to README (#151)

* Add required dependencies to README

- slqx-cli
- postgresql-client
- libssl-dev on Ubuntu

* Add sqlx command for all operating systems
This commit is contained in:
Hofer-Julian 2022-05-26 13:56:46 +02:00 committed by GitHub
parent 5af5cf696b
commit 6bd30650cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,13 +45,21 @@ cargo install -f cargo-binutils
rustup component add llvm-tools-preview
```
```
cargo install --version=0.5.7 sqlx-cli --no-default-features --features postgres
```
### Linux
```bash
# Ubuntu
sudo apt-get install lld clang
sudo apt-get install lld clang libssl-dev postgresql-client
# Arch
sudo pacman -S lld clang
sudo pacman -S lld clang postgresql
```
```
cargo install --version=0.5.7 sqlx-cli --no-default-features --features postgres
```
### MacOS
@ -60,6 +68,10 @@ sudo pacman -S lld clang
brew install michaeleisel/zld/zld
```
```
cargo install --version=0.5.7 sqlx-cli --no-default-features --features postgres
```
## How to build
Launch a (migrated) Postgres database via Docker: