Docs.rs
clash-prism-dsl-0.1.4
clash-prism-dsl 0.1.4
Permalink
Docs.rs crate page
Apache-2.0
Links
Repository
crates.io
Source
Owners
Juwan-Hwang
Dependencies
clash-prism-core ^0.1.5
normal
home ^0.5
normal
regex ^1
normal
serde ^1
normal
serde_json ^1
normal
serde_yaml_ng ^0.10
normal
thiserror ^2
normal
tracing ^0.1
normal
tempfile ^3
dev
Versions
100%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Crate clash_prism_dsl
clash_
prism_
dsl
0.1.4
All Items
Sections
Prism DSL 解析器
设计原则
Crate Items
Re-exports
Modules
Crate
clash_
prism_
dsl
Copy item path
Source
Expand description
§
Prism DSL 解析器
将
.prism.yaml
文件解析为 Patch IR。
§
设计原则
操作符以
$
开头,作为标准 YAML 映射键名使用
使用
serde_yaml_ng
的
Value
解析后提取
$
前缀键(无需自定义 YAML 解析层)
同一键下的多个操作按
固定执行顺序
执行,不依赖 YAML 键的书写顺序
一个文件只能有一个
__when__
声明
Re-exports
§
pub use parser::
DslParser
;
Modules
§
ops
DSL 操作定义和执行顺序
parser
DSL 解析器 — 将 .prism.yaml 文件解析为 Patch IR
schema
JSON Schema Definition — IDE autocompletion and syntax validation