[package]
edition = "2024"
name = "mtp"
version = "0.1.0"
authors = ["Serial <69764315+Serial-ATA@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MTP client implementation based on mtp_spec"
readme = "README.md"
keywords = [
"mtp",
"usb",
]
categories = ["filesystem"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Serial-ATA/mtp-rs"
resolver = "2"
[features]
default = [
"usb",
"fs",
"time",
]
examples = ["dep:dialoguer"]
fs = ["dep:tempfile"]
time = ["mtp_spec/time"]
usb = [
"dep:bitflags",
"dep:nusb",
]
[lib]
name = "mtp"
path = "src/lib.rs"
[dependencies.bitflags]
version = "2.9.0"
optional = true
[dependencies.deku]
version = "0.20.3"
features = [
"std",
"alloc",
"logging",
]
default-features = false
[dependencies.dialoguer]
version = "0.12.0"
optional = true
[dependencies.futures]
version = "0.3"
[dependencies.log]
version = "0.4.30"
[dependencies.mtp_spec]
version = "0.1.0"
[dependencies.nusb]
version = "0.2.0"
features = ["tokio"]
optional = true
[dependencies.tempfile]
version = "3.19.1"
optional = true
[dependencies.tokio]
version = "1.44.2"
features = [
"macros",
"rt-multi-thread",
"time",
"sync",
]
[dependencies.tokio-stream]
version = "0.1.17"
features = ["sync"]
[dependencies.tracing]
version = "0.1.44"
default-features = false
[dependencies.tracing-subscriber]
version = "0.3.23"
[dev-dependencies.clap]
version = "4.5.54"
features = ["derive"]
[dev-dependencies.test-log]
version = "0.2.17"
[lints.clippy]
bool_to_int_with_if = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "deny"
doc_markdown = "allow"
field_reassign_with_default = "allow"
from_over_into = "allow"
ignored_unit_patterns = "allow"
into_iter_without_iter = "allow"
len_without_is_empty = "allow"
let_underscore_untyped = "allow"
manual_range_patterns = "allow"
match_wildcard_for_single_variants = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_late_init = "allow"
needless_return = "allow"
no_effect_underscore_binding = "allow"
redundant_guards = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
tabs_in_doc_comments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
upper_case_acronyms = "allow"
used_underscore_binding = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
explicit_outlives_requirements = "deny"
missing_docs = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unknown_lints = "allow"
unused_import_braces = "deny"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rustdoc]
broken_intra_doc_links = "deny"