Skip to content

Commit ad0d725

Browse files
committed
switch to a workspace
1 parent 84c0d4e commit ad0d725

7 files changed

Lines changed: 11 additions & 292 deletions

File tree

examples/rustjswasm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ add_extension: rustjswasm
55
email: 3105306+timkpaine@users.noreply.github.com
66
github: python-project-templates
77
project_description: A Rust-Python project template
8-
project_name: python template rust
8+
project_name: python template rustjswasm
99
python_version_primary: '3.9'
1010
team: Python Project Template Authors

rustjswasm/Cargo.toml.jinja

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ strum = "0.24.1"
1717
[profile.release]
1818
panic = 'abort'
1919
lto = true
20+
21+
[profile.test.junit]
22+
path = "junit.xml"
23+
24+
[workspace]
25+
members = [
26+
"js",
27+
"rust",
28+
]

rustjswasm/js/Cargo.lock.jinja

Lines changed: 0 additions & 193 deletions
This file was deleted.

rustjswasm/js/Cargo.toml.jinja

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,3 @@ crate-type = ["cdylib"]
1414
[dependencies]
1515
{{module}} = { path = "../rust", version = "*" }
1616
wasm-bindgen = "0.2.84"
17-
18-
[profile.release]
19-
panic = 'abort'
20-
lto = true

rustjswasm/js/package.json.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"setup": "cargo install -f wasm-bindgen-cli --version 0.2.101",
3030
"build:debug": "node build.mjs --debug",
3131
"build:rust": "cargo build --release --all-features --target wasm32-unknown-unknown",
32-
"build:wasm-bindgen": "wasm-bindgen target/wasm32-unknown-unknown/release/{{module}}.wasm --out-dir ./dist/pkg --target web",
32+
"build:wasm-bindgen": "wasm-bindgen ../target/wasm32-unknown-unknown/release/{{module}}.wasm --out-dir ./dist/pkg --target web",
3333
"build:prod": "node build.mjs",
3434
"build": "npm-run-all build:rust build:wasm-bindgen build:prod",
3535
"clean": "rm -rf dist lib playwright-report ../{{module}}/extension",

rustjswasm/rust/Cargo.lock.jinja

Lines changed: 0 additions & 89 deletions
This file was deleted.

rustjswasm/rust/Cargo.toml.jinja

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,3 @@ crate-type = ["rlib"]
1616
[dependencies]
1717
serde = { version = "1.0", features = ["derive"] }
1818
serde_json = "1"
19-
20-
[profile.test.junit]
21-
path = "junit.xml"
22-

0 commit comments

Comments
 (0)