diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..1b40f30 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,16 @@ +# Project-local cargo config for matrix-music-bot +# Forces MinGW gcc as the C linker (works with rustls + pure-Rust deps) + +[target.x86_64-pc-windows-gnu] +linker = "C:/msys64/mingw64/bin/gcc.exe" +ar = "C:/msys64/mingw64/bin/ar.exe" + +[build] +# Default target to GNU (avoids accidentally building MSVC) +target = "x86_64-pc-windows-gnu" + +[net] +git-fetch-with-cli = true + +# Note: 如果在国内且 crates.io 慢,可在 Cargo.toml 用 [patch] / [source.crates-io] +# 替换为镜像,或设置环境变量 CARGO_NET_GIT_FETCH_WITH_CLI=true \ No newline at end of file diff --git a/.gitignore b/.gitignore index 108a39a..0a02ef1 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,11 @@ Thumbs.db logs/ # Cache -.cache/ \ No newline at end of file +.cache/ + +# 重复的 plan 副本(正式版在 C:\Users\Administrator\.claude\plans\) +/lexical-meandering-lighthouse.md + +# Added by cargo + +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..9ead937 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "matrix-music-bot" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..9acaa3c --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "matrix-music-bot" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}