Files
chongming-config/workers/rsdemo/config.toml
T
2026-08-22 03:27:32 +08:00

26 lines
957 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ====== 插件注册信息(Rust 参考插件 rsdemo) ======
# 与 Python SDK 共用同一套 TOML 端点定义格式(docs/plugin-wire-protocol.md §2),
# 由 chongming-worker-rs 解析并发布路由描述符。
[workers]
type = "rsdemo"
module = "rsdemo" # Rust 插件无 Python 模块概念,字段保留用于记录
factory = "create_workers"
cleanup = "cleanup"
count = 2
load_mode = "external" # 独立进程运行,经 Zenoh 注册路由
[worker]
name = "rsdemo"
version = "0.1.0"
description = "进程插件 Rust 参考实现(多语言演进规划阶段 1)"
config_version = "1.0"
defaults = { method = "GET", timeout = 30.0, auth_required = false, cacheable = false, internal = false }
[worker.registration]
router_prefix = "/rsdemo"
tags = ["rsdemo", "process-plugin", "rust"]
# ====== Worker 运行时配置(由 Rust SDK 展平后传给 handler) ======
[workers.config]
greeting_prefix = "Hello"