feat: update cli template with edtion2021(#1739) (#1828)

This commit is contained in:
Ranger 2023-11-28 16:33:58 +08:00 committed by GitHub
parent 440bea29f8
commit 4301b9a7c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,4 @@
export const createLibRs = () => `#![deny(clippy::all)] export const createLibRs = () => `use napi_derive::napi;
#[macro_use]
extern crate napi_derive;
#[napi] #[napi]
pub fn sum(a: i32, b: i32) -> i32 { pub fn sum(a: i32, b: i32) -> i32 {