"添加前端模板和运行代码模块"
This commit is contained in:
56
qiming-run_code_rmcp/Cargo.toml
Normal file
56
qiming-run_code_rmcp/Cargo.toml
Normal file
@@ -0,0 +1,56 @@
|
||||
[package]
|
||||
name = "run_code_rmcp"
|
||||
description = "云函数服务,执行JS/TS/Python语言代码,脚本必须有约定的函数名称(handler/main),会调用约定的函数名称结果和日志返回."
|
||||
version = "0.0.35"
|
||||
edition = "2024"
|
||||
license = "Apache-2.0"
|
||||
repository = "https://github.com/nuwax-ai/run_code_rmcp"
|
||||
homepage = "https://nuwax.com/"
|
||||
readme = "README.md"
|
||||
default-run = "run_code_rmcp"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
mcp = ["dep:rmcp"]
|
||||
|
||||
[dependencies]
|
||||
tokio = { version = "1.47", features = [
|
||||
"fs",
|
||||
"macros",
|
||||
"net",
|
||||
"rt",
|
||||
"rt-multi-thread",
|
||||
"signal",
|
||||
"io-util",
|
||||
"process",
|
||||
"time",
|
||||
] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
log = "0.4"
|
||||
env_logger = "0.11"
|
||||
anyhow = "1.0"
|
||||
rmcp = { version = "0.12", features = [
|
||||
"server",
|
||||
"client",
|
||||
"transport-io",
|
||||
"transport-async-rw",
|
||||
"macros",
|
||||
], optional = true }
|
||||
tempfile = "3.21"
|
||||
regex = "1.11"
|
||||
clap = { version = "4.5", features = ["derive"] }
|
||||
thiserror = "2.0"
|
||||
pest = { version = "2.8", features = ["pretty-print"] }
|
||||
pest_derive = "2.8"
|
||||
blake3 = "1.8"
|
||||
pin-project = "1.1"
|
||||
libc = "0.2"
|
||||
once_cell = "1.21"
|
||||
schemars = "1.0"
|
||||
async-trait = "0.1"
|
||||
|
||||
[[bin]]
|
||||
name = "script_runner"
|
||||
path = "src/script_runner.rs"
|
||||
required-features = ["mcp"]
|
||||
Reference in New Issue
Block a user