Create a Hello World project:
cargo new hello_rpi
cd hello_rpiCreate .cargo/config.toml in the project directory with the following contents:
| FROM debian:bookworm AS build | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| pkg-config \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=1.80.0 | |
| ENV PATH /root/.cargo/bin:$PATH |
| [package] | |
| name = "vector2" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [dev-dependencies] | |
| rand = "0.8" | |
| criterion = "0.4" | |
| [[bench]] |
python -m http.server and open http://localhost:8000. Just opening index.html in the browser won't work because of CORS policy.Prerequisites: Python 3.7, pip.
Install dependencies:
pip install -r requirements.txtTurn on sound and run:
The DSL is useful for development, testing and debugging by enabling quickly writing MQTT interaction scenarios.
Advantages over mosquitto:
mosquitto I can easily forget
what I actually want to do with it. This is damn slow.| [package] | |
| name = "wtf" | |
| version = "0.1.0" | |
| authors = [] | |
| edition = "2018" | |
| [dependencies] | |
| serde = "1.0" | |
| serde_derive = "1.0" |
| BEGIN; | |
| --------- | |
| -- INT -- | |
| --------- | |
| CREATE TABLE room_int ( | |
| id UUID PRIMARY KEY, | |
| time TSTZRANGE NOT NULL, | |
| audience TEXT NOT NULL, |
| FROM debian:buster | |
| RUN apt-get update && apt-get install -y openssl libssl-dev gcc | |
| COPY example.c /example.c | |
| RUN gcc -I/usr/include/openssl -lssl -lcrypto -o example example.c | |
| CMD ["/example"] |