{"id":16866965,"url":"https://github.com/webern/rust-book","last_synced_at":"2025-03-18T17:49:51.715Z","repository":{"id":65447147,"uuid":"560695833","full_name":"webern/rust-book","owner":"webern","description":"Some notes for a group that is reading The Rust Programming Language together","archived":false,"fork":false,"pushed_at":"2024-03-26T17:37:55.000Z","size":383,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-24T21:25:01.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-02T03:48:31.000Z","updated_at":"2023-10-30T16:52:17.000Z","dependencies_parsed_at":"2023-11-20T01:29:14.218Z","dependency_job_id":"6e68e13c-63ab-4139-98fb-637b93566596","html_url":"https://github.com/webern/rust-book","commit_stats":null,"previous_names":["webern/rust-book"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Frust-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Frust-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Frust-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webern%2Frust-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webern","download_url":"https://codeload.github.com/webern/rust-book/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244273931,"owners_count":20427015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T14:52:16.697Z","updated_at":"2025-03-18T17:49:51.697Z","avatar_url":"https://github.com/webern.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Notes from The Rust Book\n\nThis repository is for a group that is studying *The Rust Programming Language* by Klabnik and Nichols.\n\n## Discussion about Cargo.toml and `tokio`\n\nThere are two types of targets in Rust:\n- `lib.rs`: people will build our library from source.\n- `main.rs`: people will compile a binary and run it.\n\nNote: when we compile a `lib.rs`, it is basically just to make sure it can be compiled.\nThere is effectively no concept of consuming a library as a binary in Rust. `*`\n\n`*`: well, you can link to Rust binaries, but it's rare. Usually for C interop.\n\n- `lib.rs`: \"pinning\" a version in Cargo.toml is bad.\n\nCargo.toml\n- version = \"1.21.1\"\n- This means the minimum version we allow.\n- These versions could be chosen: 1.21.2, 1.22.3, 1.9999.9999\n\nFor lib.rs\nI have found a bug that started in 1.21.\nI want to pin my `main.rs` build to 1.21.\n\nThis is better for `lib.rs`\n- version = \"1\"\n\n## `main.rs`\n\nNow I really am in control.\n\n# In the Real World\n\n## AWS SDK for Rust\n- vX.Y.Z\n- X is a major version UNLESS it is 0.\n- If X is 0, then Y is the major version.\n- 0.49.0 to 0.50.0 is MAJOR version bump.\n- 0.49.0 to 0.49.1 is a MINOR version bump (not a patch).\n\nAnother issue with AWS Rust SDK. Inter-lib dependency.\nThese must all have a matching major version due to the libraries' design.\n- aws-x \n- aws-y\n- aws-ec2\n\nAWS SDK is version ZERO.\n\n## coldsnap\n\nBoth the lib.rs and main.rs are in the same package.\n \n## tuftool\n\nIt would technically be OK to pin, but seems unnecessary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebern%2Frust-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebern%2Frust-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebern%2Frust-book/lists"}