You've already forked AstralRinth
forked from didirus/AstralRinth
Prepare for adding theseus
This commit is contained in:
8
libs/theseus-tpl/Cargo.toml
Normal file
8
libs/theseus-tpl/Cargo.toml
Normal 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-tpl/project.json
Normal file
37
libs/theseus-tpl/project.json
Normal 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-tpl/src/lib.rs
Normal file
8
libs/theseus-tpl/src/lib.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = 2 + 2;
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user