# 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.77"
name = "rtrash"
version = "0.1.0"
authors = ["Rohit Goswami <rgoswami@ieee.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast freedesktop.org trash tool with an rm-compatible interface"
readme = "README.md"
keywords = [
    "trash",
    "rm",
    "freedesktop",
    "xdg",
]
categories = [
    "command-line-utilities",
    "filesystem",
]
license = "MIT"
repository = "https://github.com/HaoZeke/rtrash"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }.tar.gz"
pkg-fmt = "tgz"
bin-dir = "{ name }-{ version }-{ target }/bin/{ bin }{ binary-ext }"

[package.metadata.binstall.overrides.'cfg(all(target_os = "linux", target_arch = "x86_64"))']
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-x86_64-unknown-linux-musl.tar.gz"
pkg-fmt = "tgz"
bin-dir = "{ name }-{ version }-x86_64-unknown-linux-musl/bin/{ bin }{ binary-ext }"

[package.metadata.binstall.overrides.'cfg(all(target_os = "linux", target_arch = "aarch64"))']
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-aarch64-unknown-linux-musl.tar.gz"
pkg-fmt = "tgz"
bin-dir = "{ name }-{ version }-aarch64-unknown-linux-musl/bin/{ bin }{ binary-ext }"

[features]
default = []
python = ["dep:pyo3"]

[lib]
name = "rtrash"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "rtrash"
path = "src/main.rs"

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

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

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

[dependencies.libc]
version = "0.2"

[dependencies.pyo3]
version = "0.25"
features = ["extension-module"]
optional = true

[dependencies.rayon]
version = "1.10"

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
