Crates.io | rustkernel |
lib.rs | rustkernel |
version | 0.0.21 |
source | src |
created_at | 2021-09-19 02:35:37.250704 |
updated_at | 2022-01-22 12:34:36.005922 |
description | Kernel for running Rust code interactively in VS Code Notebook |
homepage | https://rustnote.com |
repository | https://github.com/rustnote/rustkernel |
max_upload_size | |
id | 453460 |
size | 14,301 |
This kernel is made primarily for running code generated by VS Code Notebooks, it takes requests in the form of Rust code along with VS Code Notebook cell information. Data is retained in memory as long as the server is running, it's meant to be run locally as it uses raw TCP with no HTTP.
It's currently being used just for the VS Code extension - Rustnote.
This is still in the experimental stages, there are many features to be added.
To start a server on port 8787
and await requests:
cargo install rustkernel
rustkernel
VS Code and Rust communicate over TCP with utf8, it doesn't follow http protocol as it's just running locally. There are no dependencies in the Rust of Nodejs code, this is to keep the extension size to minimum, and to minimize Rust compile time on first run.
stdout
/ stderr
use
outside the fn main
bodyuse
required crates to cargo.toml