feat: add project scaffold with core client, error types, and models

Set up Cargo.toml with dependencies (reqwest, serde, thiserror, tokio,
uuid, chrono). Implement OnspringClient with builder pattern and HTTP
helper methods. Define error types, enums, and paging models.
This commit is contained in:
Stevan Freeborn
2026-03-25 13:34:02 -05:00
parent 31d7659d1c
commit 7f2209af1c
9 changed files with 378 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
[package]
name = "onspring"
version = "0.1.0"
edition = "2021"
description = "Rust SDK for the Onspring API v2"
license = "MIT"
[dependencies]
bytes = "1"
reqwest = { version = "0.12", features = ["json", "multipart", "stream"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
tokio = { version = "1", features = ["full"] }
uuid = { version = "1", features = ["serde", "v4"] }
chrono = { version = "0.4", features = ["serde"] }
[dev-dependencies]
tokio = { version = "1", features = ["full", "test-util"] }
wiremock = "0.6"
serde_json = "1"