Files
KiloStar/subprojects/stardomain/Cargo.toml
T
zhaoxi 0bbd08638c feat(stardomain): 实现完整的沙箱执行引擎(local + Docker 双模式)
local 模式通过 tokio::process 真实执行命令,Docker 模式通过 bollard 创建容器运行,
两种模式均支持超时强杀、输出捕获和策略过滤。同时提供同步和异步 Python 接口。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 11:07:39 +00:00

29 lines
765 B
TOML

[package]
name = "stardomain"
version = "0.1.0"
authors = ["zhaoxi826"]
description = "Sandbox runtime for KiloStar — Docker-based isolation with Rust filtering layer."
license = "Apache-2.0"
edition = "2024"
[lib]
name = "stardomain"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "stardomain"
path = "src/main.rs"
[dependencies]
pyo3 = { version = "0.28", features = ["extension-module"] }
pyo3-async-runtimes = { version = "0.28", features = ["tokio-runtime"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process", "time"] }
bollard = "0.18"
futures-util = "0.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
anyhow = "1.0"
regex = "1"
clap = { version = "4", features = ["derive"] }