Skip to content

Commit ebd4df6

Browse files
authored
Create workspaces for ffi and the renderer (#1275)
1 parent 6801baf commit ebd4df6

File tree

8 files changed

+50
-0
lines changed

8 files changed

+50
-0
lines changed
File renamed without changes.

renderer/Cargo.lock renamed to libProcessing/Cargo.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libProcessing/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "libProcessing"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[workspace]
7+
resolver = "3"
8+
members = ["ffi","renderer"]

libProcessing/ffi/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "ffi"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]

libProcessing/ffi/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pub fn add(left: u64, right: u64) -> u64 {
2+
left + right
3+
}
4+
5+
#[cfg(test)]
6+
mod tests {
7+
use super::*;
8+
9+
#[test]
10+
fn it_works() {
11+
let result = add(2, 2);
12+
assert_eq!(result, 4);
13+
}
14+
}
File renamed without changes.

libProcessing/renderer/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pub fn add(left: u64, right: u64) -> u64 {
2+
left + right
3+
}
4+
5+
#[cfg(test)]
6+
mod tests {
7+
use super::*;
8+
9+
#[test]
10+
fn it_works() {
11+
let result = add(2, 2);
12+
assert_eq!(result, 4);
13+
}
14+
}
File renamed without changes.

0 commit comments

Comments
 (0)