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 only for a single client and it has no security features whatsoever, don't use this as a server to process unknown http requests!
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:
plaintext
cargo install rustkernel
rustkernel
Request should be a POST
request to root: /
, the body should match the documentation structure here
The only header required at this stage is Content-Length: [len of body]
stdout
/ stderr
fn main
bodyuse
, structs
and enums
outside the fn main
body use
required crates to cargo.toml