# 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"
name = "ktstr"
version = "0.1.1"
build = "build.rs"
exclude = [
    ".build-cache/",
    "doc/guide/book/",
    ".github/",
    ".githooks/",
    ".config/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Test harness for Linux process schedulers"
documentation = "https://likewhatevs.github.io/ktstr/api/ktstr/"
readme = "README.md"
keywords = [
    "sched_ext",
    "scheduler",
    "testing",
    "bpf",
    "linux",
]
categories = ["development-tools::testing"]
license = "GPL-2.0-only"
repository = "https://github.com/likewhatevs/ktstr"

[features]
cli = [
    "fetch",
    "dep:clap",
    "dep:clap_complete",
    "dep:indicatif",
]
default = ["cli"]
fetch = [
    "dep:gix",
    "dep:reqwest",
    "dep:tar",
    "dep:tempfile",
    "dep:xz2",
]
full = [
    "cli",
    "gha-cache",
]
gha-cache = [
    "dep:opendal",
    "dep:tokio",
    "dep:tar",
    "dep:tempfile",
    "dep:zstd",
]
integration = []

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

[[bin]]
name = "cargo-ktstr"
path = "src/bin/cargo-ktstr.rs"
required-features = ["cli"]

[[bin]]
name = "ktstr"
path = "src/bin/ktstr.rs"
required-features = ["cli"]

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.blazesym]
version = "0.2"
features = ["dwarf"]

[dependencies.btf-rs]
version = "1.1.1"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.clap_complete]
version = "4"
optional = true

[dependencies.cpio]
version = "0.4.1"

[dependencies.crc32fast]
version = "1.5"

[dependencies.ctor]
version = "0.8"

[dependencies.flate2]
version = "1"

[dependencies.gix]
version = "0.81"
features = [
    "sha1",
    "blocking-network-client",
    "blocking-http-transport-reqwest-rust-tls",
    "worktree-mutation",
    "status",
]
optional = true
default-features = false

[dependencies.goblin]
version = "0.10.5"
features = ["elf64"]

[dependencies.indicatif]
version = "0.18"
optional = true

[dependencies.ktstr-macros]
version = "0.1.1"

[dependencies.kvm-bindings]
version = "0.14"
features = ["fam-wrappers"]

[dependencies.kvm-ioctls]
version = "0.24"

[dependencies.libbpf-rs]
version = "0.26"
features = ["vendored"]

[dependencies.libbpf-sys]
version = "1.6"
features = ["vendored"]

[dependencies.libc]
version = "0.2"

[dependencies.linkme]
version = "0.3"

[dependencies.linux-loader]
version = "0.13"
features = [
    "bzimage",
    "elf",
    "pe",
]

[dependencies.lz4_flex]
version = "0.12"
features = ["frame"]

[dependencies.nix]
version = "0.31"
features = [
    "feature",
    "fs",
    "mount",
    "poll",
    "process",
    "reboot",
    "sched",
    "signal",
    "term",
]

[dependencies.object]
version = "0.36"
features = [
    "build",
    "std",
    "elf",
]
default-features = false

[dependencies.opendal]
version = "0.55"
features = ["services-ghac"]
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.polars]
version = "0.53.0"
features = [
    "lazy",
    "describe",
]
default-features = false

[dependencies.rand]
version = "0.10"

[dependencies.rayon]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = ["blocking"]
optional = true

[dependencies.rmesg]
version = "1"
features = ["sync"]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tar]
version = "0.4"
optional = true

[dependencies.tempfile]
version = "3"
optional = true

[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.virtio-bindings]
version = "0.2.7"

[dependencies.virtio-queue]
version = "0.17"

[dependencies.vm-fdt]
version = "0.3"

[dependencies.vm-memory]
version = "=0.17.1"
features = ["backend-mmap"]

[dependencies.vm-superio]
version = "0.8.1"

[dependencies.vmm-sys-util]
version = "0.15"

[dependencies.walkdir]
version = "2"

[dependencies.xz2]
version = "0.1"
optional = true

[dependencies.zerocopy]
version = "0.8.48"
features = ["derive"]

[dependencies.zstd]
version = "0.13"
features = ["zstdmt"]
optional = true

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.insta]
version = "1"

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

[dev-dependencies.proptest]
version = "1"

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

[build-dependencies.cc]
version = "1"

[build-dependencies.flate2]
version = "1"

[build-dependencies.gix]
version = "0.81"
features = ["sha1"]
default-features = false

[build-dependencies.libbpf-cargo]
version = "0.26"

[build-dependencies.reqwest]
version = "0.13"
features = ["blocking"]

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(coverage)",
    "cfg(coverage_nightly)",
]

[profile.release]
lto = "thin"
