Advanced Search
Search Results
30 total results found
Software
Linux
Flatpak
Flatpak is a software package system for Linux, which is supported by a wide variousity of distributions and provide features like isolated environments (so called sandboxes) or creating your own repository for your applications. Flatpak is mainly used for gra...
Programming
Rust
Smart Pointers
Smart Pointers are references to data, so you can use it, without taking ownership of this data. But before talking about Smart Pointers, lets take a look at normal references. Normal references You can create references to variables. This gives code the abi...
Electronics
Microcontrollers
ESP8266
The ESP8266 is a microcontroller by Espressif. Properties Property Value Nominal Voltage 3.3 V CPU 32 bit CPU Connectivity 2.4 GHz Wifi, Bluetooth ADC 1 10-bit ADC with max 1.0 Volt Pins GPIO Pins, I2C, SPI, UART ...
Tauri
Basics
Tauri is a framework for building desktop applications using the programming language Rust. It uses Rust for the core of the application, but gives you the ability to define the user interface using JS/TS based frameworks like Vue or React. Install and create...
Vue Invoke
When writing the user interface, you need to invoke the functions written in rust using the "invoke" function in vue. Example code for a rust function: #[tauri::command] fn my_function() -> String { "Hello world!".to_string() } #[cfg_attr(mobile, t...
SQLx
SQLx is a SQL framework for Rust, which allows to write SQL queries and check them on compile time. It also comes with a migration logic to update your database. Install SQLx To install the SQLx, run the following command in the terminal cargo install sqlx-...
Cloud
AWS
Macros
An overview and examples for the diverse types of macros you can use in Rust.
Procedural Macros
Procedural macros are "headers" added above e.g. a struct, take those information and generate different code out of it. They look like this: #[example]. They are way more complex, but give you the ability to generate complex code. Procedural Macros takes an ...
Declarative Macros
Declarative macros look like a function: e.g. println!(), format!() or todo!(). They have an exclamation mark between the name and the parameter list. Declarative macros are like "shortcuts", it is usually more code, packed in a code block, which will generat...