Skip to content

Commit

Permalink
Set up a Cargo workspace for the Rust code
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored and av8ta committed May 26, 2024
1 parent c7b65ad commit 118c9e1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/node_modules/
/build
/dist
/target
/.svelte-kit
/package
*.env*
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"rust-analyzer.linkedProjects": ["packages/cadmium/Cargo.toml"],
"[markdown]": {
"editor.formatOnSave": false
},
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[workspace]
members = ["packages/cadmium"]
resolver = "2"

[patch.crates-io]
tsify = { git = "https://github.com/siefkenj/tsify" }
1 change: 0 additions & 1 deletion packages/cadmium/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
target
test_svgs
node_modules
12 changes: 0 additions & 12 deletions packages/cadmium/CADmium.code-workspace

This file was deleted.

3 changes: 0 additions & 3 deletions packages/cadmium/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,5 @@ serde_with = "3.4.0"
crc32fast = "1.3.2"
indexmap = "2.1.0"

[patch.crates-io]
tsify = { git = "https://github.com/siefkenj/tsify" }

[lib]
crate-type = ["cdylib", "rlib"]

0 comments on commit 118c9e1

Please sign in to comment.