From 4301b9a7c35ca576dea6454fcb45dd7f3afcf7c0 Mon Sep 17 00:00:00 2001 From: Ranger <32590310+southorange0929@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:33:58 +0800 Subject: [PATCH] feat: update cli template with edtion2021(#1739) (#1828) --- cli/src/api/templates/lib.rs.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 {