[package]
name = "azure_core"
version = "0.11.0"
description = "Rust wrappers around Microsoft Azure REST APIs - Core crate"
readme = "README.md"
authors = ["Microsoft Corp."]
license = "MIT"
repository = "https://github.com/azure/azure-sdk-for-rust"
homepage = "https://github.com/azure/azure-sdk-for-rust"
documentation = "https://docs.rs/azure_core"
keywords = ["sdk", "azure", "rest", "iot", "cloud"]
categories = ["api-bindings"]
edition = "2021"
rust-version = "1.64.0"

[dependencies]
async-trait = "0.1"
base64 = "0.21"
bytes = "1.0"
time = { version = "0.3.10", features = ["serde-well-known", "macros", "local-offset"] }
dyn-clone = "1.0"
futures = "0.3"
http-types = { version = "2.12", default-features = false }
log = "0.4"
rand = "0.8"
reqwest = { version = "0.11", features = [
  "stream",
], default-features = false, optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
quick-xml = { version = "0.28", optional = true, features = ["serialize", "serde-types"] }
url = "2.2"
uuid = { version = "1.0" }
pin-project = "1.0"
paste = "1.0"

# Add dependency to getrandom to enable WASM support
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }

[build-dependencies]
rustc_version = "0.4"

[dev-dependencies]
env_logger = "0.10"
tokio = { version = "1", features = ["default"] }
thiserror = "1.0"

[features]
default = []
enable_reqwest = ["reqwest/default-tls"]
enable_reqwest_gzip = ["reqwest/gzip"]
enable_reqwest_rustls = ["reqwest/rustls-tls"]
test_e2e = []
azurite_workaround = []
xml = ["quick-xml"]
