# 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.85"
name = "mtp-rs"
version = "0.22.0"
authors = ["David Veszelovszki <veszelovszki@gmail.com>"]
build = false
exclude = ["proptest-regressions/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust MTP (Media Transfer Protocol) library for modern Android devices"
documentation = "https://docs.rs/mtp-rs"
readme = "README.md"
keywords = [
    "mtp",
    "android",
    "usb",
    "media",
    "transfer",
]
categories = [
    "hardware-support",
    "filesystem",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vdavid/mtp-rs"

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

[features]
default = []
virtual-device = ["notify"]

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

[[example]]
name = "diagnose"
path = "examples/diagnose.rs"

[[example]]
name = "fuji_capture"
path = "examples/fuji_capture.rs"

[[example]]
name = "list_all_usb"
path = "examples/list_all_usb.rs"

[[example]]
name = "list_and_download"
path = "examples/list_and_download.rs"

[[example]]
name = "ptp_diagnose"
path = "examples/ptp_diagnose.rs"

[[example]]
name = "resume_download"
path = "examples/resume_download.rs"

[[example]]
name = "windowed_download"
path = "examples/windowed_download.rs"

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

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

[dependencies.bytes]
version = "1.5"

[dependencies.futures]
version = "0.3"

[dependencies.futures-timer]
version = "3.0"

[dependencies.notify]
version = "8"
optional = true

[dependencies.num_enum]
version = "0.7"

[dependencies.nusb]
version = "0.2"

[dependencies.thiserror]
version = "2"

[dev-dependencies.parking_lot]
version = "0.12"

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

[dev-dependencies.serial_test]
version = "3.1"

[dev-dependencies.tempfile]
version = "3"

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