mirror of
https://github.com/LHY0125/Gobang-Game.git
synced 2026-06-28 16:35:55 +08:00
feat: 初始化 Cargo workspace + core crate 脚手架
创建 Rust 工作区,包含 core(纯游戏逻辑)和 gui(Tauri 占位)两个 crate。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[target.x86_64-pc-windows-gnu]
|
||||
# MinGW-Builds MCF 运行时需要链接 libmcfgthread
|
||||
rustflags = ["-C", "link-args=-lmcfgthread"]
|
||||
+13
-46
@@ -1,47 +1,14 @@
|
||||
# 编译生成的可执行文件
|
||||
*.out
|
||||
*.app
|
||||
|
||||
# IDE配置文件
|
||||
.idea/
|
||||
.vscode/
|
||||
.vs/
|
||||
|
||||
# Trae AI配置文件
|
||||
.trae/
|
||||
|
||||
# 临时文件
|
||||
*.tmp
|
||||
*.temp
|
||||
*.log
|
||||
|
||||
# 系统文件
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
target/
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# 备份文件
|
||||
*.bak
|
||||
*.backup
|
||||
|
||||
# 调试文件
|
||||
*.pdb
|
||||
*.ilk
|
||||
|
||||
# 对象文件
|
||||
*.obj
|
||||
|
||||
# 打包文件
|
||||
dist/
|
||||
|
||||
# 编译生成的对象文件
|
||||
obj/
|
||||
build/
|
||||
|
||||
# 临时游戏存档
|
||||
records/
|
||||
|
||||
# 运行时配置(含 API Key)
|
||||
bin/gobang_config.ini
|
||||
|
||||
# 编译产物
|
||||
bin/gobang_gui.exe
|
||||
*.suo
|
||||
*.sw?
|
||||
.claude/
|
||||
.codegraph/
|
||||
CLAUDE.md
|
||||
|
||||
Generated
+1732
File diff suppressed because it is too large
Load Diff
+13
@@ -0,0 +1,13 @@
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
members = [
|
||||
"core",
|
||||
"gui",
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "2.0.0"
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
authors = ["刘航宇"]
|
||||
repository = "https://github.com/LHY0125/Gobang"
|
||||
@@ -0,0 +1,14 @@
|
||||
[package]
|
||||
name = "gobang-core"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
authors.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
renet = "2"
|
||||
reqwest = { version = "0.12", features = ["json", "blocking"] }
|
||||
rand = "0.8"
|
||||
@@ -0,0 +1 @@
|
||||
// Gobang core library — 纯游戏逻辑,零 GUI 依赖
|
||||
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "gobang-gui"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
authors.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[dependencies]
|
||||
gobang-core = { path = "../core" }
|
||||
@@ -0,0 +1 @@
|
||||
// Gobang GUI — 占位符,Task 10 中实现
|
||||
@@ -0,0 +1,2 @@
|
||||
[toolchain]
|
||||
channel = "stable-x86_64-pc-windows-gnu"
|
||||
Reference in New Issue
Block a user