# 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 = "msb-imago"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for accessing virtual machine disk images."
readme = "README.md"
license = "MIT"
repository = "https://github.com/superradcompany/imago"

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

[features]
default = []
sync-wrappers = ["tokio/rt"]
vm-memory = ["dep:vm-memory"]

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

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

[dependencies.bincode]
version = "2"
features = ["derive"]
default-features = false

[dependencies.cfg-if]
version = "1"

[dependencies.miniz_oxide]
version = "0.8"
features = ["std"]

[dependencies.nix]
version = "0.30"
features = ["ioctl"]

[dependencies.page_size]
version = "0.6"

[dependencies.tokio]
version = "1"
features = ["sync"]

[dependencies.tracing]
version = "0.1"
features = ["attributes"]

[dependencies.vm-memory]
version = "~0.18"
optional = true
default-features = false

[dev-dependencies.tokio]
version = "1"
features = ["rt"]

[build-dependencies.rustc_version]
version = "0.4"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
    "Win32_System_IO",
    "Win32_System_Ioctl",
]

[lints.rust]
unknown_lints = "allow"
unsafe_op_in_unsafe_fn = "deny"
warnings = "deny"

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
private_intra_doc_links = "allow"
redundant_explicit_links = "deny"
unescaped_backticks = "deny"
