lib.rs 299 B

1234567891011121314151617
  1. #![deny(clippy::all)]
  2. use napi_derive::napi;
  3. #[cfg(all(
  4. any(windows, unix),
  5. target_arch = "x86_64",
  6. not(target_env = "musl"),
  7. not(debug_assertions)
  8. ))]
  9. #[global_allocator]
  10. static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
  11. #[napi]
  12. pub fn plus_100(input: u32) -> u32 {
  13. input + 100
  14. }