-
I want to run the js code with rust and get the data from consloe.log() let file=File::open("log.txt").await?;
let stdio=Stdio {
stdin: StdioPipe::Inherit,
stdout: StdioPipe::File(file),
stderr: StdioPipe::Inherit,
}
let options = WorkerOptions {
//...
stdio: stdio,
}; I noticed that the code has let permissions = PermissionsContainer::allow_all(); Anyone tell me what's going on, thanks guys |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The error message looks like this
|
Beta Was this translation helpful? Give feedback.
-
[because File::open() open's a file in read-only mode](https://stackoverflow.com/questions/65862510/why-am-i-getting-a-bad-file-descriptor-error-when-writing-file-in-rust) |
Beta Was this translation helpful? Give feedback.
[because File::open() open's a file in read-only mode](https://stackoverflow.com/questions/65862510/why-am-i-getting-a-bad-file-descriptor-error-when-writing-file-in-rust)
Hello everyone, I found the answer, cheering