From ec9edc294fd5e7e29977fc7b0e6fb953422bc0e2 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 19 Aug 2026 05:54:00 +0800 Subject: chore: reorganize dev tools into dev/ directory and consolidate configs Move CI, dev tools, and configs from root-level scattered locations into a unified `dev/` directory structure. Update all references across build scripts, documentation, and editor configurations. Also consolidate editor config generation into build.rs for automated synchronization of rust-analyzer settings across VS Code and Zed. --- dev/configs/ci-ignored-dirs.txt | 5 +++++ dev/configs/docs-lang.txt | 2 ++ dev/configs/rust-analyzer.json | 16 ++++++++++++++++ dev/configs/verified-docs.toml | 8 ++++++++ dev/configs/version-files.toml | 39 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 70 insertions(+) create mode 100644 dev/configs/ci-ignored-dirs.txt create mode 100644 dev/configs/docs-lang.txt create mode 100644 dev/configs/rust-analyzer.json create mode 100644 dev/configs/verified-docs.toml create mode 100644 dev/configs/version-files.toml (limited to 'dev/configs') diff --git a/dev/configs/ci-ignored-dirs.txt b/dev/configs/ci-ignored-dirs.txt new file mode 100644 index 0000000..60b9e6e --- /dev/null +++ b/dev/configs/ci-ignored-dirs.txt @@ -0,0 +1,5 @@ +# Temp +./.temp/ + +# Self +./dev/ci/ diff --git a/dev/configs/docs-lang.txt b/dev/configs/docs-lang.txt new file mode 100644 index 0000000..96d4f3c --- /dev/null +++ b/dev/configs/docs-lang.txt @@ -0,0 +1,2 @@ +./pages/ +./_zh_CN/pages/ diff --git a/dev/configs/rust-analyzer.json b/dev/configs/rust-analyzer.json new file mode 100644 index 0000000..ab97bf7 --- /dev/null +++ b/dev/configs/rust-analyzer.json @@ -0,0 +1,16 @@ +{ + "rust-analyzer.check.command": "clippy", + "rust-analyzer.checkOnSave": true, + "rust-analyzer.files.exclude": ["**/target/**", "**/.temp/**"], + "rust-analyzer.linkedProjects": [ + ".run/Cargo.toml", + "dev/ci/Cargo.toml", + "mingling_pathf/test/Cargo.toml", + "arg_picker/Cargo.toml", + "arg_picker/test/Cargo.toml", + "mingling_cli/Cargo.toml" + ], + "rust-analyzer.cargo.features": [], + "rust-analyzer.procMacro.enable": true, + "rust-analyzer.procMacro.attributes.enable": true +} diff --git a/dev/configs/verified-docs.toml b/dev/configs/verified-docs.toml new file mode 100644 index 0000000..df2469b --- /dev/null +++ b/dev/configs/verified-docs.toml @@ -0,0 +1,8 @@ +# Files marked in the following document, +# all rust code blocks inside will be verified in CI to ensure they can compile + +[verified] +readme = "./README.md" +getting_started = "./GETTING-STARTED.md" +documents_en_us = "./docs/pages/**" +documents_zh_cn = "./docs/_zh_CN/pages/**" diff --git a/dev/configs/version-files.toml b/dev/configs/version-files.toml new file mode 100644 index 0000000..30fda5e --- /dev/null +++ b/dev/configs/version-files.toml @@ -0,0 +1,39 @@ +[[file]] +file = "./Cargo.toml" +pattern = "version = \"{VER}\"" + +[[file]] +file = "./mingling_cli/Cargo.toml" +pattern = "version = \"{VER}\"" + +[[file]] +file = "./README.md" +pattern = "version = \"{VER}\"" + +[[file]] +file = "./docs/_zh_CN/pages/1-getting-started.md" +pattern = "version = \"{VER}\"" + +[[file]] +file = "./docs/pages/1-getting-started.md" +pattern = "version = \"{VER}\"" + +[[file]] +file = "./docs/res/guide.txt" +pattern = "mingling = \"{VER}\"" + +[[file]] +file = "./index.html" +pattern = "cargo add mingling@{VER}" + +[[file]] +file = "./index.html" +pattern = "version = \"{VER}\"" + +[[file]] +file = "./index.html" +pattern = "mling proj-init {VER}@basic" + +[[file]] +file = "./dist/index.html" +pattern = "mling proj-init {VER}@basic" -- cgit