From cbc653ffd0ea9abf4360623dc7a7651e1a49cc61 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sat, 25 Oct 2025 00:30:48 +0800 Subject: feat: Implement plugin system with combat tracker and dice analyzer - Added `plugin_system_demo.py` to demonstrate basic plugin usage, processing, and analysis. - Created `CombatTrackerPlugin` for tracking combat statistics including damage and healing. - Developed `DiceAnalyzerPlugin` for analyzing dice rolls and calculating success rates. - Introduced `renderer_demo.py` for rendering output in HTML, Markdown, and JSON formats. - Implemented `rule_system_demo.py` to showcase rule engine capabilities with various examples. - Established core rule engine functionality in `rules.py` with support for conditions and actions. - Enhanced base plugin structure in `base.py` to support different plugin types (Processor, Renderer, Analyzer). - Added custom exception handling in `exceptions.py` for better error management. - Configured logging setup in `logging_config.py` for improved logging capabilities. - Created unit tests in `test_rust_core.py` to validate core functionalities and performance. --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 5996a4e..859d3e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "conventionalrp" -version = "0.2.3" +version = "1.1.3" edition = "2021" description = "HydroRoll Conventional Role Play SDK" license = "AGPLv3.0" @@ -9,7 +9,6 @@ homepage = "https://crp.hydroroll.team/" repository = "https://github.com/HydroRoll-Team/conventional_role_play" authors = ["HsiangNianian"] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] name = "_core" crate-type = ["cdylib"] @@ -17,3 +16,6 @@ crate-type = ["cdylib"] [dependencies] pyo3 = { version = "0.27.0", features = ["abi3-py39"] } time = { version = "0.3.39", features = ["formatting", "macros", "local-offset"] } +regex = "1.10" +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" -- cgit v1.2.3-70-g09d2