[source]
git = "https://github.com/curl/curl.git"
rev = "curl-8_20_0"
patches = ["ipv6.patch", "redox.patch"]
shallow_clone = true

[build]
template = "cmake"
dependencies = [
    #TODO: git fails to build when this is a dependency: "libpsl",
    "nghttp2",
    "openssl3",
    "zlib",
]
cmakeflags = [
    "-DCURL_DISABLE_FTP=On",
    "-DCURL_DISABLE_TFTP=On",
    "-DENABLE_IPV6=Off",
    "-DCURL_DISABLE_NTLM=On",
    "-DENABLE_THREADED_RESOLVER=On",
    "-DCURL_CA_PATH=/etc/ssl/certs",
    "-DUSE_NGHTTP2=On",
    "-DCURL_USE_OPENSSL=On",
    "-DUSE_ZLIB=On",
    "-DCURL_USE_LIBPSL=Off",
]

[package]
dependencies = [
    "ca-certificates"
]
