forked from alerighi/tabox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
41 lines (35 loc) · 1.17 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
[package]
name = "tabox"
description = "A sandbox to execute a program in an isolated environment and measure its resource usage"
version = "1.3.4"
authors = ["Alessandro Righi <[email protected]>"]
edition = "2021"
license = "MPL-2.0"
repository = "https://github.com/alerighi/tabox"
homepage = "https://alerighi.github.io/tabox"
documentation = "https://docs.rs/tabox"
[[bin]]
name = "tabox"
path = "src/bin/tabox.rs"
required-features = ["binary"]
[features]
binary = ["structopt", "env_logger"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
log = "0.4"
libc = "0.2"
tempfile = "3.4"
nix = { version = "0.28", features = ["mount", "fs", "user", "sched", "signal"] }
anyhow = "1"
signal-hook = "0.1"
lazy_static = "1.4"
# tabox binary dependencies
structopt = { version = "0.3", optional = true }
env_logger = { version = "0.11", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
seccomp-sys = "0.1"