198 breaking releases
new 0.201.0 | Dec 6, 2024 |
---|---|
0.199.0 | Nov 27, 2024 |
0.176.0 | Jul 29, 2024 |
0.148.0 | Mar 21, 2024 |
0.5.0 | Mar 31, 2022 |
#168 in Procedural macros
145,175 downloads per month
Used in 132 crates
(3 directly)
220KB
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.5–1MB
~22K SLoC