148 breaking releases

new 0.151.0 Apr 15, 2024
0.149.0 Apr 11, 2024
0.148.0 Mar 21, 2024
0.116.0 Dec 28, 2023
0.5.0 Mar 31, 2022

#597 in Procedural macros

Download history 2830/week @ 2023-12-23 8917/week @ 2023-12-30 11043/week @ 2024-01-06 10641/week @ 2024-01-13 15469/week @ 2024-01-20 11400/week @ 2024-01-27 13151/week @ 2024-02-03 14865/week @ 2024-02-10 9213/week @ 2024-02-17 17118/week @ 2024-02-24 13148/week @ 2024-03-02 16182/week @ 2024-03-09 14622/week @ 2024-03-16 16858/week @ 2024-03-23 22379/week @ 2024-03-30 8420/week @ 2024-04-06

65,522 downloads per month
Used in 101 crates (2 directly)

MIT license

200KB
5.5K 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.4–1MB
~20K SLoC