[package]
edition = "2021"
name = "port-sdk"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for Port APIs."
readme = "README.md"
keywords = [
"port",
"sdk",
"api",
"devex",
"platform",
]
categories = ["api-bindings"]
license = "Apache-2.0"
repository = "https://github.com/port-experimental/port-rs"
[features]
backoff = ["dep:backoff"]
blocking = ["reqwest/blocking"]
default = [
"rustls-tls",
"retry",
]
native-tls = ["reqwest/native-tls"]
retry = [
"backoff",
"tokio",
]
rustls-tls = ["reqwest/rustls-tls"]
telemetry = ["tracing"]
[lib]
name = "port_sdk"
path = "src/lib.rs"
[[test]]
name = "auth_tests"
path = "tests/auth_tests.rs"
[[test]]
name = "client_tests"
path = "tests/client_tests.rs"
[[test]]
name = "config_tests"
path = "tests/config_tests.rs"
[[test]]
name = "contract_tests"
path = "tests/contract_tests.rs"
[[test]]
name = "schema_tests"
path = "tests/schema_tests.rs"
[[test]]
name = "types_tests"
path = "tests/types_tests.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.backoff]
version = "0.4"
features = ["tokio"]
optional = true
[dependencies.dotenvy]
version = "0.15"
[dependencies.httpdate]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]
optional = true
[dependencies.tracing]
version = "0.1"
features = ["std"]
optional = true
[dependencies.url]
version = "2"
[dev-dependencies.serial_test]
version = "2"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"time",
]
[dev-dependencies.wiremock]
version = "0.6"
[build-dependencies.hex]
version = "0.4"
[build-dependencies.sha2]
version = "0.10"