diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-10-13 11:17:00 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-10-13 11:17:00 +0800 |
| commit | 860fb317bca61ce66a2c98df933aa666dae0a43f (patch) | |
| tree | 1aa4440e23b6344097958888aeef231ba4d9e9ba /crates/system_action/action_macros/Cargo.toml | |
| parent | 635ded4f6815d738dd9b9b711aa4c7cf302d340b (diff) | |
feat: Add JSON-based action invocation to ActionPool
- Extend action_gen macro to generate JSON serialization logic
- Implement generic action processing using JSON text for type-agnostic calls
- Add callback mechanism with action name and arguments in ActionPool
- Update client and server registries to use new callback system
- Improve action system flexibility at the cost of serialization overhead
Diffstat (limited to 'crates/system_action/action_macros/Cargo.toml')
| -rw-r--r-- | crates/system_action/action_macros/Cargo.toml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/system_action/action_macros/Cargo.toml b/crates/system_action/action_macros/Cargo.toml index 5ae14fa..869dcde 100644 --- a/crates/system_action/action_macros/Cargo.toml +++ b/crates/system_action/action_macros/Cargo.toml @@ -13,3 +13,7 @@ string_proc = { path = "../../utils/string_proc" } syn = { version = "2.0", features = ["full", "extra-traits"] } quote = "1.0" proc-macro2 = "1.0" + +# Serialization +serde = { version = "1.0.219", features = ["derive"] } +serde_json = "1.0.140" |
