├── bk ├── src │ ├── word_index.md │ ├── code-organization │ │ ├── index.incl.md │ │ └── dependencies.incl.md │ ├── rust-installation │ │ ├── index.incl.md │ │ └── refs.incl.md │ ├── appendices │ │ └── contributing │ │ │ ├── topics_of_interest.incl.md │ │ │ ├── book_editing_and_example_code_development.incl.md │ │ │ ├── publication_to_crates.io.incl.md │ │ │ ├── mdBook_pre-processors.incl.md │ │ │ ├── documentation_generation.incl.md │ │ │ ├── dev_container_and_docker.incl.md │ │ │ ├── development_environment_setup.incl.md │ │ │ └── repository_structure.incl.md │ ├── crate-selection │ │ ├── current_state_of_the_art.incl.md │ │ └── refs.incl.md │ ├── refs │ │ └── link-refs.md │ ├── language │ │ ├── constants_and_statics.incl.md │ │ ├── variables.incl.md │ │ ├── entry_points.incl.md │ │ ├── impl_trait.incl.md │ │ ├── generics.incl.md │ │ ├── closures.incl.md │ │ ├── ownership_and_borrowing.incl.md │ │ ├── enumerations.incl.md │ │ └── slices.incl.md │ ├── links │ │ ├── meetings.incl.md │ │ ├── rust_companies_and_jobs.incl.md │ │ ├── rust_cheatsheets.incl.md │ │ ├── videos_and_podcasts.incl.md │ │ └── blogs_and_forums.incl.md │ ├── standard-library │ │ ├── default_values.incl.md │ │ ├── memory_address_pinning.incl.md │ │ ├── resource_cleanup.incl.md │ │ ├── dynamic_typing.incl.md │ │ ├── value_comparison.incl.md │ │ ├── conversion_traits.incl.md │ │ ├── operators.incl.md │ │ ├── automatic_trait_derivation.incl.md │ │ └── interior_mutability.incl.md │ ├── categories │ │ ├── filesystem │ │ │ ├── file_metadata.incl.md │ │ │ ├── symbolic_links.incl.md │ │ │ ├── file_watching.incl.md │ │ │ ├── temporary_files_and_directories.incl.md │ │ │ └── working_with_the_standard_input_and_output.incl.md │ │ └── data-structures │ │ │ ├── linked_lists.incl.md │ │ │ ├── graphs.incl.md │ │ │ └── vectors.incl.md │ └── introduction │ │ └── how_to_read_this_book.incl.md ├── drafts │ ├── FRAGMENTS.md │ ├── indices │ │ ├── crates_and_examples.incl.md │ │ └── refs.incl.md │ ├── plugin.incl.md │ ├── inheritance.incl.md │ ├── categories │ │ ├── development-tools │ │ │ ├── transcompilation │ │ │ │ ├── refs.incl.md │ │ │ │ └── transpilers.incl.md │ │ │ ├── documentation │ │ │ │ └── badges.incl.md │ │ │ ├── cargo │ │ │ │ └── package_layout.incl.md │ │ │ ├── cross-compilation │ │ │ │ └── refs.incl.md │ │ │ └── installation │ │ │ │ └── rustup.incl.md │ │ ├── development-tools_debugging │ │ │ ├── metrics.incl.md │ │ │ └── debugging.incl.md │ │ ├── rust-patterns │ │ │ ├── structural_patterns.incl.md │ │ │ └── behavioral_patterns.incl.md │ │ ├── authentication │ │ │ └── refs.incl.md │ │ ├── parsing │ │ │ └── refs.incl.md │ │ ├── os_windows-apis │ │ │ └── refs.incl.md │ │ ├── caching │ │ │ └── refs.incl.md │ │ ├── hardware-support │ │ │ └── peripherals.incl.md │ │ ├── template-engine │ │ │ ├── refs.incl.md │ │ │ ├── tera.incl.md │ │ │ └── tinytemplate.incl.md │ │ ├── email │ │ │ └── refs.incl.md │ │ ├── os_unix-apis │ │ │ └── refs.incl.md │ │ ├── database │ │ │ ├── mssql.incl.md │ │ │ ├── amqp.incl.md │ │ │ └── connection_pool.incl.md │ │ ├── os │ │ │ └── low_level_system_calls.incl.md │ │ ├── asynchronous │ │ │ ├── streams.incl.md │ │ │ ├── async_traits.incl.md │ │ │ └── async_utilities.incl.md │ │ ├── cryptography │ │ │ └── hmac.incl.md │ │ ├── text-processing │ │ │ ├── string_concat.incl.md │ │ │ ├── unicode.incl.md │ │ │ └── string_parsing.incl.md │ │ ├── science │ │ │ └── refs.incl.md │ │ ├── command-line-utilities │ │ │ └── networking_cli.incl.md │ │ ├── command-line-interface │ │ │ └── tui.incl.md │ │ ├── parser-implementations │ │ │ ├── yaml.incl.md │ │ │ └── ini.incl.md │ │ ├── web-programming_http-server │ │ │ ├── _grpc.incl.md │ │ │ ├── _hyper.incl.md │ │ │ └── cors.incl.md │ │ └── development-tools_build-utils │ │ │ └── autocfg.incl.md │ ├── contributing │ │ ├── refs.incl.md │ │ └── vscode.incl.md │ ├── self_referential.incl.md │ ├── overflow.incl.md │ └── refs.incl.md ├── crates │ ├── cats │ │ ├── development_tools │ │ │ ├── src │ │ │ │ └── lib.rs │ │ │ ├── examples │ │ │ │ ├── crate_registries │ │ │ │ │ └── main.rs │ │ │ │ ├── documentation │ │ │ │ │ └── main.rs │ │ │ │ └── semver │ │ │ │ │ └── main.rs │ │ │ ├── NOTES.md │ │ │ └── README.md │ │ ├── database │ │ │ ├── examples │ │ │ │ ├── query_builders_orms │ │ │ │ │ ├── migrations │ │ │ │ │ │ ├── .keep │ │ │ │ │ │ └── 2024-12-29-173417_create_users │ │ │ │ │ │ │ ├── down.sql │ │ │ │ │ │ │ └── up.sql │ │ │ │ │ └── main.rs │ │ │ │ ├── amqp │ │ │ │ │ └── main.rs │ │ │ │ ├── mssql │ │ │ │ │ └── main.rs │ │ │ │ ├── search │ │ │ │ │ └── main.rs │ │ │ │ ├── connection_pool │ │ │ │ │ └── main.rs │ │ │ │ ├── kv │ │ │ │ │ └── main.rs │ │ │ │ ├── nosql │ │ │ │ │ └── main.rs │ │ │ │ ├── cassandra │ │ │ │ │ └── main.rs │ │ │ │ └── oracle │ │ │ │ │ └── main.rs │ │ │ ├── README.md │ │ │ └── .env │ │ ├── graphics │ │ │ ├── examples │ │ │ │ └── graphics.rs │ │ │ └── README.md │ │ ├── parsing │ │ │ ├── examples │ │ │ │ ├── pest │ │ │ │ │ └── main.rs │ │ │ │ └── parsing │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── template_engine │ │ │ ├── examples │ │ │ │ ├── tera │ │ │ │ │ └── main.rs │ │ │ │ └── tinytemplate │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── data_structures │ │ │ ├── examples │ │ │ │ ├── graph │ │ │ │ │ └── main.rs │ │ │ │ ├── vector │ │ │ │ │ └── main.rs │ │ │ │ ├── linkedlist │ │ │ │ │ └── main.rs │ │ │ │ ├── unique_ids │ │ │ │ │ └── main.rs │ │ │ │ ├── btrees │ │ │ │ │ └── main.rs │ │ │ │ ├── stacks_and_queues │ │ │ │ │ └── main.rs │ │ │ │ ├── strings │ │ │ │ │ └── main.rs │ │ │ │ ├── binaryheap │ │ │ │ │ └── main.rs │ │ │ │ ├── maps │ │ │ │ │ └── main.rs │ │ │ │ ├── stack_allocated │ │ │ │ │ └── main.rs │ │ │ │ ├── bitfield │ │ │ │ │ └── main.rs │ │ │ │ └── hashmap │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── date_and_time │ │ │ ├── examples │ │ │ │ ├── duration │ │ │ │ │ └── main.rs │ │ │ │ └── chrono │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── filesystem │ │ │ ├── examples │ │ │ │ ├── metadata │ │ │ │ │ └── main.rs │ │ │ │ ├── tempfile │ │ │ │ │ └── main.rs │ │ │ │ ├── file_watching │ │ │ │ │ └── main.rs │ │ │ │ ├── stdin_stdout │ │ │ │ │ └── main.rs │ │ │ │ ├── symbolic_links │ │ │ │ │ └── main.rs │ │ │ │ ├── user_directories │ │ │ │ │ └── main.rs │ │ │ │ ├── read_write │ │ │ │ │ └── main.rs │ │ │ │ ├── directories │ │ │ │ │ └── main.rs │ │ │ │ ├── paths │ │ │ │ │ └── main.rs │ │ │ │ └── directory_traversal │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── os │ │ │ ├── examples │ │ │ │ ├── low_level_system_calls │ │ │ │ │ └── main.rs │ │ │ │ └── external_commands │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── parser_implementations │ │ │ ├── examples │ │ │ │ ├── ini │ │ │ │ │ └── main.rs │ │ │ │ ├── yaml │ │ │ │ │ └── main.rs │ │ │ │ ├── javascript │ │ │ │ │ └── main.rs │ │ │ │ ├── html │ │ │ │ │ └── main.rs │ │ │ │ ├── json │ │ │ │ │ └── main.rs │ │ │ │ ├── toml │ │ │ │ │ └── main.rs │ │ │ │ ├── markdown │ │ │ │ │ └── main.rs │ │ │ │ ├── programming_languages │ │ │ │ │ └── main.rs │ │ │ │ └── xml │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── text_processing │ │ │ ├── examples │ │ │ │ ├── unicode │ │ │ │ │ └── main.rs │ │ │ │ ├── string_parsing │ │ │ │ │ └── main.rs │ │ │ │ ├── diffing │ │ │ │ │ └── main.rs │ │ │ │ ├── string_concat │ │ │ │ │ └── main.rs │ │ │ │ ├── string_manipulation │ │ │ │ │ └── main.rs │ │ │ │ ├── other_strings │ │ │ │ │ └── main.rs │ │ │ │ ├── string_search │ │ │ │ │ └── main.rs │ │ │ │ └── regex │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── concurrency │ │ │ ├── examples │ │ │ │ ├── send_sync │ │ │ │ │ └── main.rs │ │ │ │ ├── atomics │ │ │ │ │ └── main.rs │ │ │ │ ├── threadpool │ │ │ │ │ └── main.rs │ │ │ │ ├── actors │ │ │ │ │ └── main.rs │ │ │ │ ├── crossbeam │ │ │ │ │ └── main.rs │ │ │ │ ├── explicit_threads │ │ │ │ │ └── main.rs │ │ │ │ ├── concurrent_data_structures │ │ │ │ │ └── main.rs │ │ │ │ ├── message_passing │ │ │ │ │ └── main.rs │ │ │ │ ├── shared_state │ │ │ │ │ └── main.rs │ │ │ │ └── data_parallelism │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── development_tools_testing │ │ │ ├── examples │ │ │ │ ├── fuzzing │ │ │ │ │ └── main.rs │ │ │ │ ├── testing │ │ │ │ │ ├── main.rs │ │ │ │ │ └── snapshots │ │ │ │ │ │ └── testing__insta__format_user_snapshot.snap │ │ │ │ ├── code_coverage │ │ │ │ │ └── main.rs │ │ │ │ ├── test_runners │ │ │ │ │ └── main.rs │ │ │ │ ├── mocking │ │ │ │ │ └── main.rs │ │ │ │ ├── assertions │ │ │ │ │ └── main.rs │ │ │ │ └── property_based_testing │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── hardware_support │ │ │ ├── examples │ │ │ │ └── processor │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── os_unix_apis │ │ │ ├── examples │ │ │ │ └── unix │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── web_programming_http_server │ │ │ ├── examples │ │ │ │ ├── grpc │ │ │ │ │ └── main.rs │ │ │ │ ├── middleware │ │ │ │ │ └── main.rs │ │ │ │ └── loco │ │ │ │ │ ├── config │ │ │ │ │ └── app.yaml │ │ │ │ │ └── migrations │ │ │ │ │ └── 20231027120000_create_users │ │ │ │ │ ├── down.sql │ │ │ │ │ └── up.sql │ │ │ ├── README.md │ │ │ └── proto │ │ │ │ └── helloworld.proto │ │ ├── asynchronous │ │ │ ├── examples │ │ │ │ ├── async │ │ │ │ │ └── main.rs │ │ │ │ ├── streams │ │ │ │ │ └── main.rs │ │ │ │ ├── tokio │ │ │ │ │ └── main.rs │ │ │ │ ├── async_traits │ │ │ │ │ └── main.rs │ │ │ │ ├── futures │ │ │ │ │ └── main.rs │ │ │ │ ├── call_async_from_blocking │ │ │ │ │ └── main.rs │ │ │ │ ├── async_channels │ │ │ │ │ └── main.rs │ │ │ │ └── call_blocking_from_async │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── authentication │ │ │ ├── examples │ │ │ │ └── basic_authentication │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── config │ │ │ ├── examples │ │ │ │ ├── env │ │ │ │ │ └── main.rs │ │ │ │ └── configuration │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── cryptography │ │ │ ├── examples │ │ │ │ ├── tls │ │ │ │ │ └── main.rs │ │ │ │ ├── utilities │ │ │ │ │ └── main.rs │ │ │ │ ├── aead │ │ │ │ │ └── main.rs │ │ │ │ ├── certs │ │ │ │ │ └── main.rs │ │ │ │ ├── password_hashing │ │ │ │ │ └── main.rs │ │ │ │ └── sign │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── development_tools_build_utils │ │ │ ├── examples │ │ │ │ ├── autocfg │ │ │ │ │ └── main.rs │ │ │ │ └── build_time_tooling │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── encoding │ │ │ ├── examples │ │ │ │ ├── toml_encoding │ │ │ │ │ └── main.rs │ │ │ │ ├── typecasts │ │ │ │ │ └── main.rs │ │ │ │ ├── no_external_schema_file │ │ │ │ │ └── main.rs │ │ │ │ ├── binary_encoders │ │ │ │ │ ├── my_game.fbs │ │ │ │ │ ├── foo.capnp │ │ │ │ │ ├── person.proto │ │ │ │ │ └── main.rs │ │ │ │ ├── serde │ │ │ │ │ └── main.rs │ │ │ │ ├── string_encoding │ │ │ │ │ └── main.rs │ │ │ │ └── csv │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── rust_patterns │ │ │ ├── examples │ │ │ │ ├── builder_pattern │ │ │ │ │ └── main.rs │ │ │ │ ├── rust_specific_patterns │ │ │ │ │ └── main.rs │ │ │ │ ├── creational_patterns │ │ │ │ │ └── main.rs │ │ │ │ ├── functional_programming │ │ │ │ │ └── main.rs │ │ │ │ └── error │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── development_tools_cargo_plugins │ │ │ ├── examples │ │ │ │ └── building │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── development_tools_profiling │ │ │ ├── examples │ │ │ │ └── benchmarking │ │ │ │ │ └── main.rs │ │ │ ├── src │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── os_windows_apis │ │ │ ├── examples │ │ │ │ └── windows │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── web_programming │ │ │ ├── examples │ │ │ │ ├── http_types_and_interfaces │ │ │ │ │ └── main.rs │ │ │ │ ├── mime │ │ │ │ │ └── main.rs │ │ │ │ ├── scraping │ │ │ │ │ └── main.rs │ │ │ │ └── url │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── caching │ │ │ ├── examples │ │ │ │ └── in_memory_cache │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── network_programming │ │ │ ├── examples │ │ │ │ ├── server │ │ │ │ │ └── main.rs │ │ │ │ └── reverse_proxy │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── web_programming_http_client │ │ │ ├── examples │ │ │ │ ├── http_clients │ │ │ │ │ └── main.rs │ │ │ │ ├── requests │ │ │ │ │ └── main.rs │ │ │ │ ├── download │ │ │ │ │ └── main.rs │ │ │ │ └── apis │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── algorithms │ │ │ ├── examples │ │ │ │ ├── sort │ │ │ │ │ └── main.rs │ │ │ │ ├── hashing │ │ │ │ │ └── main.rs │ │ │ │ └── rand │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── compression │ │ │ ├── examples │ │ │ │ └── compression │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── mathematics │ │ │ ├── examples │ │ │ │ ├── trigonometry │ │ │ │ │ └── main.rs │ │ │ │ ├── complex_numbers │ │ │ │ │ └── main.rs │ │ │ │ ├── stats │ │ │ │ │ └── main.rs │ │ │ │ ├── linear_algebra │ │ │ │ │ └── main.rs │ │ │ │ └── additional_numeric_types │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── command_line_interface │ │ │ ├── examples │ │ │ │ ├── user_interaction │ │ │ │ │ └── main.rs │ │ │ │ ├── arguments │ │ │ │ │ └── main.rs │ │ │ │ └── ansi_term │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── development_tools_debugging │ │ │ ├── examples │ │ │ │ ├── other │ │ │ │ │ └── main.rs │ │ │ │ └── log │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ ├── memory_management │ │ │ └── examples │ │ │ │ └── lazy_initialization │ │ │ │ └── main.rs │ │ ├── database_implementations │ │ │ ├── examples │ │ │ │ ├── databases │ │ │ │ │ └── main.rs │ │ │ │ └── search_engines │ │ │ │ │ └── main.rs │ │ │ └── README.md │ │ └── email │ │ │ └── README.md │ ├── utils │ │ ├── src │ │ │ └── lib.rs │ │ └── README.md │ ├── standard_library │ │ ├── examples │ │ │ ├── pin │ │ │ │ └── main.rs │ │ │ ├── drop │ │ │ │ └── main.rs │ │ │ ├── cmp │ │ │ │ └── main.rs │ │ │ ├── default │ │ │ │ └── main.rs │ │ │ ├── reference_counting │ │ │ │ └── main.rs │ │ │ ├── smart_pointers │ │ │ │ └── main.rs │ │ │ ├── derive │ │ │ │ └── main.rs │ │ │ ├── any │ │ │ │ └── main.rs │ │ │ ├── interior_mutability │ │ │ │ └── main.rs │ │ │ ├── borrow │ │ │ │ └── main.rs │ │ │ ├── result │ │ │ │ └── main.rs │ │ │ ├── conversion_traits │ │ │ │ └── main.rs │ │ │ ├── asref │ │ │ │ └── main.rs │ │ │ ├── box │ │ │ │ └── main.rs │ │ │ ├── NOTES.md │ │ │ ├── ops │ │ │ │ └── main.rs │ │ │ ├── cow │ │ │ │ └── main.rs │ │ │ └── option │ │ │ │ └── main.rs │ │ └── README.md │ ├── language │ │ ├── examples │ │ │ ├── enums │ │ │ │ └── main.rs │ │ │ ├── impl_trait │ │ │ │ └── main.rs │ │ │ ├── slices │ │ │ │ └── main.rs │ │ │ ├── constants_and_statics │ │ │ │ └── main.rs │ │ │ ├── entrypoint │ │ │ │ ├── main.rs │ │ │ │ └── main_fn.rs │ │ │ ├── variables │ │ │ │ └── main.rs │ │ │ ├── trait_objects │ │ │ │ └── main.rs │ │ │ ├── control_flow │ │ │ │ └── main.rs │ │ │ ├── data_types │ │ │ │ └── main.rs │ │ │ ├── generics │ │ │ │ └── main.rs │ │ │ ├── closures │ │ │ │ └── main.rs │ │ │ ├── iterators │ │ │ │ └── main.rs │ │ │ ├── lifetimes │ │ │ │ └── main.rs │ │ │ ├── functions │ │ │ │ └── main.rs │ │ │ ├── ownership_borrowing │ │ │ │ └── main.rs │ │ │ ├── structs │ │ │ │ └── main.rs │ │ │ ├── attributes │ │ │ │ └── main.rs │ │ │ └── match │ │ │ │ └── literals.rs │ │ └── README.md │ ├── code_organization │ │ ├── examples │ │ │ ├── modules │ │ │ │ └── main.rs │ │ │ ├── use │ │ │ │ └── main.rs │ │ │ └── visibility │ │ │ │ └── main.rs │ │ └── README.md │ ├── proc_macros │ │ └── README.md │ └── about │ │ └── README.md ├── static │ ├── favicon.ico │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── logo │ │ └── logo_large.png │ ├── apple-touch-icon.png │ ├── android-chrome-192x192.png │ ├── android-chrome-512x512.png │ ├── ferris │ │ ├── rustacean-flat-happy.png │ │ └── rustacean-orig-noshadow.png │ └── site.webmanifest ├── .env └── master │ └── README.md ├── later ├── src │ ├── categories │ │ ├── games │ │ │ └── refs.incl.md │ │ ├── no-std │ │ │ ├── refs.incl.md │ │ │ └── no_std.incl.md │ │ ├── science_geo │ │ │ ├── refs.incl.md │ │ │ └── geo.incl.md │ │ ├── aerospace │ │ │ ├── refs.incl.md │ │ │ └── aerospace.incl.md │ │ ├── os_linux-apis │ │ │ ├── refs.incl.md │ │ │ └── linux.incl.md │ │ ├── os_macos-apis │ │ │ ├── refs.incl.md │ │ │ └── macos.incl.md │ │ ├── wasm │ │ │ ├── wasm_basics.incl.md │ │ │ ├── yew.incl.md │ │ │ ├── wasm_development.incl.md │ │ │ └── leptos.incl.md │ │ ├── multimedia_audio │ │ │ ├── refs.incl.md │ │ │ └── audio.incl.md │ │ ├── multimedia_video │ │ │ ├── refs.incl.md │ │ │ └── video.incl.md │ │ ├── aerospace_drones │ │ │ ├── refs.incl.md │ │ │ └── drones.incl.md │ │ ├── multimedia │ │ │ ├── refs.incl.md │ │ │ └── multimedia.incl.md │ │ ├── no-std_no-alloc │ │ │ ├── refs.incl.md │ │ │ └── no_alloc.incl.md │ │ ├── os_freebsd-apis │ │ │ ├── refs.incl.md │ │ │ └── freebsd.incl.md │ │ ├── virtualization │ │ │ ├── containerization.incl.md │ │ │ ├── using_containers.incl.md │ │ │ ├── virtualization.incl.md │ │ │ └── containers.incl.md │ │ ├── localization │ │ │ ├── refs.incl.md │ │ │ └── localization.incl.md │ │ ├── multimedia_encoding │ │ │ ├── refs.incl.md │ │ │ └── encoding.incl.md │ │ ├── science_neuroscience │ │ │ ├── refs.incl.md │ │ │ └── neuroscience.incl.md │ │ ├── finance │ │ │ ├── refs.incl.md │ │ │ └── quant.incl.md │ │ ├── external-ffi-bindings │ │ │ ├── refs.incl.md │ │ │ └── external_ffi_bindings.incl.md │ │ ├── aerospace_unmanned-aerial-vehicles │ │ │ ├── refs.incl.md │ │ │ └── uavs.incl.md │ │ ├── aerospace_protocols │ │ │ ├── refs.incl.md │ │ │ └── aerospace_protocols.incl.md │ │ ├── aerospace_simulation │ │ │ ├── refs.incl.md │ │ │ └── aerospace_simulation.incl.md │ │ ├── rendering_engine │ │ │ ├── refs.incl.md │ │ │ └── rendering_engines.incl.md │ │ ├── rendering_data-formats │ │ │ ├── refs.incl.md │ │ │ └── data_formats.incl.md │ │ ├── embedded │ │ │ ├── flash.incl.md │ │ │ ├── pacs.incl.md │ │ │ ├── rtos.incl.md │ │ │ ├── sensors.inlc.md │ │ │ ├── embassy.incl.md │ │ │ ├── hals.incl.md │ │ │ └── refs.incl.md │ │ ├── simulation │ │ │ ├── refs.incl.md │ │ │ ├── simulation.incl.md │ │ │ └── physics_engines.incl.md │ │ ├── internationalization │ │ │ ├── refs.incl.md │ │ │ └── internationalization.incl.md │ │ ├── accessibility │ │ │ ├── refs.incl.md │ │ │ └── screen_readers.incl.md │ │ ├── aerospace_space-protocols │ │ │ ├── refs.incl.md │ │ │ └── space_protocols.incl.md │ │ ├── value-formatting │ │ │ └── refs.incl.md │ │ ├── visualization │ │ │ └── refs.incl.md │ │ ├── gui │ │ │ ├── file_dialogs.incl.md │ │ │ ├── immediate_mode_gui.incl.md │ │ │ ├── clipboard.incl.md │ │ │ ├── gtk.incl.md │ │ │ ├── web_based_gui.incl.md │ │ │ └── ui_layout.incl.md │ │ ├── emulators │ │ │ ├── emulators.incl.md │ │ │ └── refs.incl.md │ │ ├── game-development │ │ │ └── refs.incl.md │ │ ├── science_robotics │ │ │ ├── hardware_integration.incl.md │ │ │ ├── perception_and_sensors.incl.md │ │ │ └── artificial_intelligence.incl.md │ │ ├── web-programming_websocket │ │ │ └── refs.incl.md │ │ ├── computer-vision │ │ │ ├── opencv.incl.md │ │ │ └── refs.incl.md │ │ ├── cryptography_cryptocurrencies │ │ │ ├── refs.incl.md │ │ │ └── cryptocurrencies.incl.md │ │ ├── rendering_graphics-api │ │ │ └── gpu_abstraction_layers.incl.md │ │ ├── science │ │ │ ├── deep_learning.incl.md │ │ │ └── classical_machine_learning.incl.md │ │ └── multimedia_images │ │ │ ├── color_handling.incl.md │ │ │ └── pixel_buffers.incl.md │ └── other │ │ ├── gpu │ │ ├── refs.incl.md │ │ └── gpu.incl.md │ │ ├── architecture │ │ ├── architectural_patterns.incl.md │ │ └── software_architecture_process.incl.md │ │ ├── scripting │ │ └── task_automation.incl.md │ │ ├── cloud │ │ ├── _fragment.incl.md │ │ ├── rust_native_cloud_development.incl.md │ │ └── aws.incl.md │ │ ├── devops │ │ ├── cd_ci.incl.md │ │ ├── github_actions.incl.md │ │ └── version_control.incl.md │ │ ├── data-processing │ │ ├── dataframes.incl.md │ │ └── csv.incl.md │ │ └── cross-platform │ │ ├── crux.incl.md │ │ └── refs.incl.md └── crates │ ├── other │ ├── examples │ │ ├── gpu │ │ │ ├── mod.rs │ │ │ └── rust_gpu.rs │ │ ├── scripting │ │ │ └── mod.rs │ │ ├── cross_platform │ │ │ └── mod.rs │ │ ├── written_in_rust │ │ │ └── mod.rs │ │ ├── cloud │ │ │ └── mod.rs │ │ ├── architecture │ │ │ └── main.rs │ │ ├── topic.rs │ │ └── data_processing │ │ │ └── mod.rs │ └── README.md │ ├── cats │ ├── games │ │ ├── examples │ │ │ └── games.rs │ │ └── README.md │ ├── embedded │ │ ├── examples │ │ │ ├── hals │ │ │ │ └── main.rs │ │ │ ├── rtos │ │ │ │ └── main.rs │ │ │ ├── flash │ │ │ │ └── main.rs │ │ │ ├── sensors │ │ │ │ └── main.rs │ │ │ └── embassy │ │ │ │ └── main.rs │ │ └── README.md │ ├── wasm │ │ ├── examples │ │ │ ├── yew │ │ │ │ └── main.rs │ │ │ ├── wasm_development │ │ │ │ └── main.rs │ │ │ ├── interfacing_with_javascript │ │ │ │ └── main.rs │ │ │ └── wasm_standalone_runtimes │ │ │ │ └── main.rs │ │ └── README.md │ ├── no_std │ │ ├── examples │ │ │ └── no_std │ │ │ │ ├── main.rs │ │ │ │ └── no_std1.rs │ │ └── README.md │ ├── rendering │ │ ├── examples │ │ │ ├── 3d_renderers │ │ │ │ └── main.rs │ │ │ ├── svg_rendering │ │ │ │ └── main.rs │ │ │ ├── 2d_vector_graphics │ │ │ │ └── main.rs │ │ │ ├── text_rendering │ │ │ │ └── main.rs │ │ │ └── 2d_raster_graphics │ │ │ │ ├── main.rs │ │ │ │ └── render.rs │ │ └── README.md │ ├── science_geo │ │ ├── examples │ │ │ └── geo │ │ │ │ ├── main.rs │ │ │ │ └── geo.rs │ │ └── README.md │ ├── api_bindings │ │ ├── examples │ │ │ └── api_bindings │ │ │ │ └── main.rs │ │ └── README.md │ ├── finance │ │ ├── examples │ │ │ └── quant │ │ │ │ └── main.rs │ │ └── README.md │ ├── os_linux_apis │ │ ├── examples │ │ │ └── linux │ │ │ │ └── main.rs │ │ └── README.md │ ├── os_macos_apis │ │ ├── examples │ │ │ └── macos │ │ │ │ └── main.rs │ │ └── README.md │ ├── simulation │ │ ├── examples │ │ │ ├── physics_engines │ │ │ │ └── main.rs │ │ │ └── simulation │ │ │ │ ├── main.rs │ │ │ │ └── simulation1.rs │ │ └── README.md │ ├── computer_vision │ │ ├── examples │ │ │ └── opencv │ │ │ │ └── main.rs │ │ └── README.md │ ├── development_tools_ffi │ │ ├── examples │ │ │ ├── cpp │ │ │ │ ├── main.rs │ │ │ │ └── hello.h │ │ │ ├── c │ │ │ │ ├── main.rs │ │ │ │ ├── example.c │ │ │ │ └── example.h │ │ │ ├── ruby │ │ │ │ ├── script.rb │ │ │ │ └── main.rs │ │ │ ├── java │ │ │ │ └── main.rs │ │ │ ├── objc │ │ │ │ └── main.rs │ │ │ ├── python │ │ │ │ └── main.rs │ │ │ ├── erlang_elixir │ │ │ │ └── main.rs │ │ │ ├── flutter │ │ │ │ ├── main.rs │ │ │ │ └── pubspec.yaml │ │ │ ├── lua │ │ │ │ ├── main.rs │ │ │ │ └── script.lua │ │ │ └── node │ │ │ │ ├── main.rs │ │ │ │ └── index.js │ │ └── README.md │ ├── emulators │ │ ├── examples │ │ │ └── emulators │ │ │ │ ├── main.rs │ │ │ │ └── emulator.rs │ │ └── README.md │ ├── multimedia │ │ ├── examples │ │ │ └── multimedia │ │ │ │ ├── main.rs │ │ │ │ └── multimedia1.rs │ │ └── README.md │ ├── multimedia_audio │ │ ├── examples │ │ │ └── audio │ │ │ │ ├── main.rs │ │ │ │ └── audio.rs │ │ └── README.md │ ├── multimedia_images │ │ ├── examples │ │ │ └── images │ │ │ │ ├── main.rs │ │ │ │ └── images.rs │ │ └── README.md │ ├── multimedia_video │ │ ├── examples │ │ │ └── video │ │ │ │ ├── main.rs │ │ │ │ └── video.rs │ │ └── README.md │ ├── os_freebsd_apis │ │ ├── examples │ │ │ └── freebsd │ │ │ │ └── main.rs │ │ └── README.md │ ├── rendering_graphics_api │ │ ├── examples │ │ │ ├── opengl │ │ │ │ └── main.rs │ │ │ ├── shaders │ │ │ │ └── main.rs │ │ │ ├── vulkan │ │ │ │ └── main.rs │ │ │ ├── native_graphics_apis │ │ │ │ ├── main.rs │ │ │ │ └── graphics.rs │ │ │ └── gpu_abstraction_layers │ │ │ │ └── main.rs │ │ └── README.md │ ├── science_robotics │ │ ├── examples │ │ │ ├── control_systems │ │ │ │ └── main.rs │ │ │ ├── hardware_integration │ │ │ │ └── main.rs │ │ │ ├── perception_and_sensors │ │ │ │ └── main.rs │ │ │ ├── simulation_visualization │ │ │ │ └── main.rs │ │ │ ├── artificial_intelligence │ │ │ │ └── main.rs │ │ │ ├── robot_operating_systems │ │ │ │ ├── main.rs │ │ │ │ └── robotics.rs │ │ │ └── robotics_frameworks │ │ │ │ └── main.rs │ │ └── README.md │ ├── external_ffi_bindings │ │ ├── examples │ │ │ └── external_ffi_bindings.rs │ │ └── README.md │ ├── multimedia_encoding │ │ ├── examples │ │ │ └── encoding │ │ │ │ ├── main.rs │ │ │ │ └── encoding.rs │ │ └── README.md │ ├── no_std_no_alloc │ │ ├── examples │ │ │ └── no_alloc │ │ │ │ ├── main.rs │ │ │ │ └── no_alloc.rs │ │ └── README.md │ ├── visualization │ │ ├── examples │ │ │ └── visualization │ │ │ │ └── main.rs │ │ └── README.md │ ├── localization │ │ ├── examples │ │ │ └── localization │ │ │ │ ├── main.rs │ │ │ │ └── localization1.rs │ │ └── README.md │ ├── rendering_engine │ │ ├── examples │ │ │ └── rendering_engines │ │ │ │ ├── main.rs │ │ │ │ └── render.rs │ │ └── README.md │ ├── science_neuroscience │ │ ├── examples │ │ │ └── neuroscience │ │ │ │ ├── main.rs │ │ │ │ └── neuro.rs │ │ └── README.md │ ├── value_formatting │ │ ├── examples │ │ │ └── number_formatting │ │ │ │ └── main.rs │ │ └── README.md │ ├── gui │ │ ├── examples │ │ │ ├── file_dialogs │ │ │ │ └── main.rs │ │ │ ├── gtk │ │ │ │ └── main.rs │ │ │ ├── web │ │ │ │ └── main.rs │ │ │ ├── ui_layout │ │ │ │ └── main.rs │ │ │ ├── immediate_mode_gui │ │ │ │ └── main.rs │ │ │ ├── text_layout │ │ │ │ └── main.rs │ │ │ ├── clipboard │ │ │ │ └── main.rs │ │ │ ├── window_creation │ │ │ │ └── main.rs │ │ │ └── 2d_renderers │ │ │ │ └── main.rs │ │ ├── assets │ │ │ ├── Roboto-Regular.ttf │ │ │ ├── Roboto_Condensed-Regular.ttf │ │ │ └── Roboto_SemiCondensed-Regular.ttf │ │ └── README.md │ ├── virtualization │ │ ├── examples │ │ │ └── virtualization │ │ │ │ └── main.rs │ │ └── README.md │ ├── rendering_data_formats │ │ ├── examples │ │ │ └── data_formats │ │ │ │ ├── main.rs │ │ │ │ └── data_formats.rs │ │ └── README.md │ ├── science │ │ ├── examples │ │ │ └── ml │ │ │ │ └── main.rs │ │ └── README.md │ ├── aerospace │ │ ├── examples │ │ │ └── aerospace │ │ │ │ ├── main.rs │ │ │ │ └── aero.rs │ │ └── README.md │ ├── compilers │ │ ├── examples │ │ │ └── incremental_computation │ │ │ │ └── main.rs │ │ └── README.md │ ├── development_tools_procedural_macro_helpers │ │ ├── examples │ │ │ └── compile_macros │ │ │ │ └── main.rs │ │ └── README.md │ ├── aerospace_drones │ │ ├── examples │ │ │ └── drones │ │ │ │ ├── main.rs │ │ │ │ └── drones1.rs │ │ └── README.md │ ├── cryptography_cryptocurrencies │ │ ├── examples │ │ │ └── cryptocurrencies │ │ │ │ └── main.rs │ │ └── README.md │ ├── game_development │ │ ├── examples │ │ │ └── game_development │ │ │ │ ├── main.rs │ │ │ │ └── game_development1.rs │ │ └── README.md │ ├── internationalization │ │ ├── examples │ │ │ └── internationalization │ │ │ │ └── main.rs │ │ └── README.md │ ├── accessibility │ │ └── examples │ │ │ └── screen_readers │ │ │ └── main.rs │ ├── aerospace_unmanned_aerial_vehicles │ │ ├── examples │ │ │ └── uavs │ │ │ │ ├── main.rs │ │ │ │ └── uavs.rs │ │ └── README.md │ ├── game_engines │ │ ├── examples │ │ │ └── game_engines │ │ │ │ └── main.rs │ │ └── README.md │ ├── aerospace_protocols │ │ ├── examples │ │ │ └── aerospace_protocols │ │ │ │ ├── main.rs │ │ │ │ └── aero_protocols.rs │ │ └── README.md │ ├── aerospace_simulation │ │ ├── examples │ │ │ └── aerospace_simulation │ │ │ │ ├── main.rs │ │ │ │ └── aero_simulation.rs │ │ └── README.md │ ├── aerospace_space_protocols │ │ ├── examples │ │ │ └── space_protocols │ │ │ │ ├── main.rs │ │ │ │ └── space_protocols.rs │ │ └── README.md │ └── web_programming_websocket │ │ └── README.md │ ├── .cargo │ └── config.toml │ └── README.md ├── typ └── typst │ ├── other │ ├── abstract.typ │ ├── appendix.typ │ └── preface.typ │ └── template.typ ├── xmpl ├── clap_builder_xmpl │ └── README.md ├── .cargo │ └── config.toml ├── README.md └── cancelable │ ├── README.md │ └── src │ └── lib.rs ├── tools ├── mdbook-scrub │ ├── test_book │ │ └── src │ │ │ ├── refs.md │ │ │ └── included.txt │ └── .markdownlint.yaml ├── .cargo │ └── config.toml ├── tool_lib │ ├── src │ │ └── model │ │ │ └── mod.rs │ └── README.md ├── clean │ └── README.md └── rustfmt.toml ├── publish └── .cargo │ └── config.toml ├── googleebeeacff1e2f9e08.html ├── playground ├── .cargo │ └── config.toml ├── bits_and_pieces │ ├── tool_lib │ │ ├── README.md │ │ └── src │ │ │ ├── lib.rs │ │ │ └── model │ │ │ ├── mod.rs │ │ │ └── book │ │ │ └── exampleindex.rs │ ├── .cargo-husky │ │ └── hooks │ │ │ ├── pre-push │ │ │ └── pre-commit │ ├── templates │ │ └── chapter │ │ │ ├── refs.incl.md.template │ │ │ ├── subchapter.md.template │ │ │ ├── index.incl.md.template │ │ │ └── index.md.template │ └── just │ │ └── justfile.2 ├── examples_wip │ └── src │ │ └── main.rs ├── README.md └── rustfmt.toml ├── .github └── FUNDING.yml ├── .gitmodules ├── CONTRIBUTING.md └── bin └── README.md /bk/src/word_index.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bk/drafts/FRAGMENTS.md: -------------------------------------------------------------------------------- 1 | # FRAGMENTS 2 | -------------------------------------------------------------------------------- /bk/src/code-organization/index.incl.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bk/src/rust-installation/index.incl.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bk/src/rust-installation/refs.incl.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /later/src/categories/games/refs.incl.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /typ/typst/other/abstract.typ: -------------------------------------------------------------------------------- 1 | #emoji.face.smile 2 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools/src/lib.rs: -------------------------------------------------------------------------------- 1 | mod kani; 2 | -------------------------------------------------------------------------------- /bk/src/appendices/contributing/topics_of_interest.incl.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bk/src/crate-selection/current_state_of_the_art.incl.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /later/crates/other/examples/gpu/mod.rs: -------------------------------------------------------------------------------- 1 | mod rust_gpu; 2 | -------------------------------------------------------------------------------- /later/crates/other/examples/scripting/mod.rs: -------------------------------------------------------------------------------- 1 | mod rhai; 2 | -------------------------------------------------------------------------------- /later/crates/other/examples/cross_platform/mod.rs: -------------------------------------------------------------------------------- 1 | mod crux; 2 | -------------------------------------------------------------------------------- /later/crates/other/examples/written_in_rust/mod.rs: -------------------------------------------------------------------------------- 1 | // None 2 | -------------------------------------------------------------------------------- /xmpl/clap_builder_xmpl/README.md: -------------------------------------------------------------------------------- 1 | # Clap Builder Example 2 | -------------------------------------------------------------------------------- /bk/crates/utils/src/lib.rs: -------------------------------------------------------------------------------- 1 | mod clean; 2 | 3 | pub use clean::*; 4 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/query_builders_orms/migrations/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /later/crates/cats/games/examples/games.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/src/other/gpu/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~gpu~rust-gpu]: gpu.md#rust-gpu 2 | -------------------------------------------------------------------------------- /tools/mdbook-scrub/test_book/src/refs.md: -------------------------------------------------------------------------------- 1 | [ref2]: http://google.com 2 | -------------------------------------------------------------------------------- /bk/crates/cats/graphics/examples/graphics.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/embedded/examples/hals/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/embedded/examples/rtos/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/wasm/examples/yew/main.rs: -------------------------------------------------------------------------------- 1 | mod yew; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /publish/.cargo/config.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | target-dir = "../target/publish/" 3 | -------------------------------------------------------------------------------- /tools/.cargo/config.toml: -------------------------------------------------------------------------------- 1 | 2 | [build] 3 | target-dir = "../target/tools/" 4 | -------------------------------------------------------------------------------- /typ/typst/other/appendix.typ: -------------------------------------------------------------------------------- 1 | = First Appendix 2 | 3 | = Second Appendix 4 | -------------------------------------------------------------------------------- /xmpl/.cargo/config.toml: -------------------------------------------------------------------------------- 1 | 2 | [build] 3 | target-dir = "../target/xmpl/" 4 | -------------------------------------------------------------------------------- /bk/crates/cats/parsing/examples/pest/main.rs: -------------------------------------------------------------------------------- 1 | mod pest; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/pin/main.rs: -------------------------------------------------------------------------------- 1 | mod pin; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/src/appendices/contributing/book_editing_and_example_code_development.incl.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /googleebeeacff1e2f9e08.html: -------------------------------------------------------------------------------- 1 | google-site-verification: googleebeeacff1e2f9e08.html -------------------------------------------------------------------------------- /later/crates/cats/embedded/examples/flash/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/embedded/examples/sensors/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/src/categories/no-std/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~no-std~no-std]: no_std.md#no-std 2 | -------------------------------------------------------------------------------- /later/src/categories/science_geo/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~science_geo~geo]: geo.md#geo 2 | -------------------------------------------------------------------------------- /tools/tool_lib/src/model/mod.rs: -------------------------------------------------------------------------------- 1 | mod category; 2 | 3 | pub use category::*; 4 | -------------------------------------------------------------------------------- /bk/crates/cats/template_engine/examples/tera/main.rs: -------------------------------------------------------------------------------- 1 | mod tera; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/drop/main.rs: -------------------------------------------------------------------------------- 1 | mod drop; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/.cargo/config.toml: -------------------------------------------------------------------------------- 1 | 2 | [build] 3 | target-dir = "../../target/later/" 4 | -------------------------------------------------------------------------------- /later/crates/cats/no_std/examples/no_std/main.rs: -------------------------------------------------------------------------------- 1 | mod no_std1; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering/examples/3d_renderers/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/rendering/examples/svg_rendering/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/science_geo/examples/geo/main.rs: -------------------------------------------------------------------------------- 1 | mod geo; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/wasm/examples/wasm_development/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/src/categories/aerospace/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~aerospace~aero]: aerospace.md#aero 2 | -------------------------------------------------------------------------------- /playground/.cargo/config.toml: -------------------------------------------------------------------------------- 1 | 2 | [build] 3 | target-dir = "../target/playground/" 4 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/graph/main.rs: -------------------------------------------------------------------------------- 1 | mod petgraph; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/vector/main.rs: -------------------------------------------------------------------------------- 1 | mod vectors; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/date_and_time/examples/duration/main.rs: -------------------------------------------------------------------------------- 1 | mod profile; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/metadata/main.rs: -------------------------------------------------------------------------------- 1 | mod metadata; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/tempfile/main.rs: -------------------------------------------------------------------------------- 1 | mod tempfile; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/os/examples/low_level_system_calls/main.rs: -------------------------------------------------------------------------------- 1 | mod libc; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/language/examples/enums/main.rs: -------------------------------------------------------------------------------- 1 | mod enums; 2 | mod strum; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/drafts/indices/crates_and_examples.incl.md: -------------------------------------------------------------------------------- 1 | | [`accesskit`][ex~indices~accesskit] | | | 2 | -------------------------------------------------------------------------------- /bk/drafts/indices/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~indices~accesskit]: crates_and_examples.md#accesskit 2 | -------------------------------------------------------------------------------- /bk/drafts/plugin.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [Create a Plugin System][ex~drafts~plugins] | 4 | -------------------------------------------------------------------------------- /later/crates/cats/api_bindings/examples/api_bindings/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/embedded/examples/embassy/main.rs: -------------------------------------------------------------------------------- 1 | mod embassy; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/finance/examples/quant/main.rs: -------------------------------------------------------------------------------- 1 | mod rustquant; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/os_linux_apis/examples/linux/main.rs: -------------------------------------------------------------------------------- 1 | mod linux; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/os_macos_apis/examples/macos/main.rs: -------------------------------------------------------------------------------- 1 | mod macos; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering/examples/2d_vector_graphics/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/rendering/examples/text_rendering/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/simulation/examples/physics_engines/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/src/categories/os_linux-apis/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~os_linux-apis~linux]: linux.md#linux 2 | -------------------------------------------------------------------------------- /later/src/categories/os_macos-apis/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~os_macos-apis~macos]: macos.md#macos 2 | -------------------------------------------------------------------------------- /later/src/categories/wasm/wasm_basics.incl.md: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [john-cd] 4 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/file_watching/main.rs: -------------------------------------------------------------------------------- 1 | mod notify; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/examples/ini/main.rs: -------------------------------------------------------------------------------- 1 | mod rust_ini; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/text_processing/examples/unicode/main.rs: -------------------------------------------------------------------------------- 1 | mod graphemes; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/cmp/main.rs: -------------------------------------------------------------------------------- 1 | mod eq; 2 | mod ord; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/default/main.rs: -------------------------------------------------------------------------------- 1 | pub mod default; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/reference_counting/main.rs: -------------------------------------------------------------------------------- 1 | mod rc; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/smart_pointers/main.rs: -------------------------------------------------------------------------------- 1 | mod deref; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/bk/static/favicon.ico -------------------------------------------------------------------------------- /later/crates/cats/computer_vision/examples/opencv/main.rs: -------------------------------------------------------------------------------- 1 | mod opencv; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/cpp/main.rs: -------------------------------------------------------------------------------- 1 | mod cxx; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/emulators/examples/emulators/main.rs: -------------------------------------------------------------------------------- 1 | mod emulator; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia/examples/multimedia/main.rs: -------------------------------------------------------------------------------- 1 | mod multimedia1; 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_audio/examples/audio/main.rs: -------------------------------------------------------------------------------- 1 | mod audio; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_images/examples/images/main.rs: -------------------------------------------------------------------------------- 1 | mod images; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_video/examples/video/main.rs: -------------------------------------------------------------------------------- 1 | mod video; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/os_freebsd_apis/examples/freebsd/main.rs: -------------------------------------------------------------------------------- 1 | mod freebsd; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_graphics_api/examples/opengl/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_graphics_api/examples/shaders/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_graphics_api/examples/vulkan/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/science_robotics/examples/control_systems/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/wasm/examples/interfacing_with_javascript/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/other/examples/cloud/mod.rs: -------------------------------------------------------------------------------- 1 | mod aws_lambda; 2 | mod aws_sdk; 3 | mod shuttle; 4 | -------------------------------------------------------------------------------- /later/src/categories/multimedia_audio/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~multimedia_audio~audio]: audio.md#audio 2 | -------------------------------------------------------------------------------- /later/src/categories/multimedia_video/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~multimedia_video~video]: video.md#video 2 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/send_sync/main.rs: -------------------------------------------------------------------------------- 1 | mod send_sync_impl; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/linkedlist/main.rs: -------------------------------------------------------------------------------- 1 | mod linkedlist; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_testing/examples/fuzzing/main.rs: -------------------------------------------------------------------------------- 1 | mod afl; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_testing/examples/testing/main.rs: -------------------------------------------------------------------------------- 1 | mod insta; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/stdin_stdout/main.rs: -------------------------------------------------------------------------------- 1 | mod stdin_stdout; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/symbolic_links/main.rs: -------------------------------------------------------------------------------- 1 | mod symbolic_links; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/hardware_support/examples/processor/main.rs: -------------------------------------------------------------------------------- 1 | mod cpu_count; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/os_unix_apis/examples/unix/main.rs: -------------------------------------------------------------------------------- 1 | mod nix; 2 | mod rustix; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/examples/yaml/main.rs: -------------------------------------------------------------------------------- 1 | mod serde_yml; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/parsing/examples/parsing/main.rs: -------------------------------------------------------------------------------- 1 | mod nom; 2 | mod tree_sitter; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/text_processing/examples/string_parsing/main.rs: -------------------------------------------------------------------------------- 1 | mod from_str; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_server/examples/grpc/main.rs: -------------------------------------------------------------------------------- 1 | mod tonic; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/code_organization/examples/modules/main.rs: -------------------------------------------------------------------------------- 1 | mod module_visibility; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/language/examples/impl_trait/main.rs: -------------------------------------------------------------------------------- 1 | mod impl_trait; 2 | mod rpit; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/proc_macros/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | This crate contains procedural macro examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/external_ffi_bindings/examples/external_ffi_bindings.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_encoding/examples/encoding/main.rs: -------------------------------------------------------------------------------- 1 | mod encoding; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/no_std_no_alloc/examples/no_alloc/main.rs: -------------------------------------------------------------------------------- 1 | mod no_alloc; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering/examples/2d_raster_graphics/main.rs: -------------------------------------------------------------------------------- 1 | mod render; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/science_robotics/examples/hardware_integration/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/simulation/examples/simulation/main.rs: -------------------------------------------------------------------------------- 1 | mod simulation1; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/visualization/examples/visualization/main.rs: -------------------------------------------------------------------------------- 1 | mod plotly; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_drones/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~aerospace_drones~drones]: drones.md#drones 2 | -------------------------------------------------------------------------------- /later/src/categories/multimedia/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~multimedia~multimedia]: multimedia.md#multimedia 2 | -------------------------------------------------------------------------------- /later/src/categories/no-std_no-alloc/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~no-std_no-alloc~noalloc]: no_alloc.md#noalloc 2 | -------------------------------------------------------------------------------- /later/src/categories/os_freebsd-apis/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~os_freebsd-apis~freebsd]: freebsd.md#freebsd 2 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/tool_lib/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Fragments for the tool_lib library. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/asynchronous/examples/async/main.rs: -------------------------------------------------------------------------------- 1 | mod async1; 2 | mod async2; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/authentication/examples/basic_authentication/main.rs: -------------------------------------------------------------------------------- 1 | mod basic; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/config/examples/env/main.rs: -------------------------------------------------------------------------------- 1 | mod dotenvy; 2 | mod env; 3 | mod envy; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/cryptography/examples/tls/main.rs: -------------------------------------------------------------------------------- 1 | mod native_tls; 2 | mod rustls; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/unique_ids/main.rs: -------------------------------------------------------------------------------- 1 | mod ulid; 2 | mod uuid; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools/examples/crate_registries/main.rs: -------------------------------------------------------------------------------- 1 | mod crates_io; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_build_utils/examples/autocfg/main.rs: -------------------------------------------------------------------------------- 1 | mod autocfg; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_testing/examples/code_coverage/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_testing/examples/test_runners/main.rs: -------------------------------------------------------------------------------- 1 | mod tests1; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/toml_encoding/main.rs: -------------------------------------------------------------------------------- 1 | mod toml; 2 | mod toml1; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/typecasts/main.rs: -------------------------------------------------------------------------------- 1 | mod bytemuck; 2 | mod zerocopy; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/rust_patterns/examples/builder_pattern/main.rs: -------------------------------------------------------------------------------- 1 | mod builder_pattern; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/template_engine/examples/tinytemplate/main.rs: -------------------------------------------------------------------------------- 1 | mod tinytemplate; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/text_processing/examples/diffing/main.rs: -------------------------------------------------------------------------------- 1 | mod diff; 2 | mod similar; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/static/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/bk/static/favicon-16x16.png -------------------------------------------------------------------------------- /bk/static/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/bk/static/favicon-32x32.png -------------------------------------------------------------------------------- /later/crates/cats/localization/examples/localization/main.rs: -------------------------------------------------------------------------------- 1 | mod localization1; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_engine/examples/rendering_engines/main.rs: -------------------------------------------------------------------------------- 1 | mod render; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/science_neuroscience/examples/neuroscience/main.rs: -------------------------------------------------------------------------------- 1 | mod neuro; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/science_robotics/examples/perception_and_sensors/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/science_robotics/examples/simulation_visualization/main.rs: -------------------------------------------------------------------------------- 1 | // LATER 2 | fn main() {} 3 | -------------------------------------------------------------------------------- /later/crates/cats/value_formatting/examples/number_formatting/main.rs: -------------------------------------------------------------------------------- 1 | mod ryu; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/src/categories/virtualization/containerization.incl.md: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /later/src/categories/virtualization/using_containers.incl.md: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /later/src/other/architecture/architectural_patterns.incl.md: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /playground/examples_wip/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | println!("Look in the examples folder."); 3 | } 4 | -------------------------------------------------------------------------------- /bk/crates/cats/cryptography/examples/utilities/main.rs: -------------------------------------------------------------------------------- 1 | mod subtle; 2 | mod zeroize; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/btrees/main.rs: -------------------------------------------------------------------------------- 1 | mod btreemap; 2 | mod btreeset; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/amqp/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "lapin")] 2 | mod lapin; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_cargo_plugins/examples/building/main.rs: -------------------------------------------------------------------------------- 1 | mod xshell; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_profiling/examples/benchmarking/main.rs: -------------------------------------------------------------------------------- 1 | mod criterion; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/os_windows_apis/examples/windows/main.rs: -------------------------------------------------------------------------------- 1 | mod winapi; 2 | mod windows; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/examples/javascript/main.rs: -------------------------------------------------------------------------------- 1 | mod swc_ecma_parser; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming/examples/http_types_and_interfaces/main.rs: -------------------------------------------------------------------------------- 1 | mod http; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/derive/main.rs: -------------------------------------------------------------------------------- 1 | mod derive; 2 | mod derive_more; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/utils/README.md: -------------------------------------------------------------------------------- 1 | # Utilities 2 | 3 | Import this library to use these functions from code examples. 4 | -------------------------------------------------------------------------------- /bk/static/logo/logo_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/bk/static/logo/logo_large.png -------------------------------------------------------------------------------- /later/crates/cats/gui/examples/file_dialogs/main.rs: -------------------------------------------------------------------------------- 1 | mod rfd; 2 | 3 | fn main() { 4 | rfd::main(); 5 | } 6 | -------------------------------------------------------------------------------- /later/crates/cats/virtualization/examples/virtualization/main.rs: -------------------------------------------------------------------------------- 1 | mod virtualization1; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/src/categories/localization/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~localization~localization]: localization.md#localization 2 | -------------------------------------------------------------------------------- /later/src/categories/multimedia_encoding/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~multimedia_encoding~encoding]: encoding.md#encoding 2 | -------------------------------------------------------------------------------- /later/src/categories/science_neuroscience/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~science_neuroscience~neuro]: neuroscience.md#neuro 2 | -------------------------------------------------------------------------------- /later/src/other/architecture/software_architecture_process.incl.md: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "mdbook-utils"] 2 | path = mdbook-utils 3 | url = https://github.com/john-cd/mdbook-utils 4 | -------------------------------------------------------------------------------- /bk/crates/about/README.md: -------------------------------------------------------------------------------- 1 | # About 2 | 3 | This crate contains the code examples used in the book's introduction. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/stacks_and_queues/main.rs: -------------------------------------------------------------------------------- 1 | mod queue; 2 | mod stack; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/strings/main.rs: -------------------------------------------------------------------------------- 1 | mod string_format; 2 | mod strings; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/mssql/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "mssql")] 2 | mod tiberius; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_testing/examples/mocking/main.rs: -------------------------------------------------------------------------------- 1 | mod faux; 2 | mod mockall; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/no_external_schema_file/main.rs: -------------------------------------------------------------------------------- 1 | mod postcard; 2 | mod rkyv; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/user_directories/main.rs: -------------------------------------------------------------------------------- 1 | mod directories; 2 | mod dirs; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/any/main.rs: -------------------------------------------------------------------------------- 1 | mod any; 2 | mod plugin; 3 | mod type_id; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/interior_mutability/main.rs: -------------------------------------------------------------------------------- 1 | mod cell; 2 | mod refcell; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/static/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/bk/static/apple-touch-icon.png -------------------------------------------------------------------------------- /later/crates/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | This folder contains code examples in development / to be used later. 4 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/c/main.rs: -------------------------------------------------------------------------------- 1 | mod bindgen; 2 | mod cbindgen; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_data_formats/examples/data_formats/main.rs: -------------------------------------------------------------------------------- 1 | mod data_formats; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_graphics_api/examples/native_graphics_apis/main.rs: -------------------------------------------------------------------------------- 1 | mod graphics; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/science/examples/ml/main.rs: -------------------------------------------------------------------------------- 1 | mod candle; 2 | mod linfa; 3 | mod smartcore; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /later/crates/cats/science_robotics/examples/artificial_intelligence/main.rs: -------------------------------------------------------------------------------- 1 | mod bonsai_bt; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/science_robotics/examples/robot_operating_systems/main.rs: -------------------------------------------------------------------------------- 1 | mod robotics; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/src/categories/finance/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~finance~rustquant]: quant.md#rustquant 2 | [p~finance]: index.md 3 | -------------------------------------------------------------------------------- /bk/crates/cats/caching/examples/in_memory_cache/main.rs: -------------------------------------------------------------------------------- 1 | mod cached; 2 | mod lru; 3 | mod moka; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/network_programming/examples/server/main.rs: -------------------------------------------------------------------------------- 1 | mod glommio; 2 | mod listen_unused; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_client/examples/http_clients/main.rs: -------------------------------------------------------------------------------- 1 | mod hyper; 2 | mod ureq; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/borrow/main.rs: -------------------------------------------------------------------------------- 1 | mod borrow; 2 | mod borrow2; 3 | mod borrow3; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/result/main.rs: -------------------------------------------------------------------------------- 1 | mod result; 2 | mod result2; 3 | mod result3; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/drafts/inheritance.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [Emulate Inheritance with `AsRef`][ex~drafts~inheritance-in-rust] | 4 | -------------------------------------------------------------------------------- /bk/src/refs/link-refs.md: -------------------------------------------------------------------------------- 1 | {{#include category-refs.md}} 2 | {{#include crate-refs.md}} 3 | {{#include other-refs.md}} 4 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace/examples/aerospace/main.rs: -------------------------------------------------------------------------------- 1 | mod aero; 2 | 3 | fn main() { 4 | // aero::main(); 5 | } 6 | -------------------------------------------------------------------------------- /later/crates/cats/compilers/examples/incremental_computation/main.rs: -------------------------------------------------------------------------------- 1 | mod comemo; 2 | mod salsa; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/ruby/script.rb: -------------------------------------------------------------------------------- 1 | require 'rust_module' 2 | 3 | puts RustClass.hello 4 | -------------------------------------------------------------------------------- /later/src/categories/external-ffi-bindings/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~external-ffi-bindings~ffi]: external_ffi_bindings.md#ffi 2 | -------------------------------------------------------------------------------- /playground/README.md: -------------------------------------------------------------------------------- 1 | # Playground 2 | 3 | This folder contains bits and pieces of code for testing and exploration. 4 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/.cargo-husky/hooks/pre-push: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo '+just prep' 5 | just prep 6 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/tool_lib/src/lib.rs: -------------------------------------------------------------------------------- 1 | mod model; 2 | mod tera; 3 | 4 | pub use model::*; 5 | pub use tera::*; 6 | -------------------------------------------------------------------------------- /tools/mdbook-scrub/.markdownlint.yaml: -------------------------------------------------------------------------------- 1 | MD012: false 2 | MD033: false 3 | MD037: false 4 | MD042: false 5 | MD052: false 6 | -------------------------------------------------------------------------------- /bk/crates/cats/asynchronous/examples/streams/main.rs: -------------------------------------------------------------------------------- 1 | mod streams; 2 | mod streams2; 3 | mod streams3; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/binaryheap/main.rs: -------------------------------------------------------------------------------- 1 | mod binaryheap; 2 | mod priority_queue; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/maps/main.rs: -------------------------------------------------------------------------------- 1 | mod indexmap; 2 | mod multimap; 3 | mod slotmap; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming/examples/mime/main.rs: -------------------------------------------------------------------------------- 1 | mod filename; 2 | mod request; 3 | mod string; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_server/examples/middleware/main.rs: -------------------------------------------------------------------------------- 1 | mod cors; 2 | mod tower_http; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/conversion_traits/main.rs: -------------------------------------------------------------------------------- 1 | mod from; 2 | mod from2; 3 | mod from3; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/drafts/categories/development-tools/transcompilation/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~transcompilation~c2rust]: transpilers.md#c2rust 2 | -------------------------------------------------------------------------------- /bk/drafts/contributing/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~contributing~rust-analyzer-configuration]: vscode.md#rust-analyzer-configuration 2 | -------------------------------------------------------------------------------- /bk/drafts/contributing/vscode.incl.md: -------------------------------------------------------------------------------- 1 | | [`rust-analyzer` Configuration][ex~contributing~rust-analyzer-configuration] | | | 2 | -------------------------------------------------------------------------------- /bk/static/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/bk/static/android-chrome-192x192.png -------------------------------------------------------------------------------- /bk/static/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/bk/static/android-chrome-512x512.png -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/java/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "java")] 2 | mod jni; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/objc/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "objc")] 2 | mod objc2; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_procedural_macro_helpers/examples/compile_macros/main.rs: -------------------------------------------------------------------------------- 1 | mod watt; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/science_robotics/examples/robotics_frameworks/main.rs: -------------------------------------------------------------------------------- 1 | mod openrr; 2 | mod zenoh; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/algorithms/examples/sort/main.rs: -------------------------------------------------------------------------------- 1 | mod sort_basic; 2 | mod sort_float; 3 | mod sort_struct; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/compression/examples/compression/main.rs: -------------------------------------------------------------------------------- 1 | mod async_compression; 2 | mod flate2; 3 | mod zip; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/atomics/main.rs: -------------------------------------------------------------------------------- 1 | mod atomic_cell; 2 | mod atomics; 3 | mod spinlock; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/threadpool/main.rs: -------------------------------------------------------------------------------- 1 | mod threadpool_fractal; 2 | mod threadpool_walk; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/search/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "elasticsearch")] 2 | mod elasticsearch; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/read_write/main.rs: -------------------------------------------------------------------------------- 1 | mod memmap2; 2 | mod read_file; 3 | mod same_file; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/examples/html/main.rs: -------------------------------------------------------------------------------- 1 | mod cssparser; 2 | mod html5ever; 3 | mod tl; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/rust_patterns/examples/rust_specific_patterns/main.rs: -------------------------------------------------------------------------------- 1 | mod dyn_clone; 2 | mod pin_project; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/text_processing/examples/string_concat/main.rs: -------------------------------------------------------------------------------- 1 | mod string_concat; 2 | mod string_concat2; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming/examples/scraping/main.rs: -------------------------------------------------------------------------------- 1 | mod broken; 2 | mod extract_links; 3 | mod unique; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_client/examples/requests/main.rs: -------------------------------------------------------------------------------- 1 | mod get; 2 | mod get1; 3 | mod header; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/language/examples/slices/main.rs: -------------------------------------------------------------------------------- 1 | mod slice_as_argument; 2 | mod slices; 3 | mod string_slices; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_drones/examples/drones/main.rs: -------------------------------------------------------------------------------- 1 | mod drones1; 2 | 3 | fn main() { 4 | // drones1::main(); 5 | } 6 | -------------------------------------------------------------------------------- /later/crates/cats/cryptography_cryptocurrencies/examples/cryptocurrencies/main.rs: -------------------------------------------------------------------------------- 1 | mod cryptocurrencies; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/python/main.rs: -------------------------------------------------------------------------------- 1 | mod pyo3; 2 | mod use_rust_from_python; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /later/crates/cats/game_development/examples/game_development/main.rs: -------------------------------------------------------------------------------- 1 | mod game_development1; 2 | mod glam; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /later/crates/cats/internationalization/examples/internationalization/main.rs: -------------------------------------------------------------------------------- 1 | mod internationalization1; 2 | 3 | fn main() {} 4 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_unmanned-aerial-vehicles/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~aerospace_unmanned-aerial-vehicles~uavs]: uavs.md#uavs 2 | -------------------------------------------------------------------------------- /bk/crates/cats/asynchronous/examples/tokio/main.rs: -------------------------------------------------------------------------------- 1 | mod tokio2; 2 | mod tokio21; 3 | mod tokio_graceful_shutdown; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/actors/main.rs: -------------------------------------------------------------------------------- 1 | mod actix; 2 | mod actors; 3 | mod ractor; 4 | mod stakker; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/cryptography/examples/aead/main.rs: -------------------------------------------------------------------------------- 1 | mod aes_gcm; 2 | mod aes_gcm_siv; 3 | mod chacha20poly1305; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/stack_allocated/main.rs: -------------------------------------------------------------------------------- 1 | mod arrayvec; 2 | mod smallvec; 3 | mod tinyvec; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_testing/examples/assertions/main.rs: -------------------------------------------------------------------------------- 1 | mod approx; 2 | mod tests_custom_message; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_testing/examples/property_based_testing/main.rs: -------------------------------------------------------------------------------- 1 | mod fake; 2 | mod proptest; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/directories/main.rs: -------------------------------------------------------------------------------- 1 | mod cwd; 2 | mod manipulate_dirs; 3 | mod remove_dir_all; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/paths/main.rs: -------------------------------------------------------------------------------- 1 | mod camino; 2 | mod canonicalize; 3 | mod manipulate_paths; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/examples/json/main.rs: -------------------------------------------------------------------------------- 1 | mod json5; 2 | mod serde_json; 3 | mod simd_json; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/examples/toml/main.rs: -------------------------------------------------------------------------------- 1 | mod basic_toml; 2 | mod toml; 3 | mod toml_edit; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/text_processing/examples/string_manipulation/main.rs: -------------------------------------------------------------------------------- 1 | mod heck; 2 | mod indoc; 3 | mod textwrap; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/language/examples/constants_and_statics/main.rs: -------------------------------------------------------------------------------- 1 | mod constants; 2 | mod static_mut; 3 | mod statics; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/language/examples/entrypoint/main.rs: -------------------------------------------------------------------------------- 1 | mod async_main; 2 | mod main_fn; 3 | mod main_fn_with_result; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/language/examples/variables/main.rs: -------------------------------------------------------------------------------- 1 | mod destructuring; 2 | mod shadowing; 3 | mod vars; 4 | mod vars2; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/asref/main.rs: -------------------------------------------------------------------------------- 1 | mod asref; 2 | mod option_asref; 3 | mod smart_pointer_asref; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/drafts/categories/development-tools_debugging/metrics.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | -------------------------------------------------------------------------------- /bk/drafts/categories/rust-patterns/structural_patterns.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | -------------------------------------------------------------------------------- /bk/drafts/self_referential.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [Create a Self-Referential Type using `Pin`][ex~drafts~self-referential-type] | 4 | -------------------------------------------------------------------------------- /bk/static/ferris/rustacean-flat-happy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/bk/static/ferris/rustacean-flat-happy.png -------------------------------------------------------------------------------- /later/src/other/scripting/task_automation.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | | | | 4 | -------------------------------------------------------------------------------- /bk/crates/cats/cryptography/examples/certs/main.rs: -------------------------------------------------------------------------------- 1 | mod der; 2 | mod pem_rfc7468; 3 | mod pkcs8; 4 | mod x509_cert; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/examples/markdown/main.rs: -------------------------------------------------------------------------------- 1 | mod comrak; 2 | mod markdown; 3 | mod pulldown_cmark; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/drafts/categories/authentication/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~authentication~basic-authentication]: basic_authentication.md#basic-authentication 2 | -------------------------------------------------------------------------------- /bk/static/ferris/rustacean-orig-noshadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/bk/static/ferris/rustacean-orig-noshadow.png -------------------------------------------------------------------------------- /later/crates/cats/accessibility/examples/screen_readers/main.rs: -------------------------------------------------------------------------------- 1 | mod accesskit; 2 | 3 | fn main() { 4 | // accesskit::main(); 5 | } 6 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_unmanned_aerial_vehicles/examples/uavs/main.rs: -------------------------------------------------------------------------------- 1 | mod uavs; 2 | 3 | fn main() { 4 | // uavs::main(); 5 | } 6 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/erlang_elixir/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "erlang")] 2 | mod rustler; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /later/crates/cats/gui/examples/gtk/main.rs: -------------------------------------------------------------------------------- 1 | mod gtk4; 2 | mod relm4; 3 | 4 | fn main() { 5 | gtk4::main(); 6 | relm4::main(); 7 | } 8 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/tool_lib/src/model/mod.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | pub mod book; 3 | mod crates; 4 | 5 | pub use crates::*; 6 | -------------------------------------------------------------------------------- /tools/tool_lib/README.md: -------------------------------------------------------------------------------- 1 | # Tools Shared Library 2 | 3 | - `src/lib.rs` contains the Rust library to be shared between all Rust CLI tools. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/asynchronous/examples/async_traits/main.rs: -------------------------------------------------------------------------------- 1 | mod async_traits; 2 | mod async_traits2; 3 | mod async_traits3; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/cryptography/examples/password_hashing/main.rs: -------------------------------------------------------------------------------- 1 | mod argon2; 2 | mod bcrypt; 3 | mod pbkdf2; 4 | mod scrypt; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/bitfield/main.rs: -------------------------------------------------------------------------------- 1 | mod bitflags; 2 | mod bitvec; 3 | mod flagset; 4 | mod roaring; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/binary_encoders/my_game.fbs: -------------------------------------------------------------------------------- 1 | namespace MyGame; 2 | 3 | table Monster { 4 | name: string; 5 | hp: int; 6 | } 7 | -------------------------------------------------------------------------------- /bk/crates/cats/mathematics/examples/trigonometry/main.rs: -------------------------------------------------------------------------------- 1 | mod latitude_longitude; 2 | mod side_length; 3 | mod tan_sin_cos; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/text_processing/examples/other_strings/main.rs: -------------------------------------------------------------------------------- 1 | mod bstr; 2 | mod cstring; 3 | mod osstring; 4 | mod ustr; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_client/examples/download/main.rs: -------------------------------------------------------------------------------- 1 | mod download; 2 | mod partial; 3 | mod post_file; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_server/examples/loco/config/app.yaml: -------------------------------------------------------------------------------- 1 | database: 2 | url: postgresql://user:password@host:port/database_name 3 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/flutter/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "flutter")] 2 | mod flutter_rust_bridge; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /later/crates/cats/game_engines/examples/game_engines/main.rs: -------------------------------------------------------------------------------- 1 | mod bevy; 2 | mod fyrox; 3 | mod ggez; 4 | mod macroquad; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /later/crates/cats/gui/assets/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/later/crates/cats/gui/assets/Roboto-Regular.ttf -------------------------------------------------------------------------------- /later/crates/cats/gui/examples/web/main.rs: -------------------------------------------------------------------------------- 1 | mod dioxus; 2 | mod tauri; 3 | 4 | fn main() { 5 | dioxus::main(); 6 | tauri::main(); 7 | } 8 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_graphics_api/examples/gpu_abstraction_layers/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "wgpu")] 2 | mod wgpu; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_protocols/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~aerospace_protocols~aerospace_protocols]: aerospace_protocols.md#aerospace_protocols 2 | -------------------------------------------------------------------------------- /bk/.env: -------------------------------------------------------------------------------- 1 | # Base url of the website where the book will be deployed 2 | # (used to build sitemaps) 3 | export BASE_URL=http://john-cd.com/rust_howto/ 4 | -------------------------------------------------------------------------------- /bk/crates/cats/algorithms/examples/hashing/main.rs: -------------------------------------------------------------------------------- 1 | mod blake3; 2 | mod md5; 3 | mod sha1; 4 | mod sha2; 5 | mod sha_digest; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/crates/cats/asynchronous/examples/futures/main.rs: -------------------------------------------------------------------------------- 1 | mod futures1; 2 | mod futures2; 3 | mod futures3; 4 | mod futures_util; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/command_line_interface/examples/user_interaction/main.rs: -------------------------------------------------------------------------------- 1 | mod indicatif; 2 | mod indicatif2; 3 | mod inquire; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/crossbeam/main.rs: -------------------------------------------------------------------------------- 1 | mod crossbeam_complex; 2 | mod crossbeam_spawn; 3 | mod crossbeam_spsc; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/cryptography/examples/sign/main.rs: -------------------------------------------------------------------------------- 1 | mod dsa; 2 | mod ecdsa; 3 | mod ed25519; 4 | mod ed25519_dalek; 5 | mod hmac; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/connection_pool/main.rs: -------------------------------------------------------------------------------- 1 | mod deadpool; 2 | 3 | #[cfg(feature = "postgres")] 4 | mod deadpool2; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/query_builders_orms/migrations/2024-12-29-173417_create_users/down.sql: -------------------------------------------------------------------------------- 1 | -- This file should undo anything in `up.sql` 2 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/examples/programming_languages/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "sqlparser")] 2 | mod sqlparser; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/rust_patterns/examples/creational_patterns/main.rs: -------------------------------------------------------------------------------- 1 | mod abstract_factory; 2 | mod factory; 3 | mod singleton; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /later/crates/cats/wasm/examples/wasm_standalone_runtimes/main.rs: -------------------------------------------------------------------------------- 1 | mod wasmer; 2 | #[cfg(feature = "wasmtime")] 3 | mod wasmtime; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_simulation/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~aerospace_simulation~aerospace_simulation]: aerospace_simulation.md#aerospace_simulation 2 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/templates/chapter/refs.incl.md.template: -------------------------------------------------------------------------------- 1 | [ex~{{recipe}}]: {{ subchapter | underscore }}.md#{{ recipe.title | slugify }} 2 | -------------------------------------------------------------------------------- /bk/crates/cats/command_line_interface/examples/arguments/main.rs: -------------------------------------------------------------------------------- 1 | mod clap; 2 | mod clap_basic; 3 | mod lexopt; 4 | mod pico_args; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/explicit_threads/main.rs: -------------------------------------------------------------------------------- 1 | mod multithreading_scoped_threads; 2 | mod multithreading_spawn_join; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/kv/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "lmdb")] 2 | mod heed; 3 | #[cfg(feature = "rocksdb")] 4 | mod rocksdb; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/binary_encoders/foo.capnp: -------------------------------------------------------------------------------- 1 | @0xb729500ee8baacd8; 2 | struct MyStruct { 3 | name @0 : Text; 4 | value @1 : Int32; 5 | } 6 | -------------------------------------------------------------------------------- /bk/crates/cats/mathematics/examples/complex_numbers/main.rs: -------------------------------------------------------------------------------- 1 | mod add_complex; 2 | mod create_complex; 3 | mod mathematical_functions; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/src/crate-selection/refs.incl.md: -------------------------------------------------------------------------------- 1 | [p~crates-alphabetical]: ../indices/crates_alphabetical.md 2 | [p~crates-categories]: ../indices/crates_by_category.md 3 | -------------------------------------------------------------------------------- /later/crates/cats/gui/examples/ui_layout/main.rs: -------------------------------------------------------------------------------- 1 | mod morphorm; 2 | mod taffy; 3 | 4 | fn main() { 5 | morphorm::main(); 6 | taffy::main(); 7 | } 8 | -------------------------------------------------------------------------------- /bk/crates/cats/command_line_interface/examples/ansi_term/main.rs: -------------------------------------------------------------------------------- 1 | mod ansi_term_basic; 2 | mod ansi_term_basic1; 3 | mod ansi_term_basic2; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/nosql/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "mongodb")] 2 | mod mongodb; 3 | #[cfg(feature = "redis")] 4 | mod redis; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/serde/main.rs: -------------------------------------------------------------------------------- 1 | mod json; 2 | mod monostate; 3 | mod serde; 4 | mod serde_ignored; 5 | mod serde_json; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/crates/cats/text_processing/examples/string_search/main.rs: -------------------------------------------------------------------------------- 1 | mod aho_corasick; 2 | mod fuzzy_matcher; 3 | mod memchr; 4 | mod strsim; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/language/examples/trait_objects/main.rs: -------------------------------------------------------------------------------- 1 | mod dyn_autotraits; 2 | mod dyn_compat; 3 | mod dyn_supertraits; 4 | mod trait_objects; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/drafts/overflow.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [Handle Overflows][ex~language~overflow-handling] | 4 | | [Handle Overflows][ex~drafts~overflow-handling] | | | 5 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_protocols/examples/aerospace_protocols/main.rs: -------------------------------------------------------------------------------- 1 | mod aero_protocols; 2 | 3 | fn main() { 4 | // aero_protocols::main(); 5 | } 6 | -------------------------------------------------------------------------------- /later/src/categories/rendering_engine/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~rendering_engine~render]: rendering_engines.md#render 2 | [p~crates]: ../../crate_selection/index.md 3 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/concurrent_data_structures/main.rs: -------------------------------------------------------------------------------- 1 | mod crossbeam_queue; 2 | mod dashmap; 3 | mod flurry; 4 | mod papaya; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/config/examples/configuration/main.rs: -------------------------------------------------------------------------------- 1 | mod config_hierarchical; 2 | mod config_singleton; 3 | mod config_testing; 4 | mod confy; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/examples/xml/main.rs: -------------------------------------------------------------------------------- 1 | mod quick_xml; 2 | mod roxmltree; 3 | mod xml; 4 | mod xml5ever; 5 | mod xmlparser; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/crates/cats/rust_patterns/examples/functional_programming/main.rs: -------------------------------------------------------------------------------- 1 | mod either; 2 | mod frunk; 3 | mod im; 4 | mod itertools; 5 | mod rpds; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming/examples/url/main.rs: -------------------------------------------------------------------------------- 1 | mod base; 2 | mod fragment; 3 | mod new; 4 | mod origin; 5 | mod origin1; 6 | mod parse; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/crates/language/examples/control_flow/main.rs: -------------------------------------------------------------------------------- 1 | mod for1; 2 | mod if_else; 3 | mod labeled_block_expression; 4 | mod loop1; 5 | mod while1; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/src/appendices/contributing/publication_to_crates.io.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Steps to Publish to `crates.io`][ex~contributing~publication-steps] | | | 4 | -------------------------------------------------------------------------------- /bk/src/language/constants_and_statics.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Declare Constants][ex~language~constants] | 4 | | [Declare Statics][ex~language~statics] | 5 | -------------------------------------------------------------------------------- /bk/src/links/meetings.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [Major Annual Conferences and Events][ex~links~conferences] | 4 | | [Prominent Local Meetups][ex~links~meetups] | 5 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_simulation/examples/aerospace_simulation/main.rs: -------------------------------------------------------------------------------- 1 | mod aero_simulation; 2 | 3 | fn main() { 4 | // aero_simulation::main(); 5 | } 6 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_space_protocols/examples/space_protocols/main.rs: -------------------------------------------------------------------------------- 1 | mod space_protocols; 2 | 3 | fn main() { 4 | // space_protocols::main(); 5 | } 6 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/lua/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "lua")] 2 | mod mlua; 3 | #[cfg(feature = "lua")] 4 | mod mlua2; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /later/crates/cats/gui/assets/Roboto_Condensed-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/later/crates/cats/gui/assets/Roboto_Condensed-Regular.ttf -------------------------------------------------------------------------------- /later/crates/cats/gui/examples/immediate_mode_gui/main.rs: -------------------------------------------------------------------------------- 1 | mod egui; 2 | 3 | fn main() -> Result<(), eframe::Error> { 4 | egui::main()?; 5 | Ok(()) 6 | } 7 | -------------------------------------------------------------------------------- /later/crates/cats/gui/examples/text_layout/main.rs: -------------------------------------------------------------------------------- 1 | mod cosmic_text; 2 | mod parley; 3 | 4 | fn main() { 5 | cosmic_text::main(); 6 | parley::main(); 7 | } 8 | -------------------------------------------------------------------------------- /tools/clean/README.md: -------------------------------------------------------------------------------- 1 | # clean 2 | 3 | A very simnple tool to clean `temp` folders before and after testing. 4 | Keeps any `.gitkeep` stub file in these folders. 5 | -------------------------------------------------------------------------------- /xmpl/README.md: -------------------------------------------------------------------------------- 1 | # Additional Examples 2 | 3 | This workspace contains additional examples that are linked from but not embedded into the book, due to their length. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/examples/hashmap/main.rs: -------------------------------------------------------------------------------- 1 | mod custom_hash_function; 2 | mod custom_type_as_key; 3 | mod hashmap; 4 | mod hashset; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_debugging/examples/other/main.rs: -------------------------------------------------------------------------------- 1 | mod open_observe; 2 | mod open_telemetry; 3 | mod slog; 4 | mod type_name_of_val; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/language/examples/data_types/main.rs: -------------------------------------------------------------------------------- 1 | mod compound_data_types; 2 | mod scalar_data_types; 3 | mod string_data_types; 4 | mod unit_never; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/language/examples/generics/main.rs: -------------------------------------------------------------------------------- 1 | mod const_generics; 2 | mod const_generics2; 3 | mod generic_lifetime; 4 | mod generic_type_parameter; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/drafts/categories/parsing/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~parsing~nom]: parsing.md#nom 2 | [ex~parsing~pest]: parsing.md#pest 3 | [ex~parsing~tree-sitter]: parsing.md#tree-sitter 4 | -------------------------------------------------------------------------------- /bk/src/code-organization/dependencies.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Use Items from External Crates (Dependencies) in your Code][ex~code-organization~dependencies] | 4 | -------------------------------------------------------------------------------- /bk/src/links/rust_companies_and_jobs.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Companies that Use or Contribute to Rust][ex~links~companies] | 4 | | [Rust Jobs][ex~links~jobs] | 5 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/node/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "node")] 2 | mod napi; 3 | #[cfg(feature = "node")] 4 | mod neon; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/ruby/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "ruby")] 2 | mod magnus; 3 | #[cfg(feature = "ruby")] 4 | mod rutie; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /later/crates/other/examples/architecture/main.rs: -------------------------------------------------------------------------------- 1 | mod cqrs; 2 | mod di; 3 | mod layered_architecture; 4 | mod repository; 5 | mod state_machine; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/string_encoding/main.rs: -------------------------------------------------------------------------------- 1 | mod base64; 2 | mod hex; 3 | mod percent_encode; 4 | mod percent_encoding; 5 | mod url_encode; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/crates/cats/memory_management/examples/lazy_initialization/main.rs: -------------------------------------------------------------------------------- 1 | mod lazy_constant; 2 | mod lazy_static; 3 | mod once_cell; 4 | mod once_cell2; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/box/main.rs: -------------------------------------------------------------------------------- 1 | mod box_basics; 2 | mod box_deref; 3 | mod box_dst; 4 | mod box_recursive; 5 | mod box_trait_objects; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /later/crates/cats/gui/assets/Roboto_SemiCondensed-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-cd/rust_howto/HEAD/later/crates/cats/gui/assets/Roboto_SemiCondensed-Regular.ttf -------------------------------------------------------------------------------- /later/src/categories/rendering_data-formats/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~rendering_data-formats~data-format]: data_formats.md#data-format 2 | [p~crates]: ../../crate_selection/index.md 3 | -------------------------------------------------------------------------------- /later/src/other/gpu/gpu.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |--------|--------| 3 | | [`rust-gpu`][ex~gpu~rust-gpu] | [![rust_gpu~repo][rust_gpu~repo~badge]][rust_gpu~repo] | 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools/examples/documentation/main.rs: -------------------------------------------------------------------------------- 1 | mod rustdoc; 2 | mod rustdoc2; 3 | mod rustdoc3; 4 | // rustdoc4 is in the `examples` folder. 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/mathematics/examples/stats/main.rs: -------------------------------------------------------------------------------- 1 | mod central_tendency; 2 | mod central_tendency1; 3 | mod central_tendency2; 4 | mod standard_deviation; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_client/examples/apis/main.rs: -------------------------------------------------------------------------------- 1 | mod paginated; 2 | mod rate_limited; 3 | mod rest_get; 4 | mod rest_head; 5 | mod rest_post; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_server/examples/loco/migrations/20231027120000_create_users/down.sql: -------------------------------------------------------------------------------- 1 | -- migrations/20231027120000_create_users/down.sql 2 | DROP TABLE users; 3 | -------------------------------------------------------------------------------- /bk/crates/code_organization/examples/use/main.rs: -------------------------------------------------------------------------------- 1 | mod pub_use; 2 | mod use1; 3 | mod use2; 4 | mod use3; 5 | mod use_external_crate; 6 | mod use_shortcuts; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/src/links/rust_cheatsheets.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Cheatsheets][ex~links~cheatsheets] | 4 | | [Comparison to Other Languages][ex~links~comparison-to-other-languages] | 5 | -------------------------------------------------------------------------------- /later/crates/other/examples/topic.rs: -------------------------------------------------------------------------------- 1 | mod cloud; 2 | mod cross_platform; 3 | mod data_processing; 4 | mod gpu; 5 | mod scripting; 6 | mod written_in_rust; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /later/src/categories/embedded/flash.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | | | [![cat~embedded][cat~embedded~badge]][cat~embedded] | 4 | -------------------------------------------------------------------------------- /later/src/categories/embedded/pacs.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | | | [![cat~embedded][cat~embedded~badge]][cat~embedded] | 4 | -------------------------------------------------------------------------------- /later/src/categories/embedded/rtos.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | | | [![cat~embedded][cat~embedded~badge]][cat~embedded] | 4 | -------------------------------------------------------------------------------- /xmpl/cancelable/README.md: -------------------------------------------------------------------------------- 1 | # Cancelable Task Example 2 | 3 | This example demonstrates the use of channels to communicate with, schedule, and cancel tasks on a background thread. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/cassandra/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "cassandra")] 2 | mod cassandra_protocol; 3 | #[cfg(feature = "cassandra")] 4 | mod cdrs_tokio; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/database_implementations/examples/databases/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "sled")] 2 | mod sled; 3 | #[cfg(feature = "surrealdb")] 4 | mod surrealdb; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_profiling/src/main.rs: -------------------------------------------------------------------------------- 1 | mod memory_usage_analysis { 2 | pub mod dhat; 3 | } 4 | 5 | fn main() { 6 | memory_usage_analysis::dhat::main(); 7 | } 8 | -------------------------------------------------------------------------------- /bk/drafts/categories/os_windows-apis/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~os_windows-apis~winapi]: windows.md#winapi 2 | [ex~os_windows-apis~windows]: windows.md#windows 3 | [p~gui]: # "../gui/index.md" 4 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/lua/script.lua: -------------------------------------------------------------------------------- 1 | require("my_module") 2 | 3 | print(hello()) -- Output: Hello from Rust! 4 | 5 | print(my_module.value) -- Output: 42 6 | -------------------------------------------------------------------------------- /later/src/categories/embedded/sensors.inlc.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | | | [![cat~embedded][cat~embedded~badge]][cat~embedded] | 4 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/tool_lib/src/model/book/exampleindex.rs: -------------------------------------------------------------------------------- 1 | use serde::Serialize; 2 | 3 | // use super::*; 4 | 5 | #[derive(Serialize, Debug)] 6 | pub struct ExampleIndex; 7 | -------------------------------------------------------------------------------- /bk/crates/cats/asynchronous/examples/call_async_from_blocking/main.rs: -------------------------------------------------------------------------------- 1 | mod call_async_from_blocking_futures_executor; 2 | mod call_async_from_blocking_tokio_runtime; 3 | 4 | fn main() {} 5 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/binary_encoders/person.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package example; 4 | 5 | message Person { 6 | string name = 1; 7 | int32 age = 2; 8 | } 9 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/node/index.js: -------------------------------------------------------------------------------- 1 | const { hello } = require('../target/debug/my-neon-example'); 2 | 3 | console.log(hello()); // Output: "hello from neon!" 4 | -------------------------------------------------------------------------------- /later/crates/cats/gui/examples/clipboard/main.rs: -------------------------------------------------------------------------------- 1 | mod arboard; 2 | 3 | fn main() { 4 | // [review](https://github.com/john-cd/rust_howto/issues/1048). 5 | arboard::main(); 6 | } 7 | -------------------------------------------------------------------------------- /later/src/categories/simulation/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~simulation~rapier]: physics_engines.md#rapier 2 | [ex~simulation~simul]: simulation.md#simul 3 | [p~asynchronous]: ../asynchronous/index.md 4 | -------------------------------------------------------------------------------- /typ/typst/template.typ: -------------------------------------------------------------------------------- 1 | #let template = doc => { 2 | set page(header: "My super document") 3 | doc 4 | } 5 | 6 | #let infoblock = block.with(stroke: blue, fill: blue.lighten(70%)) 7 | -------------------------------------------------------------------------------- /xmpl/cancelable/src/lib.rs: -------------------------------------------------------------------------------- 1 | mod cancel; 2 | mod errors; 3 | mod task; 4 | mod worker; 5 | 6 | pub use cancel::*; 7 | pub use errors::*; 8 | pub use task::*; 9 | pub use worker::*; 10 | -------------------------------------------------------------------------------- /bk/crates/cats/date_and_time/examples/chrono/main.rs: -------------------------------------------------------------------------------- 1 | mod checked; 2 | mod current; 3 | mod format; 4 | mod parse_string_into_datetime; 5 | mod timestamp; 6 | mod timezone; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools/NOTES.md: -------------------------------------------------------------------------------- 1 | # NOTES 2 | 3 | A few tests use attributes that must be applied at the crate level. 4 | As such, they must be placed at the root of the `tests` folder. 5 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools/examples/semver/main.rs: -------------------------------------------------------------------------------- 1 | mod semver_command; 2 | mod semver_complex; 3 | mod semver_latest; 4 | mod semver_parse; 5 | mod semver_prerelease; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/c/example.c: -------------------------------------------------------------------------------- 1 | // ANCHOR: example 2 | #include "example.h" 3 | 4 | int add(int a, int b) { 5 | return a + b; 6 | } 7 | // ANCHOR_END: example 8 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/cpp/hello.h: -------------------------------------------------------------------------------- 1 | // ANCHOR: example 2 | #pragma once 3 | #include 4 | 5 | void hello(const std::string& name); 6 | // ANCHOR_END: example 7 | -------------------------------------------------------------------------------- /later/crates/other/examples/data_processing/mod.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "arrow")] 2 | mod arrow; 3 | #[cfg(feature = "datafusion")] 4 | mod datafusion; 5 | #[cfg(feature = "polars")] 6 | mod polars; 7 | -------------------------------------------------------------------------------- /later/src/categories/internationalization/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~internationalization~internationalization]: internationalization.md#internationalization 2 | [p~crates]: ../../crate_selection/index.md 3 | -------------------------------------------------------------------------------- /later/src/other/cloud/_fragment.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | 2 | |--------| 3 | | [Use the `dapr` Distributed Runtime][ex~cloud~dapr] | 4 | | [cloud serverless computing][ex~cloud~serverless-computing] | 5 | -------------------------------------------------------------------------------- /bk/crates/cats/database_implementations/examples/search_engines/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "meilisearch")] 2 | mod meilisearch; 3 | #[cfg(feature = "tantivy")] 4 | mod tantivy; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/NOTES.md: -------------------------------------------------------------------------------- 1 | # NOTES 2 | 3 | A few tests use attributes that must be applied at the crate level. 4 | As such, they must be placed at the root of the `tests` folder. 5 | -------------------------------------------------------------------------------- /bk/src/links/videos_and_podcasts.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [YouTube Channels, Videos][ex~links~videos] | 4 | | [Rust Podcasts][ex~links~podcasts] | 5 | | [Older Podcasts][ex~links~older-podcasts] | 6 | -------------------------------------------------------------------------------- /tools/rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2024" 2 | newline_style = "Unix" # Default: "Auto" 3 | #max_width = 80 # Default: 100 4 | imports_granularity = "Item" 5 | group_imports = "StdExternalCrate" 6 | -------------------------------------------------------------------------------- /bk/crates/cats/text_processing/examples/regex/main.rs: -------------------------------------------------------------------------------- 1 | mod email; 2 | mod fancy_regex; 3 | mod filter_log; 4 | mod hashtags; 5 | mod phone; 6 | mod regex; 7 | mod replace; 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /later/src/categories/accessibility/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~accessibility~accesskit]: screen_readers.md#accesskit 2 | [p~accessibility]: index.md 3 | [p~cross-platform]: # "../../other/cross-platform/index.md" 4 | -------------------------------------------------------------------------------- /later/src/other/cloud/rust_native_cloud_development.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Links | 2 | |--------|--------| 3 | | [Deploy Rust Code on `shuttle.dev`][ex~cloud~shuttle] | [docs.shuttle.rs][docs-shuttle-rs]↗ | 4 | -------------------------------------------------------------------------------- /playground/rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2024" 2 | newline_style = "Unix" # Default: "Auto" 3 | #max_width = 80 # Default: 100 4 | imports_granularity = "Item" 5 | group_imports = "StdExternalCrate" 6 | -------------------------------------------------------------------------------- /bk/crates/language/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/src/language` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/language/examples/closures/main.rs: -------------------------------------------------------------------------------- 1 | mod closures; 2 | mod closures_as_input_parameters; 3 | mod closures_capture; 4 | mod closures_move; 5 | mod closures_with_type_annotations; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/src/language/variables.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Immutability and Mutability][ex~language~immutability] | 4 | | [Shadowing][ex~language~shadowing] | 5 | | [Destructuring][ex~language~destructuring] | 6 | -------------------------------------------------------------------------------- /later/crates/other/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/other` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/src/categories/aerospace/aerospace.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Aerospace][ex~aerospace~aero] | {{!crate }} | [![cat~aerospace][cat~aerospace~badge]][cat~aerospace] | 4 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_space-protocols/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~aerospace_space-protocols~space-protocols]: space_protocols.md#space-protocols 2 | [p~protocols]: ../aerospace_protocols/aerospace_protocols.md 3 | -------------------------------------------------------------------------------- /later/src/categories/value-formatting/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~value-formatting~itoa]: number_formatting.md#itoa 2 | [ex~value-formatting~ryu]: number_formatting.md#ryu 3 | [p~crates]: ../../crate_selection/index.md 4 | -------------------------------------------------------------------------------- /later/src/other/devops/cd_ci.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | 2 | |--------| 3 | | [Continuous Deployment / Continuous Integration][ex~devops~cdci] | 4 | | [Workflow Example (GitHub Actions)][ex~devops~github-actions] | 5 | -------------------------------------------------------------------------------- /bk/crates/cats/network_programming/examples/reverse_proxy/main.rs: -------------------------------------------------------------------------------- 1 | mod ngrok; 2 | // Linux is Pingora's tier 1 environment and main focus. 3 | #[cfg(target_family = "unix")] 4 | mod pingora; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/src/standard-library/default_values.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Define Default Values for a Struct with `Default`][ex~standard-library~default] | [![std][c~std~docs~badge]][c~std~docs] | 4 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/c/example.h: -------------------------------------------------------------------------------- 1 | // ANCHOR example 2 | #ifndef EXAMPLE_H 3 | #define EXAMPLE_H 4 | 5 | int add(int a, int b); 6 | 7 | #endif // EXAMPLE_H 8 | // ANCHOR_END: example 9 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/message_passing/main.rs: -------------------------------------------------------------------------------- 1 | mod flume; 2 | mod message_passing_crossbeam_channel; 3 | mod message_passing_crossbeam_channel_after_tick; 4 | mod message_passing_mpsc; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/query_builders_orms/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "diesel")] 2 | mod diesel1; 3 | #[cfg(feature = "sea_orm")] 4 | mod sea_orm; 5 | #[cfg(feature = "sqlx")] 6 | mod sqlx; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/csv/main.rs: -------------------------------------------------------------------------------- 1 | mod delimiter; 2 | mod filter; 3 | mod invalid; 4 | mod read; 5 | mod read1; 6 | mod serde_serialize; 7 | mod serialize; 8 | mod transform; 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /bk/drafts/categories/caching/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~caching~cached]: in_memory_cache.md#cached 2 | [ex~caching~lru-cache]: in_memory_cache.md#lru-cache 3 | [ex~caching~moka]: in_memory_cache.md#moka 4 | [p~caching]: index.md 5 | -------------------------------------------------------------------------------- /bk/drafts/categories/hardware-support/peripherals.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | | | [![cat~hardware-support][cat~hardware-support~badge]][cat~hardware-support] | 4 | -------------------------------------------------------------------------------- /bk/src/standard-library/memory_address_pinning.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Give Data a Stable Memory Address with `Pin`][ex~standard-library~pinned-data] | [![std][c~std~docs~badge]][c~std~docs] | 4 | -------------------------------------------------------------------------------- /bk/src/standard-library/resource_cleanup.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Release External Resources by Implementing the `Drop` Trait][ex~standard-library~drop] | [![std][c~std~docs~badge]][c~std~docs] | 4 | -------------------------------------------------------------------------------- /later/src/categories/visualization/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~visualization~graph-data]: visualization.md#graph-data 2 | [ex~visualization~plotters]: visualization.md#plotters 3 | [p~wasm]: ../../../later/categories/wasm/index.md 4 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | First off, thanks for taking the time to contribute! 4 | 5 | The book includes a detailed [contributing] section. 6 | 7 | [contributing]: https://john-cd.com/rust_howto/contributing 8 | -------------------------------------------------------------------------------- /bk/crates/cats/os/examples/external_commands/main.rs: -------------------------------------------------------------------------------- 1 | mod continuous; 2 | mod error_file; 3 | mod piped; 4 | mod process_output; 5 | mod read_env_variable; 6 | mod send_input; 7 | mod which; 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /bk/crates/language/examples/iterators/main.rs: -------------------------------------------------------------------------------- 1 | mod consume_intoiterator; 2 | mod implement_intoiterator; 3 | mod iterator_adapters; 4 | mod iterators; 5 | mod return_iterator; 6 | mod simple_iterators; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/crates/language/examples/lifetimes/main.rs: -------------------------------------------------------------------------------- 1 | mod lifetime_parameter_function; 2 | mod lifetime_parameter_struct; 3 | mod lifetime_parameters; 4 | mod self_referential_struct; 5 | mod static_lifetime; 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /bk/crates/standard_library/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/src/standard_library` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/ops/main.rs: -------------------------------------------------------------------------------- 1 | // LATER: fn_traits is not available on the stable channel at this point 2 | // #![feature(unboxed_closures, fn_traits)] 3 | // mod callable; 4 | mod ops; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /later/src/categories/gui/file_dialogs.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`rfd`][ex~gui~rfd] | [![rfd][c~rfd~docs~badge]][c~rfd~docs] | [![cat~gui][cat~gui~badge]][cat~gui] | 4 | -------------------------------------------------------------------------------- /later/src/other/data-processing/dataframes.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |--------|--------| 3 | | [Manipulate Data in a Tabular Format][ex~data-processing~dataframes] | [![polars][c~polars~docs~badge]][c~polars~docs] | 4 | -------------------------------------------------------------------------------- /bin/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | This folder stores the tool executables used to generate parts of the book or used by the book building process. 4 | Generate these executables using `just tools release` or `just scrub release`. 5 | -------------------------------------------------------------------------------- /bk/crates/cats/asynchronous/examples/async_channels/main.rs: -------------------------------------------------------------------------------- 1 | mod async_channel; 2 | mod async_channels_mpsc; 3 | mod async_channels_oneshot; 4 | mod async_channels_oneshot2; 5 | mod kanal; 6 | mod postage; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/crates/cats/email/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/os/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/algorithms/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/asynchronous/examples/call_blocking_from_async/main.rs: -------------------------------------------------------------------------------- 1 | mod call_blocking_from_async_rayon; 2 | mod call_blocking_from_async_spawn_blocking; 3 | mod call_blocking_from_async_spawn_dedicated_thread; 4 | 5 | fn main() {} 6 | -------------------------------------------------------------------------------- /bk/crates/cats/caching/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/config/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/database/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/parsing/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/cow/main.rs: -------------------------------------------------------------------------------- 1 | mod cow_alternatives; 2 | mod cow_as_function_param; 3 | mod cow_to_borrowed_owned; 4 | mod function_returning_cow; 5 | mod into_cow; 6 | mod modify_cow_in_place; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/drafts/categories/template-engine/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~template-engine~create-html-from-template]: tera.md#create-html-from-template 2 | [ex~template-engine~tinytemplate]: tinytemplate.md#tinytemplate 3 | [p~template-engine]: index.md 4 | -------------------------------------------------------------------------------- /later/crates/cats/finance/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/games/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/gui/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/no_std/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/science/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/wasm/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/src/categories/emulators/emulators.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Emulators][ex~emulators~emulators] | {{!crate }} | [![cat~emulators][cat~emulators~badge]][cat~emulators] | 4 | -------------------------------------------------------------------------------- /later/src/categories/game-development/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~game-development~game-development]: game_development.md#game-development 2 | [ex~game-development~glam]: game_development.md#glam 3 | [p~crates]: ../../crate_selection/index.md 4 | -------------------------------------------------------------------------------- /later/src/categories/gui/immediate_mode_gui.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`egui`][ex~gui~egui] | [![egui][c~egui~docs~badge]][c~egui~docs] | [![cat~gui][cat~gui~badge]][cat~gui] | 4 | -------------------------------------------------------------------------------- /later/src/categories/no-std/no_std.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Crates Working Without `std`][ex~no-std~no-std] | {{!crate }} | [![cat~no-std][cat~no-std~badge]][cat~no-std] | 4 | -------------------------------------------------------------------------------- /later/src/categories/simulation/simulation.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Simulate][ex~simulation~simul] | {{!crate }} | [![cat~simulation][cat~simulation~badge]][cat~simulation] | 4 | -------------------------------------------------------------------------------- /bk/crates/cats/asynchronous/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/authentication/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/compression/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/shared_state/main.rs: -------------------------------------------------------------------------------- 1 | mod arc_make_mut; 2 | mod global_mut_state; 3 | mod send_sync; 4 | mod shared_state_mutex; 5 | mod shared_state_parking_lot; 6 | mod shared_state_parking_lot2; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/crates/cats/cryptography/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/data_structures/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/oracle/main.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "oracle")] 2 | mod diesel_oci; 3 | #[cfg(feature = "oracle")] 4 | mod oracle; 5 | #[cfg(all(target_os = "linux", feature = "oracle"))] 6 | mod sibyl; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/crates/cats/date_and_time/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/graphics/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/es/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/mathematics/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/os_unix_apis/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/os_windows_apis/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/rust_patterns/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/template_engine/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/text_processing/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/code_organization/README.md: -------------------------------------------------------------------------------- 1 | # Code Organization 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/code_organization` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/standard_library/examples/option/main.rs: -------------------------------------------------------------------------------- 1 | mod option_combinators; 2 | mod option_match; 3 | mod option_question_mark; 4 | mod option_ref; 5 | mod option_unwrap; 6 | mod options1; 7 | mod options2; 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /bk/src/appendices/contributing/mdBook_pre-processors.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [Preprocessors Used in the Book][ex~contributing~preprocessors] | 4 | | [`mdbook-scrub`, a Custom Preprocessor for `mdbook`][ex~contributing~mdbook-scrub] | 5 | -------------------------------------------------------------------------------- /later/crates/cats/api_bindings/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/compilers/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/embedded/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/emulators/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/game_engines/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/localization/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/science_geo/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/simulation/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/src/other/cross-platform/crux.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Links | 2 | |--------|--------| 3 | | [Develop Across Platforms with `crux`][ex~cross-platform~develop-across-platforms] | [![crux_core][c~crux_core~docs~badge]][c~crux_core~docs] | 4 | -------------------------------------------------------------------------------- /later/src/other/cross-platform/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~cross-platform~develop-across-platforms]: crux.md#develop-across-platforms 2 | [p~architecture]: ../architecture/software_architecture_process.md 3 | [p~language]: ../../language/index.md 4 | -------------------------------------------------------------------------------- /bk/crates/cats/algorithms/examples/rand/main.rs: -------------------------------------------------------------------------------- 1 | mod fastrand; 2 | mod rand1; 3 | mod rand_alphanumeric; 4 | mod rand_custom; 5 | mod rand_distr; 6 | mod rand_password; 7 | mod rand_range; 8 | mod rand_range1; 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_build_utils/examples/build_time_tooling/main.rs: -------------------------------------------------------------------------------- 1 | mod cc_bundled_cpp; 2 | mod cc_bundled_cpp1; 3 | mod cc_bundled_static; 4 | mod cc_bundled_static1; 5 | mod cc_defines; 6 | mod cc_defines1; 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_testing/examples/testing/snapshots/testing__insta__format_user_snapshot.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: cats/development_tools_testing/examples/testing/insta.rs 3 | expression: formatted 4 | --- 5 | Name: Alice, Age: 30 6 | -------------------------------------------------------------------------------- /bk/crates/cats/hardware_support/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/network_programming/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/computer_vision/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/game_development/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/gui/examples/window_creation/main.rs: -------------------------------------------------------------------------------- 1 | mod baseview; 2 | mod tao; 3 | mod winit; 4 | 5 | fn main() -> anyhow::Result<()> { 6 | baseview::main()?; 7 | tao::main(); 8 | winit::main()?; 9 | Ok(()) 10 | } 11 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_audio/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_images/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_video/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/no_std_no_alloc/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/os_freebsd_apis/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/os_linux_apis/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/os_macos_apis/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_engine/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/science_robotics/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/value_formatting/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/virtualization/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/visualization/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_drones/drones.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Drones][ex~aerospace_drones~drones] | {{!crate }} | [![cat~aerospace::drones][cat~aerospace::drones~badge]][cat~aerospace::drones] | 4 | -------------------------------------------------------------------------------- /later/src/categories/gui/clipboard.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`arboard`][ex~gui~arboard] | [![arboard][c~arboard~docs~badge]][c~arboard~docs] | [![cat~gui][cat~gui~badge]][cat~gui] | 4 | -------------------------------------------------------------------------------- /later/src/categories/multimedia/multimedia.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Multimedia][ex~multimedia~multimedia] | {{!crate }} | [![cat~multimedia][cat~multimedia~badge]][cat~multimedia] | 4 | -------------------------------------------------------------------------------- /later/src/categories/science_robotics/hardware_integration.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | | {{!crate }} | [![cat~science::robotics][cat~science::robotics~badge]][cat~science::robotics] | 4 | -------------------------------------------------------------------------------- /later/src/categories/science_robotics/perception_and_sensors.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | | {{!crate }} | [![cat~science::robotics][cat~science::robotics~badge]][cat~science::robotics] | 4 | -------------------------------------------------------------------------------- /later/src/other/data-processing/csv.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |--------|--------| 3 | | [Manipulate CSV Files from the Command Line][ex~data-processing~manipulate-csv-files-from-the-command-line] | [![xsv][c~xsv~docs~badge]][c~xsv~docs] | 4 | -------------------------------------------------------------------------------- /bk/crates/cats/command_line_interface/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/database_implementations/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_testing/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/parser_implementations/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/email/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~email~build_email_messages]: send_emails.md#build_email_messages 2 | [ex~email~lettre]: send_emails.md#lettre 3 | [ex~email~mailparse]: email_parsing.md#mailparse 4 | [ex~email~mime]: email_parsing.md#mime 5 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_simulation/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/external_ffi_bindings/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/internationalization/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_encoding/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_data_formats/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_graphics_api/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/science_neuroscience/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/src/categories/finance/quant.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [`RustQuant`][ex~finance~rustquant] | [![rustquant][c~RustQuant~docs~badge]][c~RustQuant~docs] | [![cat~finance][cat~finance~badge]][cat~finance] | 4 | -------------------------------------------------------------------------------- /tools/mdbook-scrub/test_book/src/included.txt: -------------------------------------------------------------------------------- 1 | THIS SHOULD BE SEEN 2 | 3 | [The reference definition is in the parent file this file is included into][ref] 4 | 5 | [The reference definition is another file that is included in the parent file][ref2] 6 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `src` and `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_debugging/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_client/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_server/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_server/examples/loco/migrations/20231027120000_create_users/up.sql: -------------------------------------------------------------------------------- 1 | -- migrations/20231027120000_create_users/up.sql 2 | CREATE TABLE users ( 3 | id BIGSERIAL PRIMARY KEY, 4 | name TEXT NOT NULL 5 | ); 6 | 7 | 8 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_space_protocols/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/web_programming_websocket/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_cargo_plugins/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/language/examples/functions/main.rs: -------------------------------------------------------------------------------- 1 | mod diverging_functions; 2 | mod function_pointers; 3 | mod functions; 4 | mod generic_functions; 5 | mod generic_functions2; 6 | mod generic_functions3; 7 | mod return_reference; 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /bk/drafts/categories/os_unix-apis/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~os_unix-apis~nix]: unix.md#nix 2 | [ex~os_unix-apis~rustix]: unix.md#rustix 3 | [p~functions]: ../../language/functions.md 4 | [p~linux]: # "../os_linux-apis/linux.md" 5 | [p~macos]: ../os_macos-apis/macos.md 6 | -------------------------------------------------------------------------------- /bk/src/language/entry_points.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Define the Entry Point of your Application with the Main Function][ex~language~main-function] | 4 | | [Define the Entry Point of your Asynchronous Application][ex~language~async-main-function] | 5 | -------------------------------------------------------------------------------- /later/crates/cats/cryptography_cryptocurrencies/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/src/categories/os_linux-apis/linux.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Bind to Linux APIs][ex~os_linux-apis~linux] | {{!crate }} | [![cat~os::linux-apis][cat~os::linux-apis~badge]][cat~os::linux-apis] | 4 | -------------------------------------------------------------------------------- /later/src/categories/os_macos-apis/macos.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Bind to macOS APIs][ex~os_macos-apis~macos] | {{!crate }} | [![cat~os::macos-apis][cat~os::macos-apis~badge]][cat~os::macos-apis] | 4 | -------------------------------------------------------------------------------- /later/src/categories/wasm/yew.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Create Efficient Web Applications with `yew`][ex~wasm~yew] | [![yew][c~yew~docs~badge]][c~yew~docs] | [![cat~wasm][cat~wasm~badge]][cat~wasm] | 4 | -------------------------------------------------------------------------------- /bk/crates/cats/database/examples/query_builders_orms/migrations/2024-12-29-173417_create_users/up.sql: -------------------------------------------------------------------------------- 1 | -- Your SQL goes here 2 | CREATE TABLE users ( 3 | id INTEGER PRIMARY KEY AUTOINCREMENT, 4 | name TEXT NOT NULL, 5 | email TEXT NOT NULL UNIQUE 6 | ); 7 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_profiling/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `src` and `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/development-tools_debugging/debugging.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | | | [![cat~development-tools::debugging][cat~development-tools::debugging~badge]][cat~development-tools::debugging] | 4 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_unmanned_aerial_vehicles/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/src/categories/embedded/embassy.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`embassy`][ex~embedded~embassy] | [![embassy][c~embassy~docs~badge]][c~embassy~docs] | [![cat~embedded][cat~embedded~badge]][cat~embedded] | 4 | -------------------------------------------------------------------------------- /later/src/categories/localization/localization.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Localize Your App][ex~localization~localization] | {{!crate }} | [![cat~localization][cat~localization~badge]][cat~localization] | 4 | -------------------------------------------------------------------------------- /later/src/categories/multimedia_video/video.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Play Video][ex~multimedia_video~video] | {{!crate }} | [![cat~multimedia::video][cat~multimedia::video~badge]][cat~multimedia::video] | 4 | -------------------------------------------------------------------------------- /bk/crates/cats/filesystem/examples/directory_traversal/main.rs: -------------------------------------------------------------------------------- 1 | mod duplicate_name; 2 | mod find_file; 3 | mod globset; 4 | mod ignore; 5 | mod ignore_case; 6 | mod loops; 7 | mod modified; 8 | mod png; 9 | mod sizes; 10 | mod skip_dot; 11 | 12 | fn main() {} 13 | -------------------------------------------------------------------------------- /bk/crates/code_organization/examples/visibility/main.rs: -------------------------------------------------------------------------------- 1 | mod private_access; 2 | mod pub_keyword; 3 | mod public_access; 4 | mod public_by_default; 5 | mod visibility_external_code; 6 | mod visibility_pub_crate; 7 | mod visibility_scope; 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /bk/drafts/categories/database/mssql.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`tiberius`][ex~database~tiberius] | [![tiberius][c~tiberius~docs~badge]][c~tiberius~docs] | [![cat~database][cat~database~badge]][cat~database] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/os/low_level_system_calls.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Call `libc`, the C Standard Library][ex~os~call-libc] | [![libc][c~libc~docs~badge]][c~libc~docs] | [![cat~os][cat~os~badge]][cat~os] | 4 | -------------------------------------------------------------------------------- /bk/master/README.md: -------------------------------------------------------------------------------- 1 | # Master Lists 2 | 3 | The `master` folder contains the master list of crates used by the book's code examples. 4 | 5 | To update this list, follow the instructions in the [README](../../tools/crate_indices/README.md) of the `crate_indices` tool. 6 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found in `build.rs` and under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_procedural_macro_helpers/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /later/src/categories/science_neuroscience/neuroscience.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Neuro][ex~science_neuroscience~neuro] | {{!crate }} | [![cat~science::neuroscience][cat~science::neuroscience~badge]][cat~science::neuroscience] | 4 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_build_utils/README.md: -------------------------------------------------------------------------------- 1 | # README 2 | 3 | Code examples are found in `build.rs` and under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 4 | -------------------------------------------------------------------------------- /bk/crates/cats/mathematics/examples/linear_algebra/main.rs: -------------------------------------------------------------------------------- 1 | mod add_matrices; 2 | mod deserialize_matrix; 3 | mod invert_matrix; 4 | mod multiply_matrices; 5 | mod multiply_scalar_vector_matrix; 6 | mod vector_comparison; 7 | mod vector_norm; 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /bk/src/language/impl_trait.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Simplify Method Signatures with `impl Trait`][ex~language~impl-trait] | | | 4 | | [Return Opaque Types (esp. Closures and Iterators) with Return-position `impl Trait`][ex~language~return-position-impl-trait] | | | 5 | -------------------------------------------------------------------------------- /later/crates/cats/development_tools_ffi/examples/flutter/pubspec.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | flutter: 3 | sdk: flutter 4 | 5 | dev_dependencies: 6 | flutter_test: 7 | sdk: flutter 8 | flutter_rust_bridge_codegen: ^1.0.0 9 | build_runner: ^2.0.0 10 | 11 | -------------------------------------------------------------------------------- /later/src/categories/os_freebsd-apis/freebsd.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Bind to FreeBSD APIs][ex~os_freebsd-apis~freebsd] | {{!crate }} | [![cat~os::freebsd-apis][cat~os::freebsd-apis~badge]][cat~os::freebsd-apis] | 4 | -------------------------------------------------------------------------------- /later/src/categories/virtualization/virtualization.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Implement Virtualization][ex~virtualization~virt] | {{!crate }} | [![cat~virtualization][cat~virtualization~badge]][cat~virtualization] | 4 | -------------------------------------------------------------------------------- /later/src/categories/web-programming_websocket/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~web-programming_websocket~async-std]: websocket.md#async-std 2 | [ex~web-programming_websocket~general-purpose]: websocket.md#general-purpose 3 | [ex~web-programming_websocket~low-level]: websocket.md#low-level 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/database/amqp.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Connect to RabbitMQ with `lapin`][ex~database~lapin] | [![lapin][c~lapin~docs~badge]][c~lapin~docs] | [![cat~database][cat~database~badge]][cat~database] | 4 | -------------------------------------------------------------------------------- /bk/drafts/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~drafts~inheritance-in-rust]: inheritance.md#inheritance-in-rust 2 | [ex~drafts~overflow-handling]: overflow.md#overflow-handling 3 | [ex~drafts~plugins]: plugin.md#plugins 4 | [ex~drafts~self-referential-type]: self_referential.md#self-referential-type 5 | -------------------------------------------------------------------------------- /bk/src/categories/filesystem/file_metadata.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Display File Metadata][ex~filesystem~metadata] | [![std][c~std~docs~badge]][c~std~docs] | [![cat~filesystem][cat~filesystem~badge]][cat~filesystem] | 4 | -------------------------------------------------------------------------------- /bk/src/language/generics.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [Const Generics][ex~language~const-generics] | 4 | | [Use Lifetime Parameters][ex~language~lifetime-parameters] | 5 | | [Use Type Parameters][ex~language~type-parameters] | 6 | | [Generics Syntax][ex~language~generics-syntax] | 7 | -------------------------------------------------------------------------------- /later/src/categories/wasm/wasm_development.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`wasm-pack`][ex~wasm~wasm-pack] | [![wasm-pack][c~wasm-pack~docs~badge]][c~wasm-pack~docs]{{hi:wasm-pack}} | [![cat~wasm][cat~wasm~badge]][cat~wasm] | 4 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/just/justfile.2: -------------------------------------------------------------------------------- 1 | # check_ascii: 2 | # #!/usr/bin/env bash 3 | # for file in $(find . -type f -name "*.md" ) 4 | # do 5 | # if diff -q --suppress-common-lines <(strings -w $file) $file; then 6 | # echo $file 7 | # fi 8 | # done 9 | -------------------------------------------------------------------------------- /bk/crates/cats/development_tools_debugging/examples/log/main.rs: -------------------------------------------------------------------------------- 1 | mod log_custom; 2 | mod log_custom_logger; 3 | mod log_debug; 4 | mod log_env_variable; 5 | mod log_error; 6 | mod log_mod; 7 | mod log_stdout; 8 | mod log_syslog; 9 | mod log_timestamp; 10 | 11 | fn main() {} 12 | -------------------------------------------------------------------------------- /bk/drafts/categories/asynchronous/streams.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Streams][ex~asynchronous~streams] | [![futures][c~futures~docs~badge]][c~futures~docs] | [![cat~asynchronous][cat~asynchronous~badge]][cat~asynchronous] | 4 | -------------------------------------------------------------------------------- /bk/src/appendices/contributing/documentation_generation.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Using a Dev Container Feature][ex~contributing~dev-container-feature] | 4 | | [Other Methods to Preview the Documentation HTML][ex~contributing~other-methods-to-preview-the-documentation-html] | 5 | -------------------------------------------------------------------------------- /bk/src/links/blogs_and_forums.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [Chat Platforms, Forums, and Social Media][ex~links~chat] | 4 | | [Rust Blogs and Newsletters][ex~links~blogs] | 5 | | [Personal Blogs][ex~links~personal-blogs] | 6 | | [Project and Organization Blogs][ex~links~project-blogs] | 7 | -------------------------------------------------------------------------------- /later/src/categories/emulators/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~emulators~emulators]: emulators.md#emulators 2 | [ex~emulators~rom-loading]: emulators.md#rom-loading 3 | [ex~emulators~virtual-machines-cpu-emulators]: emulators.md#virtual-machines-cpu-emulators 4 | [p~parsing]: ../parsing/parsing.md 5 | -------------------------------------------------------------------------------- /later/src/categories/no-std_no-alloc/no_alloc.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Crates Working Without `alloc`][ex~no-std_no-alloc~noalloc] | {{!crate }} | [![cat~no-std::no-alloc][cat~no-std::no-alloc~badge]][cat~no-std::no-alloc] | 4 | -------------------------------------------------------------------------------- /later/src/categories/simulation/physics_engines.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`rapier`][ex~simulation~rapier] | [![rapier][rapier~badge]][rapier~website]{{hi:rapier}} | [![cat~simulation][cat~simulation~badge]][cat~simulation] | 4 | -------------------------------------------------------------------------------- /bk/crates/language/examples/ownership_borrowing/main.rs: -------------------------------------------------------------------------------- 1 | mod borrowing_function; 2 | mod borrowing_function_mutable; 3 | mod borrowing_immutable; 4 | mod clone; 5 | mod copy; 6 | mod move1; 7 | mod move_function; 8 | mod read_write_lock; 9 | mod scope; 10 | 11 | fn main() {} 12 | -------------------------------------------------------------------------------- /bk/drafts/categories/rust-patterns/behavioral_patterns.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Implement the Typestate Pattern in Rust][ex~rust-patterns~typestate-pattern] | | [![cat~rust-patterns][cat~rust-patterns~badge]][cat~rust-patterns] | 4 | -------------------------------------------------------------------------------- /bk/src/categories/filesystem/symbolic_links.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Work with Symbolic Links][ex~filesystem~symbolic-links] | [![std][c~std~docs~badge]][c~std~docs] | [![cat~filesystem][cat~filesystem~badge]][cat~filesystem] | 4 | -------------------------------------------------------------------------------- /bk/static/site.webmanifest: -------------------------------------------------------------------------------- 1 | {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} -------------------------------------------------------------------------------- /later/src/categories/multimedia_audio/audio.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Record, Output, or Process Audio][ex~multimedia_audio~audio] | {{!crate }} | [![cat~multimedia::audio][cat~multimedia::audio~badge]][cat~multimedia::audio] | 4 | -------------------------------------------------------------------------------- /later/src/categories/rendering_engine/rendering_engines.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Use a Render Engine][ex~rendering_engine~render] | {{!crate }} | [![cat~rendering::engine][cat~rendering::engine~badge]][cat~rendering::engine] | 4 | -------------------------------------------------------------------------------- /later/src/categories/virtualization/containers.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Links | 2 | |--------|--------| 3 | | [Docker][ex~virtualization~docker] | [Docker Rust guide][docker~rust-guide]↗ | 4 | | [Docker Compose][ex~virtualization~docker-compose] | [Docker Compose][docker~compose~website]↗ | 5 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/.cargo-husky/hooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo '+just fmtall' 5 | just fmtall 6 | 7 | echo '+just clippyall' 8 | just clippyall 9 | 10 | echo '+just sortrefs' 11 | just sortrefs 12 | 13 | echo '+just buildbook' 14 | just buildbook 15 | -------------------------------------------------------------------------------- /bk/drafts/categories/development-tools/documentation/badges.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Badges][ex~documentation~badges] | [shield.io][shield-io~website]↗ | [![cat~development-tools][cat~development-tools~badge]][cat~development-tools] | 4 | -------------------------------------------------------------------------------- /later/src/categories/computer-vision/opencv.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Analyze Images with `opencv`][ex~computer-vision~opencv] | [![opencv][c~opencv~docs~badge]][c~opencv~docs] | [![cat~computer-vision][cat~computer-vision~badge]][cat~computer-vision] | 4 | -------------------------------------------------------------------------------- /later/src/categories/multimedia_encoding/encoding.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Encode Your Media][ex~multimedia_encoding~encoding] | {{!crate }} | [![cat~multimedia::encoding][cat~multimedia::encoding~badge]][cat~multimedia::encoding] | 4 | -------------------------------------------------------------------------------- /later/src/categories/science_geo/geo.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Process Spatial Information, Maps, Navigation Data, and Geographic Information Systems][ex~science_geo~geo] | {{!crate }} | [![cat~science::geo][cat~science::geo~badge]][cat~science::geo] | 4 | -------------------------------------------------------------------------------- /bk/crates/language/examples/structs/main.rs: -------------------------------------------------------------------------------- 1 | mod common_traits; 2 | mod generic_structs; 3 | mod struct_constant; 4 | mod struct_fields; 5 | mod struct_impl; 6 | mod struct_init; 7 | mod struct_trait; 8 | mod struct_update; 9 | mod structs; 10 | mod tuple_structs; 11 | 12 | fn main() {} 13 | -------------------------------------------------------------------------------- /bk/drafts/categories/database/connection_pool.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Create a Connection Pool][ex~database~connection-pool] | [![deadpool][c~deadpool~docs~badge]][c~deadpool~docs] | [![cat~database][cat~database~badge]][cat~database] | 4 | -------------------------------------------------------------------------------- /bk/src/appendices/contributing/dev_container_and_docker.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Docker Compose][ex~contributing~docker-compose] | 4 | | [Deployment to GitHub Pages][ex~contributing~deployment-to-github-pages] | 5 | | [Push Image to Docker Hub][ex~contributing~push-image-to-docker-hub] | 6 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_protocols/aerospace_protocols.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Aerospace Protocols][ex~aerospace_protocols~aerospace_protocols] | {{!crate }} | [![cat~aerospace::protocols][cat~aerospace::protocols~badge]][cat~aerospace::protocols] | 4 | -------------------------------------------------------------------------------- /later/src/categories/cryptography_cryptocurrencies/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~cryptography_cryptocurrencies~cryptocurrencies]: cryptocurrencies.md#cryptocurrencies 2 | [p~cryptography]: ../cryptography/index.md 3 | [p~search]: ../database/search.md 4 | [p~testing]: ../development-tools_testing/testing.md 5 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/templates/chapter/subchapter.md.template: -------------------------------------------------------------------------------- 1 | # {{subchapter.title}} 2 | 3 | ## {{recipe.title}} 4 | 5 | {% raw %} 6 | {{#include refs.incl.md}} 7 | {{#include ../../refs/link-refs.md}} 8 | {% endraw %} 9 | 10 | 13 | -------------------------------------------------------------------------------- /bk/drafts/categories/cryptography/hmac.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Sign and Verify a Message with a HMAC Digest][ex~cryptography~hmac] | [![ring][c~ring~docs~badge]][c~ring~docs] | [![cat~cryptography][cat~cryptography~badge]][cat~cryptography] | 4 | -------------------------------------------------------------------------------- /later/src/categories/embedded/hals.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`embedded-hal`][ex~embedded~embedded-hal] | [![embedded-hal][c~embedded-hal~docs~badge]][c~embedded-hal~docs]{{hi:embedded-hal}} | [![cat~embedded][cat~embedded~badge]][cat~embedded] | 4 | -------------------------------------------------------------------------------- /later/src/categories/external-ffi-bindings/external_ffi_bindings.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [C Bindings][ex~external-ffi-bindings~ffi] | {{!crate }} | [![cat~external-ffi-bindings][cat~external-ffi-bindings~badge]][cat~external-ffi-bindings] | 4 | -------------------------------------------------------------------------------- /bk/crates/cats/encoding/examples/binary_encoders/main.rs: -------------------------------------------------------------------------------- 1 | mod bincode; 2 | // [review](https://github.com/john-cd/rust_howto/issues/1234). 3 | #[cfg(target_os = "linux")] 4 | mod capnp; 5 | mod ciborium; 6 | mod flatbuffers; 7 | mod prost; 8 | mod protobuf; 9 | mod rmp_serde; 10 | 11 | fn main() {} 12 | -------------------------------------------------------------------------------- /bk/drafts/categories/asynchronous/async_traits.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Async Traits][ex~asynchronous~async-traits] | [![async-trait][c~async-trait~docs~badge]][c~async-trait~docs] | [![cat~asynchronous][cat~asynchronous~badge]][cat~asynchronous] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/development-tools/transcompilation/transpilers.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [C to Rust Translation][ex~transcompilation~c2rust] | [![c2rust][c~c2rust~docs~badge]][c~c2rust~docs]{{hi:c2rust}} | [![cat~compilers][cat~compilers~badge]][cat~compilers] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/text-processing/string_concat.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Concatenate Strings][ex~text-processing~string-concat] | [![std][c~std~docs~badge]][c~std~docs] | [![cat~text-processing][cat~text-processing~badge]][cat~text-processing] | 4 | -------------------------------------------------------------------------------- /bk/src/categories/data-structures/linked_lists.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Store Data in a Linked List][ex~data-structures~linkedlist] | [![std][c~std~docs~badge]][c~std~docs] | [![cat~data-structures][cat~data-structures~badge]][cat~data-structures] | 4 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_simulation/aerospace_simulation.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Aerospace Simulation][ex~aerospace_simulation~aerospace_simulation] | {{!crate }} | [![cat~aerospace::simulation][cat~aerospace::simulation~badge]][cat~aerospace::simulation] | 4 | -------------------------------------------------------------------------------- /later/src/categories/rendering_data-formats/data_formats.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Data Format][ex~rendering_data-formats~data-format] | {{!crate }} | [![cat~rendering::data-formats][cat~rendering::data-formats~badge]][cat~rendering::data-formats] | 4 | -------------------------------------------------------------------------------- /later/src/other/cloud/aws.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Links | 2 | |--------|--------| 3 | | [Interact with AWS Services with the AWS SDK for Rust][ex~cloud~aws-sdk-rust] | [AWS Rust SDK][aws-rust-sdk~website]↗ | 4 | | [Implement AWS Lambda Functions in Rust][ex~cloud~lambda] | [AWS Rust SDK][aws-rust-sdk~website]↗ | 5 | -------------------------------------------------------------------------------- /bk/crates/cats/mathematics/examples/additional_numeric_types/main.rs: -------------------------------------------------------------------------------- 1 | // #![allow(incomplete_features)] 2 | // #![feature(generic_const_exprs)] 3 | mod big_integers; 4 | mod num_bigint; 5 | mod num_traits; 6 | mod ordered_float; 7 | mod rug; 8 | mod rust_decimal; 9 | mod typenum; 10 | 11 | fn main() {} 12 | -------------------------------------------------------------------------------- /later/src/categories/rendering_graphics-api/gpu_abstraction_layers.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [WebGPU Bindings with `wgpu`][ex~rendering_graphics-api~wgpu] | [![wgpu][c~wgpu~docs~badge]][c~wgpu~docs] | [![cat~graphics][cat~graphics~badge]][cat~graphics] | 4 | -------------------------------------------------------------------------------- /later/src/other/devops/github_actions.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |--------|--------| 3 | | [Install Development Tools][ex~devops~installation-of-development-tools] | [`install-action`][install_action~repo]↗ | 4 | | [Cache Your Compilation][ex~devops~compilation-caching] | [`rust-cache`][c~rust_cache~repo]↗ | 5 | -------------------------------------------------------------------------------- /bk/drafts/categories/development-tools/cargo/package_layout.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Package Layout][ex~cargo~package-layout] | [![cargo][c~cargo~docs~badge]][c~cargo~docs] | [![cat~development-tools][cat~development-tools~badge]][cat~development-tools] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/science/refs.incl.md: -------------------------------------------------------------------------------- 1 | [p~algorithms]: ../../../src/categories/algorithms/index.md 2 | [p~gpu]: # "../../other/gpu/gpu.md" 3 | [p~learning]: ../../../src/links/learning_rust.md 4 | [p~performance]: ../development-tools_cargo-plugins/performance.md 5 | [p~python]: ../development-tools_ffi/python.md 6 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_space-protocols/space_protocols.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Space Protocols][ex~aerospace_space-protocols~space-protocols] | {{!crate }} | [![cat~aerospace::space-protocols][cat~aerospace::space-protocols~badge]][cat~aerospace::space-protocols] | 4 | -------------------------------------------------------------------------------- /typ/typst/other/preface.typ: -------------------------------------------------------------------------------- 1 | #import "@preview/ilm:1.4.1": * 2 | #align(center + horizon)[ 3 | = Preface Heading 4 | 5 | Your content goes here. 6 | 7 | ] 8 | 9 | #blockquote[ 10 | A wizard is never late, Frodo Baggins. Nor is he early. He arrives precisely when he means to. 11 | --- Gandalf 12 | ] 13 | -------------------------------------------------------------------------------- /bk/crates/cats/database/.env: -------------------------------------------------------------------------------- 1 | DATABASE_URL=sqlite::memory: 2 | 3 | # For the deadpool2 example 4 | PG__HOST=rust_howto_dev-postgres-1 5 | PG__USER=postgres 6 | PG__PASSWORD=mysecretpassword 7 | PG__DBNAME=example 8 | PG__POOL__MAX_SIZE=16 9 | PG__POOL__TIMEOUTS__WAIT__SECS=5 10 | PG__POOL__TIMEOUTS__WAIT__NANOS=0 11 | -------------------------------------------------------------------------------- /bk/src/standard-library/dynamic_typing.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Determine the Type of an Object at Runtime and Downcast with the `Any` Trait][ex~standard-library~any-trait] | [![std][c~std~docs~badge]][c~std~docs] | 4 | | [Compile-time Reflection][ex~standard-library~compile-type-reflection] | | 5 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace/README.md: -------------------------------------------------------------------------------- 1 | # Aerospace 2 | 3 | This crate contains examples for the "aerospace" category on `crates.io`. 4 | 5 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 6 | -------------------------------------------------------------------------------- /later/src/categories/science/deep_learning.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`candle`][ex~science~deep-learning] | [![candle-core][c~candle-core~docs~badge]][c~candle-core~docs] [![burn][c~burn~docs~badge]][c~burn~docs] | [![cat~science][cat~science~badge]][cat~science] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/template-engine/tera.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Create HTML Files from a Template][ex~template-engine~create-html-from-template] | [![tera][c~tera~docs~badge]][c~tera~docs] | [![cat~template-engine][cat~template-engine~badge]][cat~template-engine] | 4 | -------------------------------------------------------------------------------- /bk/src/language/closures.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Closure Syntax][ex~language~closure] | 4 | | [Force Closure Capture by Value][ex~language~move-closures] | 5 | | [Annotate Closure Types][ex~language~closure-with-type-annotations] | 6 | | [Use Closures as Function Arguments][ex~language~closures-as-input-parameters] | 7 | -------------------------------------------------------------------------------- /bk/src/standard-library/value_comparison.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Test for Equality with `PartialEq` and `Eq`][ex~standard-library~eq] | [![std][c~std~docs~badge]][c~std~docs] | 4 | | [Compare and Sort Values with `PartialOrd` and `Ord`][ex~standard-library~ord] | [![std][c~std~docs~badge]][c~std~docs] | 5 | -------------------------------------------------------------------------------- /later/src/categories/internationalization/internationalization.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Internationalize Your App][ex~internationalization~internationalization] | {{!crate }} | [![cat~internationalization][cat~internationalization~badge]][cat~internationalization] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/command-line-utilities/networking_cli.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`gping`][ex~command-line-utilities~gping] | [![gping][c~gping~docs~badge]][c~gping~docs] | [![cat~command-line-utilities][cat~command-line-utilities~badge]][cat~command-line-utilities] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/development-tools/cross-compilation/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~cross-compilation~cross-compilation]: cross_compilation.md#cross-compilation 2 | [ex~cross-compilation~cross-compile-with-cargo]: cross_compilation.md#cross-compile-with-cargo 3 | [p~attributes]: ../../../language/attributes.md 4 | [p~cargo]: ../cargo/cargo.md 5 | -------------------------------------------------------------------------------- /bk/src/categories/data-structures/graphs.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Create and Manipulate Graphs with `petgraph`][ex~data-structures~petgraph] | [![petgraph][c~petgraph~docs~badge]][c~petgraph~docs] | [![cat~data-structures][cat~data-structures~badge]][cat~data-structures] | 4 | -------------------------------------------------------------------------------- /bk/src/standard-library/conversion_traits.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Choose the Right Trait for a Conversion][ex~standard-library~choose-conversion-trait] | [![std][c~std~docs~badge]][c~std~docs] | 4 | | [Convert between Types with `From`][ex~standard-library~from] | [![std][c~std~docs~badge]][c~std~docs] | 5 | -------------------------------------------------------------------------------- /later/src/categories/multimedia_images/color_handling.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`palette`][ex~multimedia_images~palette] | [![palette][c~palette~docs~badge]][c~palette~docs]{{hi:palette}} | [![cat~multimedia::images][cat~multimedia::images~badge]][cat~multimedia::images] | 4 | -------------------------------------------------------------------------------- /later/src/categories/multimedia_images/pixel_buffers.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`pixels`][ex~multimedia_images~pixel_buffers] | [![pixels][c~pixels~docs~badge]][c~pixels~docs]{{hi:pixels}} | [![cat~multimedia::images][cat~multimedia::images~badge]][cat~multimedia::images] | 4 | -------------------------------------------------------------------------------- /later/src/other/devops/version_control.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |--------|--------| 3 | | [Check Your Code Before Committing it][ex~devops~check-your-code-before-committing] | [![cargo-husky][c~cargo-husky~docs~badge]][c~cargo-husky~docs] | 4 | | [`pre-commit`][ex~devops~pre-commit] | [`pre-commit`][pre-commit.com~website]↗ | 5 | -------------------------------------------------------------------------------- /bk/crates/cats/rust_patterns/examples/error/main.rs: -------------------------------------------------------------------------------- 1 | mod anyhow; 2 | mod backtrace; 3 | mod color_eyre; 4 | mod error_handling; 5 | mod miette; 6 | mod panic; 7 | mod question_mark; 8 | mod question_mark2; 9 | mod retain; 10 | mod thiserror; 11 | mod thiserror2; 12 | mod unwrap; 13 | mod unwrap_or_else; 14 | 15 | fn main() {} 16 | -------------------------------------------------------------------------------- /bk/drafts/categories/command-line-interface/tui.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Build Complex TUI][ex~command-line-interface~ratatui] | [![ratatui][c~ratatui~docs~badge]][c~ratatui~docs] | [![cat~command-line-interface][cat~command-line-interface~badge]][cat~command-line-interface] | 4 | -------------------------------------------------------------------------------- /bk/src/categories/data-structures/vectors.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Store Homogeneous Data in a Contiguous, Growable Array with `Vec`][ex~data-structures~vec] | [![std][c~std~docs~badge]][c~std~docs] | 4 | | [`Vec` Memory Allocation][ex~data-structures~memory-allocation] | [![std][c~std~docs~badge]][c~std~docs] | 5 | -------------------------------------------------------------------------------- /bk/src/language/ownership_and_borrowing.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Ownership][ex~language~ownership] | 4 | | [Move Semantics][ex~language~move-semantics] | 5 | | [Clone (Deep Copy)][ex~language~clone] | 6 | | [Copy Semantics][ex~language~copy-semantics] | 7 | | [Borrowing when Calling a Function][ex~language~references-borrowing] | 8 | -------------------------------------------------------------------------------- /later/src/categories/cryptography_cryptocurrencies/cryptocurrencies.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Cryptocurrencies][ex~cryptography_cryptocurrencies~cryptocurrencies] | {{!crate }} | [![cat~cryptography::cryptocurrencies][cat~cryptography::cryptocurrencies~badge]][cat~cryptography::cryptocurrencies] | 4 | -------------------------------------------------------------------------------- /later/src/categories/gui/gtk.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`gtk4`][ex~gui~gtk4] | [![gtk4][c~gtk4~docs~badge]][c~gtk4~docs] | [![cat~gui][cat~gui~badge]][cat~gui] | 4 | | [`relm4`][ex~gui~relm4] | [![relm4][c~relm4~docs~badge]][c~relm4~docs] | [![cat~gui][cat~gui~badge]][cat~gui] | 5 | -------------------------------------------------------------------------------- /bk/crates/cats/web_programming_http_server/proto/helloworld.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package helloworld; 4 | 5 | service Greeter { 6 | rpc SayHello (HelloRequest) returns (HelloReply); 7 | } 8 | 9 | message HelloRequest { 10 | string name = 1; 11 | } 12 | 13 | message HelloReply { 14 | string message = 1; 15 | } 16 | -------------------------------------------------------------------------------- /bk/src/categories/filesystem/file_watching.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Watch Files or Directories and Execute a Function When They Change][ex~filesystem~watch-files-or-dirs] | [![notify][c~notify~docs~badge]][c~notify~docs] | [![cat~filesystem][cat~filesystem~badge]][cat~filesystem] | 4 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_drones/README.md: -------------------------------------------------------------------------------- 1 | # Aerospace: Drones 2 | 3 | This crate contains examples for the "aerospace_drones" category on `crates.io`. 4 | 5 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 6 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/templates/chapter/index.incl.md.template: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [{{ recipe }}][ex~{{ recipe }}] | [![{{ crate.name }}][c~{{ crate.name }}~docs~badge]][c~{{ crate.name }}~docs] | [![cat~{{ category.slug }}][cat~{{category.slug}}~badge]][cat~{{ category.slug }}] | 4 | -------------------------------------------------------------------------------- /bk/src/standard-library/operators.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Add Function-like Behavior to a Custom Type][ex~standard-library~function-like-behavior] | [![std][c~std~docs~badge]][c~std~docs] | 4 | | [Overload Operators like `+`, `-`, `[]`][ex~standard-library~operator-overloading] | [![std][c~std~docs~badge]][c~std~docs] | 5 | -------------------------------------------------------------------------------- /later/crates/cats/science_geo/examples/geo/geo.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/839) 13 | -------------------------------------------------------------------------------- /later/src/categories/aerospace_unmanned-aerial-vehicles/uavs.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |---|---|---| 3 | | [Unmanned Aerial Vehicles][ex~aerospace_unmanned-aerial-vehicles~uavs] | {{!crate }} | [![cat~aerospace::unmanned-aerial-vehicles][cat~aerospace::unmanned-aerial-vehicles~badge]][cat~aerospace::unmanned-aerial-vehicles] | 4 | -------------------------------------------------------------------------------- /later/src/categories/wasm/leptos.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`leptos`][ex~wasm~leptos] | [![leptos][c~leptos~docs~badge]][c~leptos~docs] | [![cat~web-programming::http-server][cat~web-programming::http-server~badge]][cat~web-programming::http-server] [![cat~wasm][cat~wasm~badge]][cat~wasm] | 4 | -------------------------------------------------------------------------------- /bk/crates/cats/concurrency/examples/data_parallelism/main.rs: -------------------------------------------------------------------------------- 1 | mod multithreading_rayon; 2 | mod multithreading_rayon_custom; 3 | mod multithreading_rayon_parsort; 4 | mod rayon_any_all; 5 | mod rayon_iter_mut; 6 | mod rayon_map_reduce; 7 | mod rayon_parallel_search; 8 | mod rayon_parallel_sort; 9 | mod rayon_thumbnails; 10 | 11 | fn main() {} 12 | -------------------------------------------------------------------------------- /bk/crates/language/examples/attributes/main.rs: -------------------------------------------------------------------------------- 1 | mod allow_dead_code; 2 | mod attributes_deprecated; 3 | mod attributes_derive; 4 | mod attributes_early_development; 5 | mod attributes_must_use; 6 | mod attributes_production; 7 | mod cfg_if; 8 | mod conditional_compilation; 9 | 10 | fn main() { 11 | attributes_production::main(); 12 | } 13 | -------------------------------------------------------------------------------- /bk/drafts/categories/development-tools/installation/rustup.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Install and Manage Rust Toolchains with `rustup`][ex~installation~rustup] | [![rustup][rustup~website~badge]][rustup~website] | [![cat~development-tools][cat~development-tools~badge]][cat~development-tools] | 4 | -------------------------------------------------------------------------------- /bk/src/appendices/contributing/development_environment_setup.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Using VS Code][ex~contributing~using-vs-code] | 4 | | [Other][ex~contributing~other] | 5 | | [Alternative `just` Install][ex~contributing~alternative-just-install] | | | 6 | | [Alternative `mdbook` Install][ex~contributing~alternative-mdbook-install] | | | 7 | -------------------------------------------------------------------------------- /bk/src/language/enumerations.incl.md: -------------------------------------------------------------------------------- 1 | ||| 2 | |---|---| 3 | | [Enum Syntax][ex~language~enum] | | 4 | | [Common `enums`][ex~language~common-enums] | | 5 | | [Convert between Strings and Enum Variants with `strum`][ex~language~strum] | [![strum][c~strum~docs~badge]][c~strum~docs]{{hi:strum}} | 6 | | [Define Generic Enums][ex~language~generic-enums] | 7 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_protocols/README.md: -------------------------------------------------------------------------------- 1 | # Aerospace Protocols 2 | 3 | This crate contains examples for the "aerospace protocols" category on `crates.io`. 4 | 5 | Code examples are found under `examples/`, where `` is the name of the `.md` file in `bk/<...>/categories/` that includes these examples. 6 | -------------------------------------------------------------------------------- /later/crates/cats/no_std/examples/no_std/no_std1.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/814) 13 | -------------------------------------------------------------------------------- /bk/drafts/categories/asynchronous/async_utilities.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Visualize the Structure of Asynchronous Tasks and Their Dependencies][ex~asynchronous~utilities] | [![await-tree][c~await-tree~docs~badge]][c~await-tree~docs] | [![cat~concurrency][cat~concurrency~badge]][cat~concurrency] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/parser-implementations/yaml.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Parse YAML with `serde_yml`][ex~parser-implementations~serde_yml] | [![serde_yml][c~serde_yml~docs~badge]][c~serde_yml~docs] | [![cat~parser-implementations][cat~parser-implementations~badge]][cat~parser-implementations] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/template-engine/tinytemplate.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Create Markdown Fragments from a Template][ex~template-engine~tinytemplate] | [![tinytemplate][c~tinytemplate~docs~badge]][c~tinytemplate~docs] | [![cat~template-engine][cat~template-engine~badge]][cat~template-engine] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/web-programming_http-server/_grpc.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Implement gRPC][ex~web-programming_http-server~tonic] | [![tonic][c~tonic~docs~badge]][c~tonic~docs] | [![cat~web-programming::http-server][cat~web-programming::http-server~badge]][cat~web-programming::http-server] | 4 | -------------------------------------------------------------------------------- /bk/src/categories/filesystem/temporary_files_and_directories.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Create Temporary Files or Temporary Directories][ex~filesystem~temporary-files-or-directories] | [![tempfile][c~tempfile~docs~badge]][c~tempfile~docs] | [![cat~filesystem][cat~filesystem~badge]][cat~filesystem] | 4 | -------------------------------------------------------------------------------- /bk/src/standard-library/automatic_trait_derivation.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Derive Common Traits Automatically][ex~standard-library~derive] | [![std][c~std~docs~badge]][c~std~docs] | 4 | | [Derive Additional Traits with `derive_more`][ex~standard-library~derive-more] | [![derive_more][c~derive_more~docs~badge]][c~derive_more~docs] | 5 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace/examples/aerospace/aero.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | 6 | // fn main() {} 7 | 8 | // #[test] 9 | // #[ignore = "later"] 10 | // fn test() { 11 | // main(); 12 | // } 13 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/60) 14 | -------------------------------------------------------------------------------- /later/crates/cats/emulators/examples/emulators/emulator.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/752) 13 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_audio/examples/audio/audio.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/806) 13 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_video/examples/video/video.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/809) 13 | -------------------------------------------------------------------------------- /later/src/categories/gui/web_based_gui.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`tauri`][ex~gui~tauri] | [![tauri][c~tauri~docs~badge]][c~tauri~docs] | [![cat~gui][cat~gui~badge]][cat~gui] | 4 | | [`dioxus`][ex~gui~dioxus] | [![dioxus][c~dioxus~docs~badge]][c~dioxus~docs] | [![cat~gui][cat~gui~badge]][cat~gui] | 5 | -------------------------------------------------------------------------------- /bk/drafts/categories/parser-implementations/ini.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Parse INI Configuration Files with `rust-ini`][ex~parser-implementations~ini] | [![rust-ini][c~rust-ini~docs~badge]][c~rust-ini~docs] | [![cat~parser-implementations][cat~parser-implementations~badge]][cat~parser-implementations] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/text-processing/unicode.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Collect Unicode Graphemes][ex~text-processing~collect-unicode-graphemes] | [![unicode-segmentation][c~unicode-segmentation~docs~badge]][c~unicode-segmentation~docs] | [![cat~text-processing][cat~encoding~badge]][cat~text-processing] | 4 | -------------------------------------------------------------------------------- /bk/src/standard-library/interior_mutability.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | 2 | |---|---| 3 | | [Use `Cell`][ex~standard-library~cell] | [![std][c~std~docs~badge]][c~std~docs] | 4 | | [Use `RefCell`][ex~standard-library~refcell] | [![std][c~std~docs~badge]][c~std~docs] | 5 | | [Use `OnceCell`][ex~standard-library~oncecell] | [![std][c~std~docs~badge]][c~std~docs] | 6 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_drones/examples/drones/drones1.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/61) 13 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia/examples/multimedia/multimedia1.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/805) 13 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_images/examples/images/images.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/808) 13 | -------------------------------------------------------------------------------- /later/crates/cats/no_std_no_alloc/examples/no_alloc/no_alloc.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/815) 13 | -------------------------------------------------------------------------------- /later/crates/cats/simulation/examples/simulation/simulation1.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/846) 13 | -------------------------------------------------------------------------------- /later/src/categories/gui/ui_layout.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`taffy`][ex~gui~taffy] | [![taffy][c~taffy~docs~badge]][c~taffy~docs] | [![cat~gui][cat~gui~badge]][cat~gui] | 4 | | [`morphorm`][ex~gui~morphorm] | [![morphorm][c~morphorm~docs~badge]][c~morphorm~docs] | [![cat~gui][cat~gui~badge]][cat~gui] | 5 | -------------------------------------------------------------------------------- /later/src/categories/science_robotics/artificial_intelligence.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Create a Behavior Tree with `bonsai-bt`][ex~science_robotics~bonsai-bt] | [![bonsai-bt][c~bonsai-bt~docs~badge]][c~bonsai-bt~docs] | [![cat~science::robotics][cat~science::robotics~badge]][cat~science::robotics] | 4 | -------------------------------------------------------------------------------- /bk/src/appendices/contributing/repository_structure.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [Folders and Key Files][ex~contributing~folders-and-key-files] | 4 | | [Book Organization][ex~contributing~book-organization] | 5 | | [Code Organization][ex~contributing~code-organization] | 6 | | [All Examples are Fully and Continuously Tested][ex~contributing~examples-fully-tested] | 7 | -------------------------------------------------------------------------------- /bk/src/categories/filesystem/working_with_the_standard_input_and_output.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Read from the Standard Input and Write to the Standard Output or Standard Error][ex~filesystem~stdin-stdout] | [![std][c~std~docs~badge]][c~std~docs] | [![cat~filesystem][cat~filesystem~badge]][cat~filesystem] | 4 | -------------------------------------------------------------------------------- /later/crates/cats/gui/examples/2d_renderers/main.rs: -------------------------------------------------------------------------------- 1 | mod femtovg; 2 | mod skia_safe; 3 | mod vello; 4 | mod vger; 5 | mod webrender; 6 | 7 | fn main() { 8 | // [review](https://github.com/john-cd/rust_howto/issues/1047). 9 | femtovg::main(); 10 | skia_safe::main(); 11 | vello::main(); 12 | vger::main(); 13 | webrender::main(); 14 | } 15 | -------------------------------------------------------------------------------- /later/crates/cats/localization/examples/localization/localization1.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/797) 13 | -------------------------------------------------------------------------------- /later/crates/cats/multimedia_encoding/examples/encoding/encoding.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/807) 13 | -------------------------------------------------------------------------------- /later/crates/cats/rendering/examples/2d_raster_graphics/render.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/828) 13 | -------------------------------------------------------------------------------- /later/crates/cats/science_neuroscience/examples/neuroscience/neuro.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/840) 13 | -------------------------------------------------------------------------------- /later/src/categories/computer-vision/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~computer-vision~opencv]: opencv.md#opencv 2 | [p~cross-platform]: # "../../other/cross-platform/index.md" 3 | [p~images]: ../multimedia_images/images.md 4 | [p~machine-learning]: # "../science/machine_learning.md" 5 | [p~testing]: ../development-tools_testing/testing.md 6 | [p~video]: ../multimedia_video/video.md 7 | -------------------------------------------------------------------------------- /later/src/categories/science/classical_machine_learning.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Use Classical Machine Learning Algorithms][ex~science~classical-ml] | [![linfa][c~linfa~docs~badge]][c~linfa~docs] [![smartcore][c~smartcore~docs~badge]][c~smartcore~docs] | [![cat~science][cat~science~badge]][cat~science] | 4 | -------------------------------------------------------------------------------- /bk/crates/language/examples/match/literals.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // ANCHOR: example 3 | fn main() { 4 | let x = 1; 5 | match x { 6 | 1 => println!("one"), 7 | 2 => println!("two"), 8 | _ => println!("something else"), 9 | } 10 | } 11 | // ANCHOR_END: example 12 | 13 | #[test] 14 | fn test() { 15 | main(); 16 | } 17 | -------------------------------------------------------------------------------- /bk/drafts/categories/development-tools_build-utils/autocfg.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [`autocfg`][ex~development-tools_build-utils~autocfg] | [![autocfg][c~autocfg~docs~badge]][c~autocfg~docs] | [![cat~development-tools::build-utils][cat~development-tools::build-utils~badge]][cat~development-tools::build-utils] | 4 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_unmanned_aerial_vehicles/examples/uavs/uavs.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/65) 13 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_engine/examples/rendering_engines/render.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/830) 13 | -------------------------------------------------------------------------------- /later/crates/other/examples/gpu/rust_gpu.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write; need to review - see gpu.md LATER](https://github.com/john-cd/rust_howto/issues/886) 13 | -------------------------------------------------------------------------------- /bk/drafts/categories/text-processing/string_parsing.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Implement the `FromStr` Trait for a Custom `struct`][ex~text-processing~implement-the-fromstr-trait-for-a-custom-struct] | [![std][c~std~docs~badge]][c~std~docs] | [![cat~text-processing][cat~text-processing~badge]][cat~text-processing] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/web-programming_http-server/_hyper.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Implement an HTTP API with `hyper`][ex~web-programming_http-server~hyper] | [![hyper][c~hyper~docs~badge]][c~hyper~docs] | [![cat~web-programming::http-server][cat~web-programming::http-server~badge]][cat~web-programming::http-server] | 4 | -------------------------------------------------------------------------------- /bk/drafts/categories/web-programming_http-server/cors.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Implement CORS][ex~web-programming_http-server~cors] | [![tower][c~tower~docs~badge]][c~tower~docs] [![tower-http][c~tower-http~docs~badge]][c~tower-http~docs] | [![cat~web-programming][cat~web-programming~badge]][cat~web-programming] | 4 | -------------------------------------------------------------------------------- /bk/src/language/slices.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |--------| 3 | | [Slice Basics][ex~language~slices] | 4 | | [Create Slices from Arrays or Vectors][ex~language~create-slices] | | | 5 | | [String Slices][ex~language~string-slices] | | | 6 | | [Use a Slice as a Function Argument][ex~language~use-slice-as-function-argument] | | | 7 | | [Common Use Cases][ex~language~common-use-cases] | | | 8 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_data_formats/examples/data_formats/data_formats.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/829) 13 | -------------------------------------------------------------------------------- /later/crates/cats/science_robotics/examples/robot_operating_systems/robotics.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/844) 13 | -------------------------------------------------------------------------------- /later/src/categories/embedded/refs.incl.md: -------------------------------------------------------------------------------- 1 | [ex~embedded~embassy]: embassy.md#embassy 2 | [ex~embedded~embedded-hal]: hals.md#embedded-hal 3 | [ex~embedded~portable-atomic]: useful_crates_embedded.md#portable-atomic 4 | [ex~embedded~postcard]: useful_crates_embedded.md#postcard 5 | [ex~embedded~rppal]: hals.md#rppal 6 | [ex~embedded~smoltcp]: useful_crates_embedded.md#smoltcp 7 | -------------------------------------------------------------------------------- /playground/bits_and_pieces/templates/chapter/index.md.template: -------------------------------------------------------------------------------- 1 | # {{ chapter.title }} 2 | 3 | {{ chapter.description }} 4 | 5 | {% raw %}{{{% endraw %}#include index.incl.md{% raw %}}}{% endraw %} 6 | 7 | {% raw %} 8 | {{#include refs.incl.md}} 9 | {{#include ../../refs/link-refs.md}} 10 | {% endraw %} 11 | 12 | 15 | -------------------------------------------------------------------------------- /bk/src/introduction/how_to_read_this_book.incl.md: -------------------------------------------------------------------------------- 1 | || 2 | |---| 3 | | [How to Use the Code Examples][ex~introduction~how-to-use-code-examples] | 4 | | [Additional Examples][ex~introduction~additional-examples] | 5 | | [A Note about Crate Representation][ex~introduction~note-about-crate-representation] | 6 | | [A Note about Error Handling][ex~introduction~note-about-error-handling] | 7 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_protocols/examples/aerospace_protocols/aero_protocols.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/62) 13 | -------------------------------------------------------------------------------- /later/crates/cats/game_development/examples/game_development/game_development1.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/766) 13 | -------------------------------------------------------------------------------- /later/crates/cats/rendering_graphics_api/examples/native_graphics_apis/graphics.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/831) 13 | -------------------------------------------------------------------------------- /later/src/categories/accessibility/screen_readers.incl.md: -------------------------------------------------------------------------------- 1 | | Recipe | Crates | Categories | 2 | |--------|--------|------------| 3 | | [Make a User Interface Accessible to Screen Readers][ex~accessibility~accesskit] | [![accesskit][c~accesskit~docs~badge]][c~accesskit~docs] | [![cat~accessibility][cat~accessibility~badge]][cat~accessibility] [![cat~gui][cat~gui~badge]][cat~gui] | 4 | -------------------------------------------------------------------------------- /bk/crates/language/examples/entrypoint/main_fn.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // ANCHOR: example 3 | // `main` takes no parameters and, in this case, 4 | // implicitly returns the "unit type" (), 5 | // similar to 'void' in C/C++/Java. 6 | fn main() { 7 | println!("Hello, world!"); 8 | } 9 | // ANCHOR_END: example 10 | 11 | #[test] 12 | fn test() { 13 | main(); 14 | } 15 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_simulation/examples/aerospace_simulation/aero_simulation.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/63) 13 | -------------------------------------------------------------------------------- /later/crates/cats/aerospace_space_protocols/examples/space_protocols/space_protocols.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] 2 | // // ANCHOR: example 3 | // // COMING SOON 4 | // // ANCHOR_END: example 5 | // fn main() {} 6 | 7 | // #[test] 8 | // #[ignore = "later"] 9 | // fn test() { 10 | // main(); 11 | // } 12 | // // [write LATER](https://github.com/john-cd/rust_howto/issues/64) 13 | --------------------------------------------------------------------------------