Skip to content

Commit

Permalink
draw2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazariglez committed Feb 7, 2024
1 parent 72e2cca commit cdb150f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ members = [
"crates/notan_macro2",
"crates/notan_app2",
"crates/notan_gfx"
]
, "crates/notan_draw2"]

[workspace.package]
version = "1.0.0-alpha.0"
Expand Down
12 changes: 12 additions & 0 deletions crates/notan_draw2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "notan_draw2"
version.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
edition.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
14 changes: 14 additions & 0 deletions crates/notan_draw2/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit cdb150f

Please sign in to comment.