Sublime snippets for Rust cookbook recipes
Rust Cookbook is part of an effort to stabilize most commonly used Rust crates.
This repository contains Sublime Text 3 snippets of cookbook recipes. It is an effort to spread idiomatic Rust code. Feel free to contribute.
Open command palette with Ctrl+Shift+P
Search for Install Package command
Search for RustCookbookSnippets
Save files to the Packages/Sublime Text 3 Snippets directory, then relaunch Sublime:
git clone https://github.com/orhanbalci/rust-cookbook-snippets.git
cd rust-cookbook-snippets
Linux: sudo cp -r snippets/ ~/.config/sublime-text-3/Packages/
Mac: sudo cp snippets/ ~/Library/Application Support/Sublime-Text-3/Packages/
Windows: cp %APPDATA%/Sublime-Text-3/Packages/
http-get => http get code snippet
random-float => generate random floating number snippet