A complete Vinted API-Wrapper in Rust
Via cargo
you can add the library to your project's Cargo.toml
toml
[dependencies]
vinted-rs = "0.0.1"
Advanced filtering features must require this setup before running.
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
Before running tests is important to do the DB setup
Then run the tests
bash
cargo test