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:
+21
@@ -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"
|
||||
Reference in New Issue
Block a user