203 breaking releases
new 0.206.0 | Jan 8, 2025 |
---|---|
0.204.0 | Jan 3, 2025 |
0.203.0 | Dec 20, 2024 |
0.199.0 | Nov 27, 2024 |
0.5.0 | Mar 31, 2022 |
#878 in Procedural macros
96,646 downloads per month
Used in 132 crates
(3 directly)
240KB
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.3–2MB
~37K SLoC