|
1
|
[package] |
|
2
|
name = "sigit-si-api" |
|
3
|
description = "Typed client for the sigit.si JSON API. Not affiliated with the siGit Code agent." |
|
4
|
version.workspace = true |
|
5
|
edition.workspace = true |
|
6
|
authors.workspace = true |
|
7
|
license.workspace = true |
|
8
|
repository.workspace = true |
|
9
|
homepage.workspace = true |
|
10
|
keywords = ["sigit", "git", "api", "client"] |
|
11
|
categories = ["api-bindings"] |
|
12
|
readme = "README.md" |
|
13
|
|
|
14
|
[dependencies] |
|
15
|
chrono = { workspace = true } |
|
16
|
reqwest = { workspace = true, optional = true } |
|
17
|
serde = { workspace = true } |
|
18
|
serde_json = { workspace = true } |
|
19
|
thiserror = { workspace = true, optional = true } |
|
20
|
tracing = { workspace = true, optional = true } |
|
21
|
|
|
22
|
[features] |
|
23
|
default = ["client", "rustls-tls-native-roots"] |
|
24
|
# The HTTP client and endpoint modules. Without it the crate is just the wire |
|
25
|
# types (`models`, `ErrorResponse`, `error::codes`, `Environment`, `CLIENT_HEADER`). |
|
26
|
client = ["dep:reqwest", "dep:thiserror", "dep:tracing"] |
|
27
|
# TLS backend for the client the crate builds itself. Pick one, or disable them |
|
28
|
# all and inject a `reqwest::Client` through `Client::builder`. |
|
29
|
rustls-tls-native-roots = ["client", "reqwest/rustls-tls-native-roots"] |
|
30
|
rustls-tls-webpki-roots = ["client", "reqwest/rustls-tls-webpki-roots"] |
|
31
|
native-tls = ["client", "reqwest/native-tls"] |