diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-07-01 16:07:05 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 22:07:05 +0000 |
commit | 6afdcf59b80b4a3ecf60f220ddff14f4309133d0 (patch) | |
tree | d6a6dad1945430e161fba9e86d93fe3d8893d89c /core/lib.rs | |
parent | 0f719aa79c2b471815c9d21014b37719c6557c1b (diff) |
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.
Diffstat (limited to 'core/lib.rs')
-rw-r--r-- | core/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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; |