diff --git a/hello-world/Cargo.toml b/hello-world/Cargo.toml index 1bad960..7ddd74f 100644 --- a/hello-world/Cargo.toml +++ b/hello-world/Cargo.toml @@ -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 diff --git a/hello-world/project.json b/hello-world/project.json index 8e9a846..334cc7d 100644 --- a/hello-world/project.json +++ b/hello-world/project.json @@ -31,7 +31,8 @@ "executor": "@nxrs/cargo:build", "options": { "release": false, - "run": true + "run": true, + "bin": "hello-world-standalone" } }, "test": {