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 6580d9dc0e
commit 5e1d9d461a
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