deno_ops

Crates.iodeno_ops
lib.rsdeno_ops
version0.258.0
created_at2022-03-14 17:10:13.243361+00
updated_at2026-01-23 23:01:24.443629+00
descriptionProc macro for writing Deno Ops
homepage
repositoryhttps://github.com/denoland/deno_core
max_upload_size
id549997
size888,043
Bartek IwaƄczuk (bartlomieju)

documentation

README

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]
)
Commit count: 1183

cargo fmt