198 breaking releases

new 0.201.0 Dec 6, 2024
0.199.0 Nov 27, 2024
0.176.0 Jul 29, 2024
0.148.0 Mar 21, 2024
0.5.0 Mar 31, 2022

#168 in Procedural macros

Download history 20274/week @ 2024-08-19 26357/week @ 2024-08-26 22045/week @ 2024-09-02 22339/week @ 2024-09-09 18685/week @ 2024-09-16 24709/week @ 2024-09-23 30637/week @ 2024-09-30 19040/week @ 2024-10-07 30396/week @ 2024-10-14 23812/week @ 2024-10-21 26030/week @ 2024-10-28 17667/week @ 2024-11-04 36987/week @ 2024-11-11 42661/week @ 2024-11-18 21941/week @ 2024-11-25 42400/week @ 2024-12-02

145,175 downloads per month
Used in 132 crates (3 directly)

MIT license

220KB
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.5–1MB
~22K SLoC