diff --git a/cli/src/new/lib-rs.ts b/cli/src/new/lib-rs.ts index 55dfb167..6789aa7a 100644 --- a/cli/src/new/lib-rs.ts +++ b/cli/src/new/lib-rs.ts @@ -4,7 +4,7 @@ export const LibRs = `#![deny(clippy::all)] extern crate napi_derive; #[napi] -fn sum(a: i32, b: i32) -> i32 { +pub fn sum(a: i32, b: i32) -> i32 { a + b } `