The-Complete-Rust-Programming-Reference-Guide
Design, develop, and deploy effective software systems using the advanced constructs of Rust
File Explorer
Download Latest Version (.zip)- arrays.rs
- closures.rs
- enum_methods.rs
- enums.rs
- exercise_word_counter.rs
- first_program.rs
- for_loops.rs
- function_mut.rs
- functions.rs
- greet.rs
- hashmaps.rs
- if_assign.rs
- if_else.rs
- if_else_no_value.rs
- loop_labels.rs
- loops.rs
- match_expression.rs
- slices.rs
- strings.rs
- struct_methods.rs
- structs.rs
- tuple_struct.rs
- tuples.rs
- unit_struct.rs
- use.rs
- variables.rs
- vec.rs
- while.rs
- Cargo.toml
- ferris.png
- main.rs
- Cargo.lock
- Cargo.toml
- foo.rs
- main.rs
- bar.rs
- foo.rs
- main.rs
- basic.rs
- lib.rs
- Cargo.lock
- Cargo.toml
- main.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- Cargo.lock
- Cargo.toml
- file_as_module.rs
- mod_within.rs
- lib.rs
- Cargo.lock
- Cargo.toml
- fibonacci.rs
- lib.rs
- Cargo.lock
- Cargo.toml
- lib.rs
- Cargo.lock
- Cargo.toml
- lib.rs
- common.rs
- sum.rs
- Cargo.lock
- Cargo.toml
- lib.rs
- half_adder.rs
- .gitignore
- .travis.yml
- Cargo.toml
- LICENSE
- logic_gate.png
- README.md
- lib.rs
- Cargo.lock
- Cargo.toml
- first_unit_test.rs
- ignored_test.rs
- logic_gates_icon.png
- panic_test.rs
- silly_loop.rs
- lib.rs
- Cargo.lock
- Cargo.toml
- main.rs
- media.rs
- Cargo.lock
- Cargo.toml
- .gitignore
- creating_generic_vec.rs
- expressions.rs
- foo.txt
- generic_enum.rs
- generic_function.rs
- generic_struct.rs
- generic_struct_impl.rs
- impl_trait_both.rs
- impl_trait_closure.rs
- impl_trait_syntax.rs
- let_pattern_wrapper.rs
- trait_bound_basics.rs
- trait_bound_basics_fixed.rs
- trait_bound_functions.rs
- trait_bound_intro.rs
- trait_bound_intro_fixed.rs
- trait_bounds_types.rs
- trait_composition.rs
- trait_inheritance.rs
- trait_objects.rs
- unusable_str.rs
- using_generic_func.rs
- using_generic_vec.rs
- basics.rs
- todo
- todo_junk
- error.rs
- lib.rs
- Cargo.lock
- Cargo.toml
- borrowing_basics.rs
- borrowing_functions.rs
- borrowing_match.rs
- box_basics.rs
- buffer_overflow.c
- catch_unwind.rs
- cell.rs
- cell_cache.rs
- data.txt
- drop.rs
- exclusive_borrow.rs
- explicit_copy.rs
- explicit_lifetimes.rs
- iterator_invalidation.cpp
- lifetime_basics.rs
- lifetime_bounds.rs
- lifetime_bounds_short.rs
- lifetime_impls.rs
- lifetime_struct.rs
- lifetime_subtyping.rs
- linked_list.rs
- main_result.rs
- making_copy_types.rs
- making_copy_types_fixed.rs
- multiple_lifetimes.rs
- mutable_borrow.rs
- ownership_basics.rs
- ownership_closures.rs
- ownership_functions.rs
- ownership_functions_back.rs
- ownership_match.rs
- ownership_methods.rs
- ownership_primitives.rs
- panic_unwinding.rs
- rc_3.rs
- rc_weak.rs
- recursive_type.rs
- refcell_basics.rs
- result_basics.rs
- result_basics_fixed.rs
- result_common_pattern.rs
- return_func_ref.rs
- scopes.rs
- stack_basics.rs
- static_lifetime.rs
- uninitialized_reads.c
- using_lifetimes.rs
- using_map.rs
- using_options.rs
- using_options_match.rs
- using_options_unwrap.rs
- using_question_operator.rs
- without_cell.rs
- basics.rs
- malformed_todo
- README.md
- todo
- error.rs
- lib.rs
- Cargo.lock
- Cargo.toml
- catch_unwind.rs
- create_result.rs
- create_result_fixed.rs
- data.txt
- main_result.rs
- panic_unwinding.rs
- result_basics.rs
- result_basics_fixed.rs
- result_common_pattern.rs
- using_map.rs
- using_options.rs
- using_options_match.rs
- using_options_unwrap.rs
- using_question_operator.rs
- bar.rs
- foo.rs
- main.rs
- Cargo.lock
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.toml
- block_expr.rs
- borrowed_strings.rs
- const_fn.rs
- const_fn_file.rs
- custom_iterator.rs
- destructure_enum.rs
- destructure_func_param.rs
- destructure_struct.rs
- enum_struct_consts.rs
- fn_closure.rs
- fn_mut_closure.rs
- fn_once.rs
- function_types.rs
- if_expr.rs
- let_ref_mut.rs
- loop_expr.rs
- match_ref.rs
- nested_imports.rs
- object_safety.rs
- pointer_layouts.rs
- refutable_pattern.rs
- safe_arithmetic.rs
- scopes.rs
- str_type.rs
- string_apis.rs
- string_chars.rs
- string_concat.rs
- string_indexing.rs
- string_owned.rs
- string_range_slice.rs
- string_slices_func.rs
- strings.rs
- trait_constants.rs
- type_alias.rs
- type_inference_iterator.rs
- ufcs.rs
- unions.rs
- unusable_str.rs
- main.rs
- Cargo.lock
- Cargo.toml
- arc_mutex.rs
- async_channels.rs
- customize_threads.rs
- mutex_basics.rs
- sync_channels.rs
- thread_arc.rs
- thread_basics.rs
- thread_basics_join.rs
- thread_moves.rs
- thread_mut.rs
- thread_rc.rs
- thread_read.rs
- thread_rwlock.rs
- threads_shared_owner.rs
- threads_sharing.rs
- lib.rs
- Cargo.lock
- Cargo.toml
- lib.rs
- Cargo.lock
- Cargo.toml
- lib.rs
- Cargo.lock
- Cargo.toml
- main.rs
- Cargo.lock
- Cargo.toml
- lib.rs
- Cargo.lock
- Cargo.toml
- c_macros.c
- c_macros_rust.rs
- first_macro.rs
- print_formatting.rs
- main.rs
- build.rs
- Cargo.lock
- Cargo.toml
- mystrlen.c
- basic.rs
- bindings.rs
- lib.rs
- build.rs
- Cargo.lock
- Cargo.toml
- liblevenshtein.a
- index.js
- lib.rs
- build.rs
- Cargo.lock
- Cargo.toml
- .gitignore
- main.js
- package.json
- README.md
- lib.rs
- Cargo.lock
- Cargo.toml
- main
- main.c
- Makefile
- lib.rs
- Cargo.lock
- Cargo.toml
- main.py
- README.md
- both_true_false.c
- unsafe_function.rs
- unsafe_trait_and_impl.rs
- main.rs
- Cargo.lock
- Cargo.toml
- log4rs.yaml
- my_lib.log
- requests.log
- main.rs
- .gitignore
- Cargo.toml
- lib.rs
- .gitignore
- Cargo.toml
- Cargo.lock
- Cargo.toml
- enemy.rs
- main.rs
- player.rs
- weapon.rs
- Cargo.lock
- Cargo.toml
- README.md
- lib.rs
- Cargo.lock
- Cargo.toml
- codec.rs
- commands.rs
- main.rs
- Cargo.lock
- Cargo.toml
- commands.rs
- main.rs
- .gitignore
- Cargo.lock
- Cargo.toml
- index.rs
- main.rs
- service.rs
- shortener.rs
- Cargo.lock
- Cargo.toml
- links.rs
- main.rs
- route_handlers.rs
- state.rs
- Cargo.lock
- Cargo.toml
- test_server.sh
- main.rs
- Cargo.lock
- Cargo.toml
- doubly_linked_list.rs
- dynamic_array.rs
- lib.rs
- singly_linked_list.rs
- skip_list.rs
- Cargo.toml
- binary_search_tree.rs
- btree.rs
- graph.rs
- heap.rs
- lib.rs
- red_black_tree.rs
- trie.rs
- Cargo.toml
- lib.rs
- map.rs
- set.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- knapsack.rs
- lib.rs
- nqueens.rs
- prng.rs
- Cargo.toml
- bench.maps.std.vs.naive.png
- bench.seq.std.vs.naive.png
- bench.trees.std.vs.naive.png
- Bubble Sort.png
- Heap Sort.png
- Merge Sort.png
- Quick Sort.png
- runtime.complexity.png
- runtime.exp.png
- runtime.logn.png
- runtime.n.png
- runtime.n2.png
- runtime.nlogn.png
- Shell Sort.png
- Stdlib Sort.png
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/PacktPublishing/The-Complete-Rust-Programming-Reference-Guide
Downloads the entire project code from GitHub to your computer.
cd The-Complete-Rust-Programming-Reference-Guide
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd Chapter10/native_counter
This project's files live in a subfolder, so move into it first.
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
3. Rust
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Rust (rustup) Installing via rustup also installs cargo.
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd Chapter02/cargo_manifest_example
This project's files live in a subfolder, so move into it first.
cargo build --release
Compiles the Rust project.
cargo run
Builds and then immediately runs the program.
If cargo build finishes without errors, it worked. The executable is created under target/.
4. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
β οΈ This is a large repository, so this method may point to an internal sub-package rather than the actual core product. Check the full README as well.
cd Chapter10/rust_from_c
This project's files live in a subfolder, so move into it first.
make
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation
Was this content helpful?
(0 ratings)
