Initial monorepo setup

This commit is contained in:
Jai A
2024-07-03 11:05:58 -07:00
parent 12a3520563
commit 68f0e68343
60 changed files with 13681 additions and 39 deletions

8
libs/theseus/Cargo.toml Normal file
View File

@@ -0,0 +1,8 @@
[package]
name = "theseus"
version = "0.1.0"
edition = "2021"
[dependencies]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

37
libs/theseus/project.json Normal file
View File

@@ -0,0 +1,37 @@
{
"name": "theseus",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"sourceRoot": "libs/theseus/src",
"targets": {
"build": {
"executor": "@monodon/rust:check",
"outputs": ["{options.target-dir}"],
"options": {
"target-dir": "dist/target/theseus"
}
},
"test": {
"cache": true,
"executor": "@monodon/rust:test",
"outputs": ["{options.target-dir}"],
"options": {
"target-dir": "dist/target/theseus"
},
"configurations": {
"production": {
"release": true
}
}
},
"lint": {
"cache": true,
"executor": "@monodon/rust:lint",
"outputs": ["{options.target-dir}"],
"options": {
"target-dir": "dist/target/theseus"
}
}
},
"tags": []
}

8
libs/theseus/src/lib.rs Normal file
View File

@@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}