# 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"
name = "malwaredb-types"
version = "0.0.17"
authors = ["Richard Zak <richard.j.zak@gmail.com>"]
build = false
exclude = ["testdata"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Data types and parsers for MalwareDB."
homepage = "https://malwaredb.net/"
readme = "README.md"
keywords = [
    "cybersecurity",
    "malware",
    "malware-research",
    "forensics",
]
categories = [
    "database",
    "data-structures",
    "parsing",
]
license = "Apache-2.0"
repository = "https://github.com/malwaredb/malwaredb-rs"

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

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

[[bin]]
name = "malwaredb-types"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"
features = ["std"]
default-features = false

[dependencies.chrono]
version = "0.4.39"
features = [
    "alloc",
    "clock",
]
default-features = false

[dependencies.flagset]
version = "0.4.6"
optional = true
default-features = false

[dependencies.fuzzyhash]
version = "0.2.2"
default-features = false

[dependencies.hex]
version = "0.4.3"
features = ["alloc"]
default-features = false

[dependencies.md-5]
version = "0.10.6"
default-features = false

[dependencies.nt-time]
version = "0.10.4"
features = ["chrono"]
optional = true
default-features = false

[dependencies.pdf]
version = "0.9.0"
features = ["cache"]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.41"
features = ["attributes"]
default-features = false

[dependencies.uuid]
version = "1.11"
optional = true
default-features = false

[dependencies.zip]
version = "2.2.2"
features = ["deflate"]
optional = true
default-features = false

[dev-dependencies.rstest]
version = "0.23.0"
default-features = false

[features]
default = [
    "elf",
    "macho",
    "office95",
    "officexml",
    "pe32",
    "pdf",
    "rtf",
]
elf = ["dep:flagset"]
macho = []
office95 = [
    "dep:uuid",
    "dep:nt-time",
]
officexml = ["dep:zip"]
pdf = ["dep:pdf"]
pe32 = ["dep:flagset"]
pef = []
rtf = []
