Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A few comments:

* missing `use rocket_contrib::json::Json`

* `unwrap_or` is better than `or` followed by `unwrap`

* the psutil crate already has hostname info

* the psutil crate doesn't provide an uptime function if you're on a unix system.

* once you setup the hostinfo route, your example says to curl the index

* your docker link is broken



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: