Some checks failed
repo hygiene / hygiene (push) Has been cancelled
Delete the vendored xitca-web framework checkout at repo root and repoint all consumers at the published crates: - nimanyatta/Cargo.toml: drop path overrides on xitca-web (deps + dev-deps), remove the xitca-client dep (never published on crates.io) from the manifest and the load/b_server features, and remove the [patch.crates-io] section that forced every xitca-* crate onto the vendored checkout. - nigig-lite/crates/common: xitca-web path dep -> version 0.8 from crates.io (vendored snapshot was 0.8.1, identical). - Test suites (shared_test_client, security_suite, enhanced_security, enhanced_security_tests) and kra-etims-sdk: migrate xitca-client HTTP usage to reqwest from crates.io, preserving request semantics (header-override order, error mapping). Verified in a fresh clone on the pinned toolchain (1.97.1): nigig-common checks, security/enhanced suites check, and the session/fast/regression harness binaries build.
88 lines
No EOL
1.7 KiB
TOML
88 lines
No EOL
1.7 KiB
TOML
[package]
|
|
name = "kra-etims-sdk"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Shadrack Matata <kisamba.debug@gmail.com>"]
|
|
description = "KRA eTims Integration SDK — Rust"
|
|
license = "ISC"
|
|
|
|
[lib]
|
|
name = "kra_etims_sdk"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "kra-etims-server"
|
|
path = "src/main.rs"
|
|
|
|
[[example]]
|
|
name = "basic_usage"
|
|
path = "examples/basic_usage.rs"
|
|
|
|
[[example]]
|
|
name = "server_usage"
|
|
path = "examples/server_usage.rs"
|
|
|
|
[dependencies]
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
postcard = { version = "1", features = ["alloc"] }
|
|
|
|
# Web framework (crates.io)
|
|
xitca-web = { version = "0.7.1", features = [
|
|
"codegen",
|
|
"params",
|
|
"logger",
|
|
"json",
|
|
"rate-limit",
|
|
"tower-http-compat",
|
|
] }
|
|
xitca-server = { version = "0.5.0" }
|
|
xitca-http = { version = "0.7.1", features = [
|
|
"http1",
|
|
"http2",
|
|
] }
|
|
|
|
# CORS via tower-http (works with xitca via tower-http-compat)
|
|
tower-http = { version = "0.6.2", features = [
|
|
"add-extension",
|
|
"cors",
|
|
"trace",
|
|
"limit",
|
|
] }
|
|
|
|
# HTTP client (crates.io)
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
|
|
|
|
|
# Async
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
# HTTP types
|
|
http = "1"
|
|
bytes = "1"
|
|
|
|
# Env
|
|
dotenvy = "0.15"
|
|
|
|
# Logging
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "fmt"] }
|
|
|
|
# Errors
|
|
error_set = "0.9.1"
|
|
|
|
# Validation
|
|
validator = { version = "0.18", features = ["derive"] }
|
|
|
|
# Time
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# Base64
|
|
base64 = "0.22"
|
|
|
|
# Concurrency
|
|
parking_lot = "0.12"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["full", "test-util"] } |