
paul-jewell
Advanced Hands-on Rust B2.0: Query/suggestion regarding the code development in Chapter 5
Good morning,
In Chapter 5 (pages 85…86), you load the code for Flappy Dragon into a new directory. After doing this, I copied my_library from the code developed so far in the book, into the tree as you show in P86. I then proceeded to go through the following sections up to and including developing the add_phase!() macro. Moving back to Pig on P105, this is still in the more_hands directory tree, so the updates to my_library are not included in the version of my_library.
To resolve this, I then moved the newly developed version of my_library back into the more_hands tree, and made flappy_dragon_base a sub project alongside pig. Both flappy_dragon_base and the updated code for pig then compile and run as expected.
Did you intend the reader to put the flappy_dragon_base into the more_hands tree? If so, I didn’t read it like that and it might be good to clarify on pages 85 and 86 showing the directory tree from more_hands down.
Popular Prag Prog topics









Modern front-end development for Rails, second edition - Struggling to get the first chapter to work

Other popular topics









Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /ash
- /centos
- /php
- /deepseek
- /zig
- /scala
- /html
- /debian
- /nixos
- /lisp
- /agda
- /sublime-text
- /textmate
- /react-native
- /kubuntu
- /arch-linux
- /revery
- /ubuntu
- /manjaro
- /spring
- /django
- /diversity
- /nodejs
- /lua
- /julia
- /slackware
- /c
- /neovim