diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-19 05:54:00 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-19 06:15:20 +0800 |
| commit | ec9edc294fd5e7e29977fc7b0e6fb953422bc0e2 (patch) | |
| tree | bbf89ef4457b8de8a8a9bca5668045d612d27572 /dev/configs | |
| parent | 06dfc27194c11e1d1033c292c759a1c5d82e780b (diff) | |
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.
Diffstat (limited to 'dev/configs')
| -rw-r--r-- | dev/configs/ci-ignored-dirs.txt | 5 | ||||
| -rw-r--r-- | dev/configs/docs-lang.txt | 2 | ||||
| -rw-r--r-- | dev/configs/rust-analyzer.json | 16 | ||||
| -rw-r--r-- | dev/configs/verified-docs.toml | 8 | ||||
| -rw-r--r-- | dev/configs/version-files.toml | 39 |
5 files changed, 70 insertions, 0 deletions
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" |
