➜ snapshot git:(snapshot) ✗ cargo run ~/mcp-v8/snapshot
Compiling snapshot v0.1.0 (/Users/robertwendt/mcp-v8/snapshot)
warning: value assigned to `string_result` is never read
--> src/main.rs:30:13
|
30 | let mut string_result = String::new();
| ^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
= note: `#[warn(unused_assignments)]` on by default
error[E0505]: cannot move out of `handle_scope` because it is borrowed
--> src/main.rs:66:10
|
33 | let handle_scope = &mut v8::HandleScope::new(&mut isolate);
| ------------ binding `handle_scope` declared here
34 | let context = v8::Context::new(handle_scope, Default::default());
35 | let scope = &mut v8::ContextScope::new(handle_scope, context);
| --------------------------------------------
| | |
| | borrow of `*handle_scope` occurs here
| a temporary with access to the borrow is created here ...
...
66 | drop(handle_scope);
| ^^^^^^^^^^^^ move out of `handle_scope` occurs here
...
81 | }
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `ContextScope`
error[E0505]: cannot move out of `isolate` because it is borrowed
--> src/main.rs:68:26
|
14 | let mut isolate: OwnedIsolate;
| ----------- binding `isolate` declared here
...
33 | let handle_scope = &mut v8::HandleScope::new(&mut isolate);
| ----------------------------------
| | |
| | borrow of `isolate` occurs here
| a temporary with access to the borrow is created here ...
...
68 | let snapshot = match isolate.create_blob(v8::FunctionCodeHandling::Keep) {
| ^^^^^^^ move out of `isolate` occurs here
...
81 | }
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `HandleScope`
For more information about this error, try `rustc --explain E0505`.
warning: `snapshot` (bin "snapshot") generated 1 warning
error: could not compile `snapshot` (bin "snapshot") due to 2 previous errors; 1 warning emitted
➜ snapshot git:(snapshot) ✗ ~/mcp-v8/snapshot
Created
April 14, 2025 20:10
-
-
Save r33drichards/66ff8c251e08b331526a5617becd850f to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment