# 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"
rust-version = "1.86"
name = "figshare-rs"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client for Figshare article workflows, public article lookup, and file uploads/downloads."
readme = "README.md"
keywords = [
    "figshare",
    "publishing",
    "downloads",
    "science",
]
categories = [
    "api-bindings",
    "science",
]
license = "MIT"
repository = "https://github.com/LucaCappelletti94/figshare-rs"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["rustls-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls"]

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

[[test]]
name = "live_account"
path = "tests/live_account.rs"

[[test]]
name = "live_public"
path = "tests/live_public.rs"

[[test]]
name = "mock_api"
path = "tests/mock_api.rs"

[[test]]
name = "mock_support"
path = "tests/mock_support.rs"

[dependencies.bytes]
version = "1.10"

[dependencies.futures-core]
version = "0.3"

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

[dependencies.hex]
version = "0.4"

[dependencies.md-5]
version = "0.11"

[dependencies.reqwest]
version = "0.13.2"
features = [
    "json",
    "query",
    "stream",
]
default-features = false

[dependencies.secrecy]
version = "0.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tempfile]
version = "3.20"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.44"
features = [
    "fs",
    "io-util",
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
]

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

[dev-dependencies.axum]
version = "0.8"

[dev-dependencies.http-body-util]
version = "0.1"

[dev-dependencies.serde_json]
version = "1.0"
