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
101,163 downloads per month
Used in 125 crates
(3 directly)
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