# 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"
name = "judger"
version = "0.4.1"
authors = ["harkerhand <harkerhand@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A sandboxed environment for running untrusted code safely."
readme = "README.md"
keywords = [
    "sandbox",
    "security",
    "seccomp",
    "container",
    "isolation",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/harkerhand/judger-rs"

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

[[bin]]
name = "judger"
path = "src/bin/main.rs"

[[example]]
name = "hello_go"
path = "examples/hello_go.rs"

[[example]]
name = "hello_node"
path = "examples/hello_node.rs"

[[example]]
name = "hello_py"
path = "examples/hello_py.rs"

[[example]]
name = "hello_world"
path = "examples/hello_world.rs"

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

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

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

[dependencies.clap]
version = "4.5.53"
features = ["derive"]

[dependencies.libseccomp]
version = "0.4.0"

[dependencies.nix]
version = "0.30.1"
features = [
    "resource",
    "process",
    "user",
    "fs",
    "signal",
]

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

[dependencies.serde_json]
version = "1.0.145"
