WIP: Add progenitor client

This commit is contained in:
Daniel Lundin 2024-12-14 22:47:40 +01:00
commit 07b6abf48c
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
13 changed files with 1891 additions and 38 deletions

13
client/Cargo.toml Normal file
View file

@ -0,0 +1,13 @@
[package]
name = "patagia-client"
version = "0.0.1"
license = "MPL-2.0"
edition = "2021"
[dependencies]
anyhow.workspace = true
progenitor.workspace = true
reqwest.workspace = true
schemars.workspace = true
serde.workspace = true
chrono = { version = "0.4.0", default-features = false, features = ["serde"] }

3
client/src/lib.rs Normal file
View file

@ -0,0 +1,3 @@
use progenitor::generate_api;
generate_api!(spec = "../api.json", derives = [schemars::JsonSchema],);