diff --git a/cli/src/api/templates/lib.rs.ts b/cli/src/api/templates/lib.rs.ts index 4c01b6a6..b73f2964 100644 --- a/cli/src/api/templates/lib.rs.ts +++ b/cli/src/api/templates/lib.rs.ts @@ -1,7 +1,4 @@ -export const createLibRs = () => `#![deny(clippy::all)] - -#[macro_use] -extern crate napi_derive; +export const createLibRs = () => `use napi_derive::napi; #[napi] pub fn sum(a: i32, b: i32) -> i32 {