Fix cargo warning (duplicate target names)

This commit is contained in:
Danny McGee
2023-09-29 18:20:15 -04:00
parent ab380bc3da
commit 32057039b0
2 changed files with 10 additions and 6 deletions
+8 -5
View File
@@ -4,17 +4,20 @@ version = "0.1.0"
edition = "2021"
[lib]
name = "hello_world"
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"
[[bin]]
name = "hello-world-standalone"
path = "src/main.rs"
[dependencies]
wasm-bindgen = { version = "0.2.84", optional = true }
wasm-bindgen = { version = "0.2.84" }
console_error_panic_hook = { version = "0.1.7", optional = true }
[features]
wasm = [
"dep:wasm-bindgen",
"dep:console_error_panic_hook",
]
wasm = ["dep:console_error_panic_hook"]
[dependencies.bevy]
workspace = true
+2 -1
View File
@@ -31,7 +31,8 @@
"executor": "@nxrs/cargo:build",
"options": {
"release": false,
"run": true
"run": true,
"bin": "hello-world-standalone"
}
},
"test": {