Skip to content

Commit a00d374

Browse files
chore: update clear command in package.json and add dev-bin feature in Cargo.toml
- Modified the clear command in package.json to include the --features dev-bin flag for enhanced functionality. - Added a new dev-bin feature in Cargo.toml to support the updated clear command.
1 parent 028e0f1 commit a00d374

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/desktop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"preview": "vite preview",
1010
"tauri": "tauri",
1111
"lint": "biome check .",
12-
"clear": "cargo run --bin clear --manifest-path ./src-tauri/Cargo.toml"
12+
"clear": "cargo run --bin clear --manifest-path ./src-tauri/Cargo.toml --features dev-bin"
1313
},
1414
"dependencies": {
1515
"@phosphor-icons/react": "^2.1.10",

apps/desktop/src-tauri/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ path = "src/main.rs"
1717
[[bin]]
1818
name = "clear"
1919
path = "src/bin/clear.rs"
20+
required-features = ["dev-bin"]
21+
22+
[features]
23+
default = []
24+
dev-bin = []
2025

2126
[build-dependencies]
2227
tauri-build = { version = "2.0", features = [] }

0 commit comments

Comments
 (0)