run_code_rmcp 0.0.35

云函数服务,执行JS/TS/Python语言代码,脚本必须有约定的函数名称(handler/main),会调用约定的函数名称结果和日志返回.
Documentation
1
2
3
4
5
6
7
8
9
10
use thiserror::Error;

#[derive(Error, Debug)]
pub enum AppError {
    #[error("Failed to create temporary file: {0}")]
    IoError(#[from] std::io::Error),

    #[error("Failed to parse JSON: {0}")]
    JsonError(#[from] serde_json::Error),
}