mirror of
https://github.com/denoland/deno.git
synced 2025-01-13 09:32:24 -05:00
65d9bfb533
This is a new op system that will eventually replace `#[op]`. Features - More maintainable, generally less-coupled code - More modern Rust proc-macro libraries - Enforces correct `fast` labelling for fast ops, allowing for visual scanning of fast ops - Explicit marking of `#[string]`, `#[serde]` and `#[smi]` parameters. This first version of op2 supports integer and Option<integer> parameters only, and allows us to start working on converting ops and adding features.
5 lines
153 B
Rust
5 lines
153 B
Rust
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
/// This is a doc comment.
|
|
#[op2(fast)]
|
|
pub fn op_has_doc_comment() -> () {}
|