![github] ![crates-io] ![docs-rs]
Via cargo
you can add the library to your project's Cargo.toml
toml
[dependencies]
vinted-rs = "0.5.0"
Advanced filtering features must require this setup before running.
⚠️Very important: diesel-cli installation may fail if you do not have libpq
library installed.
To install libpq
, just install PostgreSQL package on your machine.
In Arch
based is only necessary to install this package.
bash
sudo pacman -S postgresql-libs
In Debian
based distributions is only necessary to install this package.
bash
sudo apt install libpq-dev
bash
cargo install diesel_cli --features=postgres --no-default-features
bash
mkdir migrations
bash
diesel migration generate my_migration
Program after that up.sql
and down.sql
scripts.
bash
make db
bash
make diesel
bash
make stop
⚠️Very important: Before running tests is important to do the DB setup
Then run the tests
bash
cargo test