# 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 = "2024"
rust-version = "1.88.0"
name = "avml"
version = "0.18.0"
authors = ["avml@microsoft.com"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A portable volatile memory acquisition tool"
homepage = "https://github.com/microsoft/avml"
readme = "README.md"
keywords = [
    "linux",
    "memory-forensics",
    "security",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/microsoft/avml"

[features]
blobstore = [
    "dep:url",
    "dep:azure_core",
    "dep:azure_storage_blob",
    "dep:tokio",
    "dep:async-trait",
    "dep:futures",
]
default = [
    "put",
    "blobstore",
    "native-tls",
]
native-tls = [
    "dep:native-tls",
    "azure_core?/reqwest",
    "reqwest?/native-tls-vendored",
]
put = [
    "dep:reqwest",
    "reqwest?/stream",
    "dep:url",
    "dep:tokio",
    "dep:tokio-util",
    "dep:futures",
]
status = ["dep:indicatif"]

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

[[bin]]
name = "avml"
path = "src/bin/avml.rs"

[[bin]]
name = "avml-convert"
path = "src/bin/avml-convert.rs"

[[bin]]
name = "avml-upload"
path = "src/bin/avml-upload.rs"
required-features = [
    "put",
    "blobstore",
]

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

[dependencies.azure_core]
version = "1.0"
features = [
    "reqwest",
    "tokio",
]
optional = true
default-features = false

[dependencies.azure_storage_blob]
version = "1.0"
features = ["tokio"]
optional = true
default-features = false

[dependencies.byteorder]
version = "1.5"

[dependencies.clap]
version = "4.6"
features = [
    "derive",
    "std",
    "usage",
    "error-context",
    "help",
]
default-features = false

[dependencies.elf]
version = "0.8"

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

[dependencies.indicatif]
version = "0.18"
optional = true
default-features = false

[dependencies.libc]
version = "0.2"

[dependencies.native-tls]
version = "0.2"
features = ["vendored"]
optional = true
default-features = false

[dependencies.reqwest]
version = "0.13"
optional = true
default-features = false

[dependencies.snap]
version = "1.1"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.52"
features = [
    "fs",
    "rt-multi-thread",
    "io-util",
    "macros",
]
optional = true
default-features = false

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]
optional = true
default-features = false

[dependencies.url]
version = "2.5"
optional = true
default-features = false

[dev-dependencies.insta]
version = "1.47"
features = ["json"]

[dev-dependencies.rand]
version = "0.10"
features = ["std_rng"]
default-features = false

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

[lints.clippy]
arithmetic_side_effects = "warn"
as_conversions = "warn"
assertions_on_result_states = "warn"
expect_used = "deny"
if_then_some_else_none = "deny"
indexing_slicing = "deny"
manual_assert = "deny"
needless_continue = "warn"
panic = "deny"
pattern_type_mismatch = "warn"
redundant_pub_crate = "deny"
shadow_unrelated = "deny"
std_instead_of_core = "deny"
undocumented_unsafe_blocks = "deny"
unused_trait_names = "warn"
unwrap_used = "deny"
verbose_file_reads = "warn"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
