This repository houses an ebook-ified version of the 24+ post series started on vino.dev.
The ebook is built using asciidoctor and requires ruby >2.3.
Install the ruby dependencies via make deps
$ make depsBuild a PDF via the command make book
$ make bookAll code are housed in the src/ directory.
cargo run -p day-4-hello-worldcargo run -p day-4-strings-wtf-1- intentionally does not compile.cargo run -p day-4-strings-wtf-2- intentionally does not compile.
- JS:
node javascript/day-5/let-vs-const/reassigning.js - Rust:
cargo run -p day-5-let-vs-const --bin reassigning cargo run -p day-5-let-vs-const --bin reassigning-wrong-type- intentionally does not compile
cargo run -p day-5-borrowing --bin borrowcargo run -p day-5-borrowing --bin mutable-borrow- intentionally does not compile
cargo run -p day-6-loads-of-strs --bin 200-unique-printscargo run -p day-6-loads-of-strs --bin 200-printscargo run -p day-6-loads-of-strs --bin 200-empty-printscargo run -p day-6-loads-of-strs --bin one-print
cargo run -p day-7-syntax
ts-node javascript/day-8/src/maps.tscargo run -p day-8-maps
ts-node javascript/day-8/src/structs.tscargo run -p day-8-structs
cargo run -p day-11-modules --bin nested-submodulescargo run -p day-11-traffic-light
cargo run -p day-12-impl-tostringcargo run -p day-12-impl-asref-str
cargo run -p day-13-optioncargo run -p day-13-resultcargo run -p day-13-question-mark
cargo run -p day-14-from-into
These examples require setting an environment variable. How to do that in your environment might look different.
MARKDOWN=README.md cargo run -p day-14-boxed-errorsMARKDOWN=README.md cargo run -p day-14-custom-error-typeMARKDOWN=README.md cargo run -p day-14-thiserrorMARKDOWN=README.md cargo run -p day-14-error-chainMARKDOWN=README.md cargo run -p day-14-snafu
cargo run -p day-15-closures
cargo run -p day-16-type-differences --bin impl-ownedcargo run -p day-16-type-differences --bin impl-borrowed
cargo run -p day-16-static- intentionally does not compilecargo run -p day-16-static-bounds- intentionally does not compile
cargo run -p day-16-elision
cargo run -p day-16-unsafe-pointers
cargo run -p day-17-arraysts-node javascript/day-17/src/arrays.ts
cargo run -p day-17-iteratorsts-node javascript/day-17/src/iterators.ts
cargo run -p day-17-names
cargo run -p day-18-async --bin send-synccargo run -p day-18-async --bin simplecargo run -p day-18-async --bin lazycargo run -p day-18-async --bin fscargo run -p day-18-async --bin async-blocks
First you must cd into crates/day-19/project
cargo testcargo run -p cli
First you must cd into crates/day-20/project
RUST_LOG=cli=debug cargo run -p cli
First you must cd into crates/day-21/project
cargo run -p cli -- crates/my-lib/tests/test.wasm hello "Potter"
First you must cd into crates/day-21/wapc-guest
- Build with
make
cargo run -p day-22-serde
First you must cd into crates/day-22/project
cargo run -p cli -- crates/my-lib/tests/test.wasm hello hello.jsoncargo run -p cli -- ./blog.wasm render ./blog.json
First you must cd into crates/day-22/wapc-guest
- Build with
make
cargo run -p day-23-rc-arc --bin referencescargo run -p day-23-rc-arc --bin rccargo run -p day-23-rc-arc --bin arccargo run -p day-23-rc-arc --bin rwlockcargo run -p day-23-rc-arc --bin async- intentionally does not compile
Book: Creative Commons BY-NC 4.0 Code: Creative Commons BY 4.0