From 6afdcf59b80b4a3ecf60f220ddff14f4309133d0 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Sat, 1 Jul 2023 16:07:05 -0600 Subject: refactor(ops): op2 supports strings in argument and return position (#19613) Support strings (&str, String, and Cow) in the argument position and String in the return position. Avoids copies where possible, though this is not always something we can do. --- core/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/lib.rs') diff --git a/core/lib.rs b/core/lib.rs index 30a14f3e4..2f8d9142c 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -144,6 +144,9 @@ pub mod _ops { pub use super::runtime::ops::queue_async_op; pub use super::runtime::ops::queue_fast_async_op; pub use super::runtime::ops::to_i32; + pub use super::runtime::ops::to_str; + pub use super::runtime::ops::to_str_ptr; + pub use super::runtime::ops::to_string_ptr; pub use super::runtime::ops::to_u32; pub use super::runtime::V8_WRAPPER_OBJECT_INDEX; pub use super::runtime::V8_WRAPPER_TYPE_INDEX; -- cgit v1.2.3