canhttp 0.5.0

Rust library to issue HTTPs outcalls from a canister on the Internet Computer
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "canhttp"
version = "0.5.0"
authors = ["DFINITY Foundation"]
build = false
include = [
    "src",
    "Cargo.toml",
    "CHANGELOG.md",
    "LICENSE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library to issue HTTPs outcalls from a canister on the Internet Computer"
homepage = "https://github.com/dfinity/canhttp"
documentation = "https://docs.rs/canhttp"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/dfinity/canhttp"

[features]
default = ["http"]
http = [
    "dep:http",
    "dep:num-traits",
    "dep:tower-layer",
]
json = [
    "dep:derive_more",
    "dep:http",
    "dep:serde",
    "dep:serde_json",
]
multi = [
    "dep:ciborium",
    "dep:sha2",
    "dep:futures-channel",
    "dep:serde",
]

[lib]
name = "canhttp"
path = "src/lib.rs"

[dependencies.assert_matches]
version = "1.5.0"

[dependencies.ciborium]
version = "0.2.2"
optional = true

[dependencies.derive_more]
version = "2.1.1"
features = [
    "from",
    "try_unwrap",
    "unwrap",
]
optional = true

[dependencies.futures-channel]
version = "0.3.31"
optional = true

[dependencies.futures-util]
version = "0.3.31"

[dependencies.http]
version = "1.4.0"
optional = true

[dependencies.ic-cdk]
version = "0.19.0"

[dependencies.ic-error-types]
version = "0.2"

[dependencies.itertools]
version = "0.14.0"

[dependencies.num-traits]
version = "0.2.19"
optional = true

[dependencies.pin-project]
version = "1.1.10"

[dependencies.serde]
version = "1.0"
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.sha2]
version = "0.10.9"
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tower]
version = "0.5.3"
features = ["retry"]

[dependencies.tower-layer]
version = "0.3.3"
optional = true

[dev-dependencies.candid]
version = "0.10.20"

[dev-dependencies.itertools]
version = "0.14.0"

[dev-dependencies.maplit]
version = "1.0.2"

[dev-dependencies.proptest]
version = "1.9.0"

[dev-dependencies.strum]
version = "0.27.2"
features = ["derive"]

[dev-dependencies.tokio]
version = "1.49.0"
features = ["full"]