executor (poc): init proof of concept executor crate

This commit is contained in:
Schrottkatze 2024-07-18 19:12:58 +02:00
parent ccc6d4f532
commit 3412eb9395
No known key found for this signature in database
4 changed files with 29 additions and 1 deletions

4
Cargo.lock generated
View file

@ -426,6 +426,10 @@ dependencies = [
"serde", "serde",
] ]
[[package]]
name = "executor-poc"
version = "0.1.0"
[[package]] [[package]]
name = "exr" name = "exr"
version = "1.72.0" version = "1.72.0"

View file

@ -5,7 +5,8 @@ members = [
"crates/ir", "crates/ir",
"crates/lang", "crates/lang",
"crates/svg-filters", "crates/svg-filters",
"crates/prowocessing", "crates/prowocessing",
"crates/executor-poc",
] ]
resolver = "2" resolver = "2"

View file

@ -0,0 +1,9 @@
[package]
name = "executor-poc"
version = "0.1.0"
edition = "2021"
[dependencies]
[lints]
workspace = true

View file

@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}