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 deps
Build a PDF via the command make book
$ make book
All code are housed in the src/
directory.
cargo run -p day-4-hello-world
cargo 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 borrow
cargo run -p day-5-borrowing --bin mutable-borrow
- intentionally does not compile
cargo run -p day-6-loads-of-strs --bin 200-unique-prints
cargo run -p day-6-loads-of-strs --bin 200-prints
cargo run -p day-6-loads-of-strs --bin 200-empty-prints
cargo run -p day-6-loads-of-strs --bin one-print
cargo run -p day-7-syntax
ts-node javascript/day-8/src/maps.ts
cargo run -p day-8-maps
ts-node javascript/day-8/src/structs.ts
cargo run -p day-8-structs
cargo run -p day-11-modules --bin nested-submodules
cargo run -p day-11-traffic-light
cargo run -p day-12-impl-tostring
cargo run -p day-12-impl-asref-str
cargo run -p day-13-option
cargo run -p day-13-result
cargo 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-errors
MARKDOWN=README.md cargo run -p day-14-custom-error-type
MARKDOWN=README.md cargo run -p day-14-thiserror
MARKDOWN=README.md cargo run -p day-14-error-chain
MARKDOWN=README.md cargo run -p day-14-snafu
cargo run -p day-15-closures
cargo run -p day-16-type-differences --bin impl-owned
cargo 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-arrays
ts-node javascript/day-17/src/arrays.ts
cargo run -p day-17-iterators
ts-node javascript/day-17/src/iterators.ts
cargo run -p day-17-names
cargo run -p day-18-async --bin send-sync
cargo run -p day-18-async --bin simple
cargo run -p day-18-async --bin lazy
cargo run -p day-18-async --bin fs
cargo run -p day-18-async --bin async-blocks
First you must cd into crates/day-19/project
cargo test
cargo 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.json
cargo 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 references
cargo run -p day-23-rc-arc --bin rc
cargo run -p day-23-rc-arc --bin arc
cargo run -p day-23-rc-arc --bin rwlock
cargo 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