214 breaking releases
Uses new Rust 2024
new 0.217.0 | Mar 20, 2025 |
---|---|
0.215.0 | Feb 21, 2025 |
0.203.0 | Dec 20, 2024 |
0.199.0 | Nov 27, 2024 |
0.5.0 | Mar 31, 2022 |
#923 in Procedural macros
151,230 downloads per month
Used in 137 crates
(3 directly)
250KB
7K
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
~1.6–2.2MB
~45K SLoC