# 🦀 @ ![](https://i.imgur.com/VivKrEw.png) ### Using Rust to build distributed systems and Wasm smart contracts --- ## Agenda - What is NEAR Protocol and why Rust - What smart contracts are and how they fit in - How Rust is used to build to Wasm - Ranked Choice Voting application --- ## What is NEAR https://near.org/ ---- ### Why we ♥️ Rust - Memory safety - Performance - Reliability ---- ### What is a smart contract? - Programs that can be run on a blockchain - Trustless applications - Composable - Any contract can be interacted with asynchronously - Permissionless by default ---- ### Wasm VM https://webassembly.org/ - Performant - Safe - Deterministic - Can compile from common programming languages --- ### Architecture ![](https://i.imgur.com/WEalT5N.png) --- ### Minimal Wasm smart contract ```wat (module (func (export "some_function") nop ) ) ``` ___ ### Ranked Choice Voting Contract https://github.com/austinabell/rcv-near ___ ### Thank you! You can find me on - GitHub @austinabell
{"metaMigratedAt":"2023-06-16T10:18:39.285Z","metaMigratedFrom":"YAML","title":"Rust at NEAR","breaks":true,"description":"Building Rust smart contracts with NEAR","contributors":"[{\"id\":\"41b7c37b-2506-4ead-8ae7-21c8578c9235\",\"add\":4216,\"del\":3090}]"}
    110 views