271 breaking releases
Uses new Rust 2024
| 0.274.0 | Apr 9, 2026 |
|---|---|
| 0.272.0 | Mar 31, 2026 |
| 0.252.0 | Dec 18, 2025 |
| 0.247.0 | Nov 27, 2025 |
| 0.5.0 | Mar 31, 2022 |
#429 in Procedural macros
424,697 downloads per month
Used in 191 crates
(4 directly)
285KB
8K
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.4–2.1MB
~44K SLoC