#!/usr/bin/env bash
#
# Upgrades all dependencies to the latest versions
#
set -eux
(
cd src/quotes/tinkoff/api
git checkout main
git pull
rm -f ../tinkoff.public.invest.api.contract.v1.rs
)
command -v cargo-upgrade > /dev/null || cargo install cargo-edit
cargo upgrade --pinned allow --incompatible allow --exclude libsqlite3-sys --exclude serde_yaml
cargo update
cargo clean