hermit-os / hermit-rs-template

An application template for Hermit for Rust.
BSD Zero Clause License
29 stars 10 forks source link

suggestion: template project #42

Open sassman opened 3 years ago

sassman commented 3 years ago

hey, I'm not sure if that is yet interesting for you, but I've put together a little rusty-hermit starter template

It needs cargo-generate in a not yet released version (I will release it pretty soon) and then you can scaffold a new rusty-hermit project like this:

# needs cargo-generate 0.6.0.alpha.2
cargo install cargo-generate --version 0.6.0-alpha.2

## generate the template 
cargo generate --git sassman/hermit-template-rs

Then after a couple of questions you get either a hello world application (when turning networking off) or a simple echo tcp server application.

image

This might be good starting point and could even be more parameterised. If you are interested I could prepare a PR to provide such a template to the hermitcore org so that it is owned by you.

If that is out of scope, I'm also ok with it.

stlankes commented 3 years ago

Oh, looks great! A PR will be great! It simplifies the usage of RustyHermit.

mkroening commented 1 year ago

We'll transform this project into a proper template. Thank you so much for the suggestion and the previous work, @sassman! :)