forked from katzen-cafe/iowo
executor (poc): init proof of concept executor crate
This commit is contained in:
parent
ccc6d4f532
commit
3412eb9395
4 changed files with 29 additions and 1 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -426,6 +426,10 @@ dependencies = [
|
|||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "executor-poc"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "exr"
|
||||
version = "1.72.0"
|
||||
|
|
|
@ -5,7 +5,8 @@ members = [
|
|||
"crates/ir",
|
||||
"crates/lang",
|
||||
"crates/svg-filters",
|
||||
"crates/prowocessing",
|
||||
"crates/prowocessing",
|
||||
"crates/executor-poc",
|
||||
]
|
||||
resolver = "2"
|
||||
|
||||
|
|
9
crates/executor-poc/Cargo.toml
Normal file
9
crates/executor-poc/Cargo.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
[package]
|
||||
name = "executor-poc"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
14
crates/executor-poc/src/lib.rs
Normal file
14
crates/executor-poc/src/lib.rs
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue