Add 91 integration tests (all #[ignore]) mirroring the JavaScript SDK's integration test suite. Tests cover all endpoints: ping, apps, fields, records, files, lists, and reports with success, auth, access, and not-found scenarios. Add 7 runnable examples (cargo run --example <name>) for quick manual smoke testing against a real Onspring instance. Both use env vars (API_BASE_URL, SANDBOX_API_KEY, TEST_*) matching the JavaScript SDK setup. Also rename crate to onspring-api-sdk-rust with [lib] name = "onspring" so imports remain `use onspring::*`.
25 lines
613 B
TOML
25 lines
613 B
TOML
[package]
|
|
name = "onspring-api-sdk-rust"
|
|
version = "0.0.0"
|
|
edition = "2021"
|
|
description = "Rust SDK for the Onspring API"
|
|
license = "MIT"
|
|
|
|
[lib]
|
|
name = "onspring"
|
|
|
|
[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"
|