125 Repositories
Rust msp430-i2c-oled-example-rs Libraries
The example anchor implementation for solana-swap
anchor-liquidity-pool This is the example anchor implementation for solana-swap. The curve is always ConstantProduct in this implementation. The fee r
Infer a JSON schema from example data, produce nonsense synthetic data (drivel) according to the schema
drivel drivel is a command-line tool written in Rust for inferring a schema from an example JSON (or JSON lines) file, and generating synthetic data (
Example of CVE-2024-24576 use case.
CVE-2024-24576 PoC The Command::arg and Command::args APIs state in their documentation that the arguments will be passed to the spawned process as-is
example codes for CIS198 https://cis198-2016s.github.io/
CIS198: RUST 编程语言 学习背景 rust 和 c/c++/Java/Python/golang 不太一样 rust 学习曲线比较陡峭 rust 有很多颠覆认知的特性: 所有权,生命周期,借用检测 cargo 工具 函数式+命令式支持 视频讲解见 B站 课程大纲 Timeline Lec
Example of reading the BME280 sensor on an ESP32-C3 using Rust
Rust ESP32-C3 BME280 Example of reading the BME280 sensor on an ESP32-C3 using Rust Hardware: ESP32-C3 microcontroller BME280 sensor Breadboard Jump w
A collection of example project using Njord.
Example Projects A collection of example project using Njord. Contributors The following contributors have either helped to start this project, have c
A controller for the display and fan of the Raspberry Pi Waveshare PoE HAT written in Rust 🦀
🦀🍇 RustBerry-PoE-Monitor RustBerry-PoE-Monitor is a Rust-based monitoring and control tool for the Raspberry Pi, specifically designed for use with
An asset for HardHat C2 written in Rust as an example/demo
Rivet An asset for HardHat C2 written in Rust as an example/demo Installation and Use Download cargo for the operating system the team server will be
A simplified example in Rust of training a neural network and then using it based on the Candle Framework by Hugging Face.
candle-simplified-example A simplified example in Rust of training a neural network and then using it based on the Candle Framework by Hugging Face. H
A working, tested example for how to use Rust with warp and JWT
rust-jwt-example Example of JWT authentication and authorization in Rust using Warp Login curl http://localhost:8000/login -d '{"email": "user@userlan
A networked (p2p), cross-platform physics simulation example using rollback netcode
bevy_gaff (work in progress) bevy_gaff is an attempt at making a networked (p2p), cross-platform physics simulation using rollback netcode. It synchro
TinyTodo is a Cedar Agent example, with a server in Rust and client in python
TinyTodo - OPAL and Cedar Agent Demo TinyTodo is a simple application for managing task lists. It uses OPAL and Cedar Agent to control who has access
Example implementation of a 3d hexagon tile-based map editor using bevy
bevy-hex-sandbox Example implementation of a 3d hexagon tile-based map editor using bevy v0.10. smol.mov This is not a maintained project. Instead, th
Example app & project structure for Golem Cloud
Synopsis This project serves as an example/template for building an application using WebAssembly Component Model (and in this case, an app for Ziverg
An example CosmWasm contract for connecting contracts over IBC.
CosmWasm IBC Example This is a simple IBC enabled CosmWasm smart contract. It expects to be deployed on two chains and, when prompted, will send messa
`dfx new --type=rust` + burn-rs MNIST web inference example
ic-mnist The frontend provides a canvas where users can draw a digit. The drawn digit is then sent to the backend canister running burn-rs for inferen
This is an example Nostr rust project to enable '402 Payment Required' responses for requests to paid content.
Nostr Paywall Example This is an example Nostr rust project to enable 402 Payment Required responses for requests to paid content. To prove payment, a
CosmWasm-Examples is a collection of example contracts and applications built using the CosmWasm framework
CosmWasm-Examples is a collection of example contracts and applications built using the CosmWasm framework. CosmWasm is a secure and efficient smart contract platform designed specifically for the Cosmos ecosystem.
Little example projects for learning Rust and building awesome cli tools! ⭐️
rust-cli-examples Examples of clean and well-tested command line utilities, written in Rust. 🦀 👍 What is this repo? This repo is a collection of man
Example (with solution) for the Rust Fundamentals Workshop
Workshop Repo: Rust Fundamentals NOTE: This is Work-In-Progress! Please check for updates a day before the workshop. This Github repository contains a
A simple authentication flow using Rust and Actix-web, with a PostgreSQL database and a sveltekit frontend.
Rust-auth-example This repository aims to represent a simple authentication flow using Rust and Actix-web, with a PostgreSQL database and a sveltekit
DNS Server written in Rust for fun, see https://dev.to/xfbs/writing-a-dns-server-in-rust-1gpn
DNS Fun Ever wondered how you can write a DNS server in Rust? No? Well, too bad, I'm telling you anyways. But don't worry, this is going to be a fun o
CosmWasm + zkVM RISC-V EFI template
cosmwasm-risc0-example CosmWasm + RISC-V zkVM gm example Overview CosmWasm RISC Zero This example exists to explore the patterns of use of CosmWasm an
Example NFT marketplace project using ink! smart contract.
NFT Marketplace project This contract is an example for the NFT marketplace implementation. License Apache 2.0 🏗️ How to use - Contracts 💫 Build Use
Example of an dark-mode toggle button based on progressive enhancement
Leptos Starter Template This is a template for use with the Leptos web framework and the cargo-leptos tool. Creating your template repo If you don't h
An example of a common Wi-Fi set up scenario on ESP32 using Rust
UTC IoT fetcher This repo is an example of how to configure a Wi-Fi client on an ESP32-based IoT device using an external device connection to the int
iOS app example - AI Selfies Generator like Lensa: Stable Diffusion In Action
Magic Avatars In this repository, we look at several approaches to creating avatars, changing backgrounds, and deep image processing for more detailed
A simple example showcasing how to use Bevy to display a square with acceleration (controllable with your keyboard) that wraps around the screen!
Bevy Wrapping Square example A simple example showcasing how to use Bevy to display a square with acceleration (controllable with your keyboard) that
A Domain Driven Design example application in Rust.
Rust Domain Driven Design Example rust-ddd Rust Domain-Driven-Design (DDD) Summery This repository is used to present how I find implementing DDD in R
Small example using Slint on the MXCHIP IoT DevKit (AZ3166)
Small example using Slint on the MXCHIP IoT DevKit (AZ3166) To Build and run: You need: The hardware: an MXCHIP IoT DevKit https://en.mxchip.com/az316
An example re-entrancy attack on a flashloan vault.
CosmWasm re-entrancy Exploit Example The exploit example is located in contracts/liquidity_hub/vault-network/exploit_contract. A vault in contracts/li
Tauri and Leptos example.
tauri-leptos-example Tauri Leptos Requires Rust Nightly. See Leptos nightly Note. # Install Tauri CLI cargo install tauri-cli # Build and develop for
Simple example of axum, sqlx with sqlite and utoipa (swagger) - without auth
axum_crud_api Simple example to learn creating CRUD rest apis in Rust with axum, sqlx with sqlite and utoipa (swagger) - without auth Also shows how t
Example Blog using Rust, Actix Web, HTMX, Mustache
Actix Blog An example blog built with Actix. It uses htmx and handlebar templates. Running To run the blog, you need to have a recent version of Rust
An example app in Rust for CircleCI's Dynamic Config demo
circleci-dynamic-config-example An example app in Rust for CircleCI's dynamic config demo. Dynamic config allows you to dynamically generate CircleCI'
A barebones example of how to integrate OpenXR with wgpu (Vulkan-only)
wgpu-openxr-example a barebones example of how to integrate OpenXR with wgpu (Vulkan-only) It has four modes: cargo run --no-default-features: desktop
An example of how to use Workers KV with workers-rs
rusty-kv-example An example project of how to use Workers KV with workers-rs. Usage With wrangler, you can build, test, and deploy your Worker with th
An open-source emulator for small OLED displays that are often used for Arduino/IOT projects.
SSD1306 OLED Emulator An open-source emulator for small OLED displays that are often used for Arduino/IOT projects. This project is still in an alpha
A simple example demonstrating cross-contract calls in CosmWasm smart contracts
Cross-contract calls This tutorial demonstrates cross-contract calls with CosmWasm v1. Overview An end user calls the reservation contract to register
A complete imgui-rs example using dependencies only from crates.io.
Dear imgui-rs, hello. This is a fairly basic, but complete and standalone example application for the Rust version of dear imgui (https://github.com/o
Example showing how to use tokio and egui together.
Example using tokio with egui This example uses reqwest to send an HTTP request to httpbin. The parsed response contains an increment value (as provid
Vite + Webassembly starter project
Vite + Typescript+ Webassembly A starter project for you to create a blazingly fast web application Before getting started You need to get these prere
I2C (SSD1306) display integration for `bombuscv-rs`.
BombusCV Display I2C (SSD1306) display integration for bobmuscv-rs. Index Use case Examples Install Cargo Master branch Usage Changelog License Use ca
Example to run Rust code on the MCH2022 badge.
Rust on the MCH2022 badge This repo contains instructions and code to run Rust on the MCH2022 badge. There are two approaches regarding environment: I
🦀 Small Tauri SolidJS Example feat. Vite
Tauri Solid Example (2022) Simple Solid(vite) starter running with Tauri. Should hopefully save some time trying to setup Tauri and Solid. Currently c
2d collision test for game-development in rust (with optional integration and example for bevy)
impacted 2d collision test for game-development in rust (with optional integration and example for bevy) This provides a low-level "narrow-phase" coll
🎮 A Realtime Multiplayer Server/Client Game example built entirely with Rust 🦀
Example of a 🎮 Realtime Multiplayer Web Game Server/Client built entirely using Rust 🦀
Raspberry PI library for Rust. GPIO controller, L298N motors, sockets and "i2clib" integrated
raslib Raspberry PI library for Rust. GPIO controller, L298N motors, sockets and "i2clib" integrated All tests are made on Raspberry PI 4B+ on Raspbia
An example bdk + yew single page web wallet
bdk-yew-example This project builds a simple bdk-wasm based testnet wallet as a single page web app. The page can be hosted locally or automatically d
A simple, modern fuzzy finder tool to run examples in a Cargo project.
cargo-rx cargo-rx is a simple, modern Runner for Examples in a Cargo project. This crate provides a single executable: rx. Basically anywhere you woul
Example for Rust Android Native Development
Android console application example project based on rust & cargo-xdk
ARM TrustZone-M example application in Rust, both secure world side and non-secure world side
ARM TrustZone-M example application in Rust, both secure world side and non-secure world side; projects are modified from generated result of cortex-m-quickstart.
Rust and TypeScript example code for finding all members from a collection id.
get-collection-rs Use the Crawler cargo build --release ./target/release/get-collection rpc_node collection_id Example: ./target/release/get-col
An example Kibana plugin written in Rust and Typescript
An example Kibana plugin written in Rust and Typescript
Example of a SC coded in RUST that can safely perform any swaps of tokens (NFT, SFT, ESDT, MetaESDT)
Elrond-NFT-Trading Example of a Smart Contract (SC) coded in RUST, that can perform any swaps of tokens (NFT, SFT, ESDT, MetaESDT) The idea P2P swaps
How to be a full stack Rust Developer
How to be a full stack Rust Developer Read Rust API guideline. Test code here and refer to the Rust blog posts at Steadylearner. If you need or know s
Lumiere is a proof-of-concept/example video player built with the Slint UI framework and libmpv
Lumiere is a proof-of-concept/example video player built with the Slint UI framework and libmpv. This was built quickly to try out Slint and it's new OpenGL underlay feature.
A shared document application akin to Google Docs. Example usage of wasm-peers library.
Live Document Proof of concept application showcasing the usability of wasm-peers crate for easy and costless peer-2-peer WebRTC communication. It's a
WasmEdge Host Function Example Interface
A Rust library that provides Rust to WebAssembly developers with syntax for running self-defined host functions when their Wasm is being executed on WasmEdge (formerly SSVM).
Example of using nom parsers from a proc macro
Example of using nom parsers from a proc macro This project is organised as 3 crates: nom_macro is the main project, exposing the proc macro and the g
A toy example showing how to run Rust code in Python for speed and progress.
PoC: Integrating Rust in Python A toy example showing how to run Rust code in Python for speed and progress. Requirements Python 3.6+ Rust 1.44+ Cargo
Example of a block root with a Verkle state root
Example of a block root with a Verkle state root Block content This is a standard RLP block containing 3 transactions, and an added VerkleProof field
A example bevy application using bevy-kajiya for its renderer
☀️ bevy-kajiya playground A example bevy application using bevy-kajiya for its renderer NOTE: only tested on Windows. For more context, check out the
Featured Dioxus projects on how to build clean user interfaces in Rust
Example projects with Dioxus This repository holds the code for a variety of example projects built with Dioxus. Each project has information on how t
The point of this anchor project is to serve as a starter kit or example to compose with mango-v3 using anchor.
The point of this anchor project is to serve as a starter kit or example to compose with mango-v3 using anchor. It currently provides 2 examples and various inline todos on how to extend this.
Quick demo of a REST frontend with a Redis session store.
axum-rest-starter-example Important Tasks Ensure session UUID is unique Protect /api/ with JWT Add CSRF CORS? Dev Setup (1) Run docker compose up to f
Example worker for ethereum-based applications
Ethsig-rs Example worker for ethereum-based applications. Features: Verify arbitrary messages and their signature from an Ethereum Address Verify EIP-
Extreme Bevy is what you end up with by following my tutorial series on how to make a low-latency p2p web game.
Extreme Bevy Extreme Bevy is what you end up with by following my tutorial series on how to make a low-latency p2p web game. There game can be played
Real Time For the Masses (RTFM), a framework for building concurrent applications, for MSP430 MCUs
msp430-rtfm Real Time For the Masses (RTFM), a framework for building concurrent applications, for MSP430 MCUs License Licensed under either of Apache
Web Server made with Rust - for learning purposes
Web Server made with Rust - for learning purposes
Quick example of displaying a BMP file with uefi-rs
uefi-bmp Quick example of drawing a bitmap using uefi-rs and tinybmp. Not necessarily the most efficient :) Build and run (may need some modification
An example of a fairing for rocket to use tracing (as this pops up at many places in dicussions and questions)
Rocket Tracing Fairing Example This repository aims to give a short example of how you can add a Fairing to your Rocket for tracing and how to use it
Example of a genetic algorithm in Rust and Python
Example of a genetic algorithm in Rust and Python Monkey typewriter Finding the phrase 'To be or not to be. That is the question.' Inspired by the exa
Docker for PyTorch rust bindings `tch`. Example of pretrain model.
tch-rs-pretrain-example-docker Docker for PyTorch rust bindings tch-rs. Example of pretrain model. Docker files support the following install libtorch
Image search example by approximate nearest-neighbor library In Rust
rust-ann-search-example Image search example by approximate nearest-neighbor library In Rust use - tensorflow 0.17.0 - pretrain ResNet50 - hora (Ru
An example of using TensorFlow rust bindings to serve trained machine learning models via Actix Web
Serving TensorFlow with Actix-Web This repository gives an example of training a machine learning model using TensorFlow2.0 Keras in python, exporting
Example Rust application for Heroku
Example application: Rust, Actix & Heroku Rust is a language suitable for high-peformance, reliable web services. Actix is a popular Rust web framewor
Example Actix 2.x REST application implementing many features
Rust/Actix Example An Actix 2.0 REST server using the Rust language. Motivation Actix Web is a fast, powerful web framework for building web applicati
Complete code for the larger example programs from the book.
Code Examples for Programming Rust This repository contains complete code for the larger example programs from the book “Programming Rust”, by Jim Bla
Rust-and-opengl-lessons - Collection of example code for learning OpenGL in Rust
rust-and-opengl-lessons Project requires Rust 1.31 Collection of example code for learning OpenGL in Rust 00 - Setup 01 - Window 02 - OpenGL Context 0
Freebsd-embedded-hal - Like linux-embedded-hal but FreeBSD
freebsd-embedded-hal Implementation of embedded-hal traits for FreeBSD devices: gpio: using libgpio, with stateful and toggleable support, with suppor
An example of web application by using Rust and Axum with Clean Architecture.
stock-metrics Stock price and stats viewer. Getting Started Middleware Launch the middleware by executing docker compose: cd local-middleware docker c
The purpose of this example is to provide details as to how one would go about using GraphQL with the Rust Language.
Zero to GraphQL Using Rust The purpose of this example is to provide details as to how one would go about using GraphQL with the Rust Language. Thus,
An example fuzzer about how to fuzz a JS engine combinign Nautilus with Token-level fuzzing
LibAFL QuickJS Fuzzing Example An example fuzzer about how to fuzz a JS engine combinign Nautilus with Token-level fuzzing. Prepare Make sure to have
Tic-Tac-Toe on the GPU, as an example application for wgpu
Tic-Tac-GPU A simple (cough cough) example on a tic-tac-toe game with wgpu. Why? Because I didn't find that many small applications which use wgpu as
Basic chat example to demonstrate I/O and other rust features.
Basic chat Provides basic chat functions: create room send messages to room fetch room's messages Components STP - custom string transfer protocol lib
A working example of multi targets compilation for Rust using Github Actions.
A working example of multi targets compilation for Rust using Github Actions. Supports Windows, MacOSX, x86_64, ARM and Raspberry PI Linux.
Simple example for building a blockchain in Rust
rust-blockchain-example Simple example for building a blockchain in Rust Start using RUST_LOG=info cargo run This starts the client locally. The block
An example of searching iBeacon using gtk-rs and btleplug.
Beacon Searcher Screenshot Compile & Run Install GTK 3 dev packages: macOS: $ brew install gtk+3 $ brew install gnome-icon-theme Debian / Ubuntu: $ s
How to use libtor in a Rust app
libtor example Uses libtor crate to run a Tor daemon in process. This example spawns the Tor daemon using Tokio's spawn_blocking, and then spawns othe
Example of structuring a proc macro crate for testability
testing-proc-macros Example of structuring a proc macro crate for testability. See accompanying blog post for details. License Licensed under either o
A place for the community to upload example Scrypto code
community-scrypto A place for the community to upload example Scrypto code. Please fork from main, work out of a sub-directory of your choosing, and t
🦀 My Rusty Playground
rust playground A language empowering everyone to build reliable and efficient software. Resources The Book Rustlings Rust by Example Take your first
Example crate using fltk-build
white-frame This is just an example showing the use of fltk-build to create native C/C++ FLTK and cfltk modules for fltk-rs. This repo contains 2 exam
An example repository on how to start building graph applications on streaming data. Just clone and start building 💻 💪
An example repository on how to start building graph applications on streaming data. Just clone and start building 💻 💪
A basic rp2040-hal project with blinky and rtt logging example code.
A basic rp2040-hal project with blinky and rtt logging example code. With this you can quickly get started on a new rp2040 project
I2C driver for the AHT21B temperature and humidity sensor.
I2C driver for the AHT21B temperature and humidity sensor.
Boids example ported from wgpu to rust-gpu
wgpu is Rust's main GPU project and rust-gpu is a project to write GPU shaders in Rust.
An example smart contract that builds on top of xyz
xyz Guestbook Tutorial Contract This repository contains an example smart contract that illustrates how to build on top of the xyz NFT contract. This
YAC (Yac is Another Chat) is an example of Chat using WebSocket.
YAC (Yac is Another Chat) is an example of Chat using WebSocket. Because often the example you find in internet are "not so production ready", I would like to try to implement something more robust.