Skip to content

Commit e7e96ff

Browse files
setting
1 parent 6b44f53 commit e7e96ff

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed

space/workspace.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"workspace": []
2+
"workspace": [
3+
"C:\\Users\\lenovo\\Desktop\\rust"
4+
]
35
}

src-tauri/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
6+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
7+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8+
Cargo.lock
9+
10+
# These are backup files generated by rustfmt
11+
**/*.rs.bk
12+
13+
# MSVC Windows builds of rustc generate these, which store debugging information
14+
*.pdb

src-tauri/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ use std::path::Path;
44
fn main() {
55
let tiks_command_path = "../tiks_command";
66
let status = Command::new("cargo")
7-
.args(&["build","--release", "--manifest-path", &format!("{}/Cargo.toml", tiks_command_path)])
7+
.args(&["build", "--manifest-path", &format!("{}/Cargo.toml", tiks_command_path)])
88
.status()
99
.expect("Error: Can't build the tiks command");
1010

1111
if !status.success(){
1212
panic!("Failed to build tiks_command")
1313
}
1414

15-
let exe_path = Path::new("../").join("target/release/tiks.exe");
15+
let exe_path = Path::new(tiks_command_path).join("target/debug/tiks.exe");
1616

1717
// 设置环境变量
1818
println!("cargo:rustc-env=Tiks={}", exe_path.clone().display());

tiks_command/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
6+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
7+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8+
Cargo.lock
9+
10+
# These are backup files generated by rustfmt
11+
**/*.rs.bk
12+
13+
# MSVC Windows builds of rustc generate these, which store debugging information
14+
*.pdb

0 commit comments

Comments
 (0)