192 breaking releases

0.195.0 Nov 7, 2024
0.193.0 Oct 30, 2024
0.176.0 Jul 29, 2024
0.148.0 Mar 21, 2024
0.5.0 Mar 31, 2022

#167 in Procedural macros

Download history 11083/week @ 2024-07-28 9369/week @ 2024-08-04 13682/week @ 2024-08-11 20027/week @ 2024-08-18 26281/week @ 2024-08-25 22228/week @ 2024-09-01 22453/week @ 2024-09-08 18270/week @ 2024-09-15 24470/week @ 2024-09-22 31227/week @ 2024-09-29 18863/week @ 2024-10-06 30407/week @ 2024-10-13 23934/week @ 2024-10-20 25901/week @ 2024-10-27 17116/week @ 2024-11-03 33081/week @ 2024-11-10

101,163 downloads per month
Used in 125 crates (3 directly)

MIT license

210KB
6K SLoC

deno_ops

proc_macro for generating highly optimized V8 functions from Rust functions.

use deno_core::{op2, extension};

// Declare an op.
#[op2(fast)]
pub fn op_add(a: i32, b: i32) -> i32 {
  a + b
}

// Register with an extension.
extension!(
  math,
  ops = [op_add]
)

Dependencies

~0.3–0.8MB
~18K SLoC