Use Cargo workspace

Cargo workspace in the root will help make the IDE experience universal.
Cargo.lock and the target directory for build artifacts will be in the root
of the mempool repository (with ./target ignored by git).
This commit is contained in:
junderw 2023-06-23 22:07:43 -07:00 committed by Mononaut
parent 83bf9229e7
commit 920232be4c
No known key found for this signature in database
GPG key ID: A3F058E41374C04E
5 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ backend/mempool-config.json
*.swp
frontend/src/resources/config.template.js
frontend/src/resources/config.js
target

View file

@ -1,8 +1,5 @@
{
"editor.tabSize": 2,
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.tsdk": "./backend/node_modules/typescript/lib",
"rust-analyzer.linkedProjects": [
"./backend/rust-gbt/Cargo.toml"
]
"typescript.tsdk": "./backend/node_modules/typescript/lib"
}

4
Cargo.toml Normal file
View file

@ -0,0 +1,4 @@
[workspace]
members = [
"./backend/rust-gbt",
]

View file

@ -1,4 +1,3 @@
target
index.node
**/node_modules
**/.DS_Store