Skip to content

Commit

Permalink
chore: update profile and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Mar 11, 2024
1 parent cff0ce8 commit 0fcbef1
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 654 deletions.
2 changes: 1 addition & 1 deletion .pdm-python
Original file line number Diff line number Diff line change
@@ -1 +1 @@
C:/Users/admin/anaconda3/python.EXE
D:/GitProject/HydroRoll-Team/HydroRollCore/.venv/Scripts/python.exe
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"restructuredtext.preview.name": "docutils"
"restructuredtext.preview.name": "sphinx"
}
49 changes: 46 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
HydroRollCore
=============

Core.

.. image:: https://images.repography.com/39938419/HydroRoll-Team/HydroRollCore/structure/tMt9z2RexIQ8rnXCIMFWe7YTZtx9reheQCtxqgPqZ1Q/XERnotqf4h5EPFL215lPSb7Dk3fQ5EUniRD-gEckW3M_table.svg
:alt: Structure
:target: https://github.com/HydroRoll-Team/HydroRollCore
:width: 60
:align: right


HydroRoll-Core => 水系核心
==========================

去中心化应用程序。

📕 水系核心是骰系去中心化的一种解决方案,提供了强大的 TRPG 规则书处理功能。
支持在 CLI 中单独使用,同时也提供 REST API 和 WebSocket 通信接口以便其他语言接入。
此外,它能够读取一种约定式的规则包,并行处理规则包,生成 PDF 文件和本地在线文档站点。

- 🦀 *Rust* 底层实现,“性能优异、速度惊人”。
- 🐍 *Python* 编写的顶层业务逻辑,方便使用、更快入门。
- 📦 兼容的规则包继承解决方案。
- 🛠️ *CLI* 呼出,通过脚手架可以直接使用功能。
- 📃 多语言支持:提供 *REST API* 和 *WebSocket* 接口,支持多语言接入和交互。
- 🏗️ 并行处理,使用 *Rust* 实现的规则包加载模块支持并行处理,提高性能。
- 📚 *PDF* 生成,结合自定义 *PDF* 模板,能够生成符合需求的 *PDF* 书籍。
- 🌏 离线文档与在线协作站点,使用 *Sphinx* 框架与 *Vue* 技术栈生成本地文档与在线站点。

----

`AGPL3.0`_ © 2023-PRESENT `简律纯`_ & `HydroRoll-Team`_.

|license icon|

|FOSSA Status|



.. uri list above:
.. _AGPL3.0: https://github.com/HydroRoll-Team/HydroRollCore/blob/main/LICENSE
.. _简律纯: https://github.com/HsiangNianian
.. _HydroRoll-Team: https://github.com/HydroRoll-Team

.. image list above:
.. |license icon| image:: https://app.fossa.com/api/projects/git%2Bgithub.com%2FHydroRoll-Team%2FHydroRollCore.svg?type=shield&issueType=license
:target: https://app.fossa.com/projects/git%2Bgithub.com%2FHydroRoll-Team%2FHydroRollCore?ref=badge_shield&issueType=license
.. |FOSSA Status| image:: https://app.fossa.com/api/projects/git%2Bgithub.com%2FHydroRoll-Team%2FHydroRollCore.svg?type=large&issueType=license
:target: https://app.fossa.com/projects/git%2Bgithub.com%2FHydroRoll-Team%2FHydroRollCore?ref=badge_large&issueType=license
5 changes: 2 additions & 3 deletions hydro_roll_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .hydro_roll_core import *
from . import corelib

def sum_words(a: str, b: str) -> str:
return a + b

return a + b
667 changes: 24 additions & 643 deletions pdm.lock

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ description = "Core of HydroRoll System."
authors = [{ name = "简律纯", email = "[email protected]" }]
dependencies = [
"ply>=3.11",
"pip>=24.0",
]
requires-python = ">=3.9"
readme = "README.rst"
Expand All @@ -20,7 +19,6 @@ homepage = "https://core.hydroroll.team/"
repository = "https://github.com/HydroRoll-Team/HydroRollCore"
documentation = "https://core.hydroroll.team/"


[tool.pdm.dev-dependencies]
docs = [
"furo>=2024.1.29",
Expand All @@ -34,6 +32,9 @@ docs = [
lint = [
"ruff>=0.3.0",
]
dev = [
"pip>=24.0",
]

[tool.ruff]
# Exclude a variety of commonly ignored directories.
Expand Down Expand Up @@ -97,3 +98,6 @@ skip-magic-trailing-comma = false

# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"

[tool.maturin]
module-name = "hydro_roll_core.corelib"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn sum_as_string(a: usize, b: usize) -> PyResult<String> {

/// A Python module implemented in Rust.
#[pymodule]
fn hydro_roll_core(_py: Python, m: &PyModule) -> PyResult<()> {
fn corelib(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_function(wrap_pyfunction!(sum_as_string, m)?)?;
Ok(())
}

0 comments on commit 0fcbef1

Please sign in to comment.