Cetra's Thoughts

Creating your own custom derive macro
Harnessing the power of `syn` and `quote` to create custom rust macros
rust divedb 2023-07-23
One of the things I tackled early on with when creating DiveDB was trying to import a lot of metrics from dive logs. At regular intervals, normally every 10 seconds, a dive computer will record metrics about the dive, such as depth, tank pressure, water t…
Synchronizing state with Websockets and JSON Patch
A simple and extendable, almost realtime, state-sharing method for frontend and backend
rust 2023-01-29
At formlogic, we are using rust for a number of components within our tech stack, including: internal and external web applications, coordinating and logging machining workflows, parsing an industrial domain specific language (G-Code), and more. One of th…
Publishing Rust types to a TypeScript frontend
Common libraries and projects used to share types from a Rust web backend to a TypeScript frontend
rust typescript 2022-09-13
When building in a strongly-typed language such as rust it's a shame to have to throw this strictness away, especially when dealing with the wild west of frontend stacks. The bigger the project is, the more you want to keep things cohesive. This cohesion …
Implementing a Job queue with SQLx and Postgres
An example of async postgres in rust
rust tmq sqlx 2020-06-26
SQLx is a new async SQL Toolkit for rust that is closer to standard SQL than a more opinionated ORM like Diesel. I wanted to give it a bit of a test run and see how easy it would be to convert usage from tokio-postgres. So as the next saga in the jobq se…
Drawing SVG Graphs with Rust
Using tera to draw SVG graphs with rust
rust lorikeet 2020-05-22
I have just released the first version of lorikeet-dash and part of that exercise was to find out a way to draw SVG graphs using rust. I thought my findings & approach may be useful for others looking to do the same thing and so I have documented the …
Page 1 of 3 Next