1 2 3 4 5 6 7 8 9
#![deny(clippy::all)] #[macro_use] extern crate napi_derive; #[napi] pub fn sum(a: i32, b: i32) -> i32 { a + b }