Via cargo
you can add the library to your project's Cargo.toml
[dependencies]
vinted-rs = "0.9.1"
Advanced filtering features must require this setup before running.
- First start installing diesel-cli (in order to run the migrations in PostgreSQL database)
libpq
library installed.
To install libpq
, just install PostgreSQL package on your machine.
In Arch
based is only necessary to install this package.
sudo pacman -S postgresql-libs
In Debian
based distributions is only necessary to install this package.
sudo apt install libpq-dev
cargo install diesel_cli --features=postgres --no-default-features
mkdir migrations
diesel migration generate my_migration
Program after that up.sql
and down.sql
scripts.
- See in Makefile
make db
make diesel
make stop
Then run the tests
cargo test