# 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 = "launchpadlib"
version = "0.5.7"
authors = ["Jelmer Vernooĳ <jelmer@jelmer.uk>"]
build = "build.rs"
include = [
    "wadl/*.wadl",
    "src/*.rs",
    "src/blocking/*.rs",
    "src/async/*.rs",
    "src/bin/*.rs",
    "build.rs",
    "examples/*.rs",
    "testdata/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library for accessing Launchpad.net"
readme = "README.md"
keywords = [
    "launchpad",
    "api",
    "rust",
]
categories = [
    "network-programming",
    "asynchronous",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/jelmer/launchpadlib-rs"

[package.metadata.cargo-all-features]
max_combination_size = 2
skip_feature_sets = [
    [],
    ["async"],
    ["blocking"],
]

[features]
answers = []
api-beta = []
api-devel = []
api-v1_0 = []
async = [
    "wadl/async",
    "dep:async-trait",
    "dep:futures",
]
blocking = ["wadl/blocking"]
blueprints = []
bugs = []
cli = ["dep:clap"]
code = []
default = [
    "blocking",
    "api-v1_0",
    "bugs",
    "answers",
    "blueprints",
    "code",
    "translations",
    "packages",
]
keyring = ["dep:keyring"]
packages = []
translations = []
vulnerabilities = []

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

[[bin]]
name = "lp-attach"
path = "src/bin/lp-attach.rs"
required-features = [
    "api-v1_0",
    "cli",
    "blocking",
]

[[bin]]
name = "lp-check-membership"
path = "src/bin/lp-check-membership.rs"
required-features = [
    "api-v1_0",
    "cli",
    "blocking",
]

[[bin]]
name = "lp-list-bugs"
path = "src/bin/lp-list-bugs.rs"
required-features = [
    "api-v1_0",
    "cli",
    "blocking",
]

[[bin]]
name = "lp-set-dupe"
path = "src/bin/lp-set-dupe.rs"
required-features = [
    "api-v1_0",
    "cli",
    "blocking",
]

[[example]]
name = "auth"
path = "examples/auth.rs"
required-features = [
    "api-v1_0",
    "blocking",
]

[[example]]
name = "keyring"
path = "examples/keyring.rs"
required-features = [
    "api-v1_0",
    "keyring",
    "blocking",
]

[[example]]
name = "ssh-keys"
path = "examples/ssh-keys.rs"
required-features = [
    "api-v1_0",
    "blocking",
]

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.chrono]
version = "0.4.41"
features = ["serde"]

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.debversion]
version = ">=0.4,<0.6"
features = ["serde"]

[dependencies.form_urlencoded]
version = "1.2.1"

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

[dependencies.keyring]
version = "3.6.2"
features = [
    "apple-native",
    "windows-native",
    "linux-native",
]
optional = true

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.log]
version = "0.4.27"

[dependencies.mime]
version = "0.3.17"

[dependencies.percent-encoding]
version = "2.3.1"

[dependencies.rand]
version = "0.9.2"

[dependencies.reqwest]
version = ">=0.12, <0.14"
features = [
    "json",
    "multipart",
    "blocking",
    "form",
]

[dependencies.serde]
version = "1.0.220"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.145"

[dependencies.url]
version = "2.5.4"
features = ["serde"]

[dependencies.wadl]
version = "0.5.7"
default-features = false

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

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

[build-dependencies.reqwest]
version = ">=0.12, <0.14"
features = [
    "json",
    "multipart",
    "blocking",
    "form",
    "blocking",
]

[build-dependencies.wadl]
version = "0.5.7"
features = ["codegen"]
default-features = false
