# 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 = "assay-common"
version = "3.27.0"
authors = ["Assay"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common shared types and utilities for the Assay framework."
readme = false
license = "MIT"
repository = "https://github.com/Rul1an/assay"

[features]
default = ["std"]
std = [
    "serde/std",
    "chrono/std",
    "dep:serde_json",
    "dep:nix",
]
user = [
    "std",
    "dep:aya",
]

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

[dependencies.aya]
version = "0.13.0"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true
default-features = false

[dependencies.libc]
version = "0.2"

[dependencies.nix]
version = "0.27"
features = [
    "fs",
    "ioctl",
]
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

[dependencies.serde_json]
version = "1.0"
features = ["alloc"]
optional = true
default-features = false

[lints.clippy]
missing_errors_doc = "allow"
print_stdout = "allow"
unwrap_used = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "allow"
priority = -1

[lints.rust]
missing_docs = "allow"
unsafe_code = "deny"
unused_lifetimes = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
