# 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.91"
name = "pf-world"
version = "1.0.8"
authors = ["manav8498 <manavpatel91570@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ProcessFork world layer: filesystem (overlayfs / APFS), env, in-flight processes (CRIU), browser DOM (CDP)"
readme = false
license = "MIT"
repository = "https://github.com/manav8498/processfork"
resolver = "2"

[features]
cdp-live = [
    "dep:reqwest",
    "dep:tokio-tungstenite",
    "dep:futures-util",
]
default = ["cdp-live"]

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

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

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.futures-util]
version = "0.3"
optional = true
default-features = false

[dependencies.pf-core]
version = "1.0.8"

[dependencies.rayon]
version = "1.10"

[dependencies.regex]
version = "1.11"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
    "rustls-tls",
    "multipart",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.41"
features = ["full"]

[dependencies.tokio-tungstenite]
version = "0.24"
features = [
    "rustls-tls-webpki-roots",
    "connect",
]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.walkdir]
version = "2.5"

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

[dev-dependencies.wiremock]
version = "0.6"

[target.'cfg(target_os = "linux")'.dependencies.which]
version = "6.0"

[target."cfg(unix)".dependencies.nix]
version = "0.29"
features = [
    "fs",
    "process",
    "user",
    "signal",
]

[lints.clippy]
doc_markdown = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

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

[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "warn"
