[package]
edition = "2021"
name = "upcloud-api"
version = "0.1.5"
build = false
exclude = ["/.nornir/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The UpCloud API 1.3 surface the nordisk estates use, as ONE trait (`UpCloudApi`) with ONE wire implementation. Which cloud a run talks to (the account, or a mock-upcloud on loopback) is an `Endpoint` decided once at the edge, and a mock endpoint cannot be pointed off this machine. The fake that answers the trait in-process lives beside mock-upcloud's state machine."
readme = false
keywords = [
"upcloud",
"cloud",
"api",
"mock",
]
categories = [
"api-bindings",
"development-tools::testing",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/nordisk/edda"
resolver = "3"
[features]
default = ["wire"]
wire = [
"dep:ureq",
"dep:nornir-hash",
]
[lib]
name = "upcloud_api"
path = "src/lib.rs"
[[test]]
name = "wire_on_a_socket"
path = "tests/wire_on_a_socket.rs"
[dependencies.nornir-hash]
version = "0.1.0"
optional = true
[dependencies.serde_json]
version = "1"
[dependencies.ureq]
version = "3"
features = ["rustls"]
optional = true
default-features = false
[lints.rust]
unsafe_code = "forbid"