├── 03_03 ├── b │ └── mutex_example │ │ ├── src │ │ └── main.rs │ │ ├── Cargo.toml │ │ └── Cargo.lock └── e │ └── mutex_example │ ├── Cargo.toml │ ├── src │ └── main.rs │ └── Cargo.lock ├── 03_07 ├── b │ └── notify_example │ │ ├── src │ │ └── main.rs │ │ ├── Cargo.toml │ │ └── Cargo.lock └── e │ └── notify_example │ ├── Cargo.toml │ ├── src │ └── main.rs │ └── Cargo.lock ├── 03_09 ├── b │ └── barrier_example │ │ ├── src │ │ └── main.rs │ │ ├── Cargo.toml │ │ └── Cargo.lock └── e │ └── barrier_example │ ├── Cargo.toml │ ├── src │ └── main.rs │ └── Cargo.lock ├── 03_11 ├── b │ └── rwlock_example │ │ ├── src │ │ └── main.rs │ │ ├── Cargo.toml │ │ └── Cargo.lock └── e │ └── rwlock_example │ ├── Cargo.toml │ ├── src │ └── main.rs │ └── Cargo.lock ├── 03_05 ├── b │ └── semaphore_example │ │ ├── src │ │ └── main.rs │ │ ├── Cargo.toml │ │ └── Cargo.lock └── e │ └── semaphore_example │ ├── Cargo.toml │ ├── src │ └── main.rs │ └── Cargo.lock ├── 02_05 ├── b │ └── spawning_tasks_example │ │ ├── src │ │ └── main.rs │ │ ├── Cargo.toml │ │ └── Cargo.lock └── e │ └── spawning_tasks_example │ ├── Cargo.toml │ ├── src │ └── main.rs │ └── Cargo.lock ├── .gitignore ├── .github ├── CODEOWNERS ├── PULL_REQUEST_TEMPLATE.md ├── workflows │ └── main.yml └── ISSUE_TEMPLATE.md ├── CONTRIBUTING.md ├── NOTICE ├── README.md └── LICENSE /03_03/b/mutex_example/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() {} 2 | -------------------------------------------------------------------------------- /03_07/b/notify_example/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() {} 2 | -------------------------------------------------------------------------------- /03_09/b/barrier_example/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() {} 2 | -------------------------------------------------------------------------------- /03_11/b/rwlock_example/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() {} 2 | -------------------------------------------------------------------------------- /03_05/b/semaphore_example/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() {} 2 | -------------------------------------------------------------------------------- /02_05/b/spawning_tasks_example/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() {} 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | .tmp 4 | npm-debug.log 5 | 6 | # Rust 7 | *target/ 8 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Codeowners for these exercise files: 2 | # * (asterisk) denotes "all files and folders" 3 | # Example: * @producer @instructor 4 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /03_03/b/mutex_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "mutex_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /03_03/e/mutex_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "mutex_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /03_07/b/notify_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "notify_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /03_07/e/notify_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "notify_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /03_09/b/barrier_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "barrier_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /03_09/e/barrier_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "barrier_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /03_11/b/rwlock_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "rwlock_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /03_11/e/rwlock_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "rwlock_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /03_05/b/semaphore_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "semaphore_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /03_05/e/semaphore_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "semaphore_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /02_05/b/spawning_tasks_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "spawning_tasks_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /02_05/e/spawning_tasks_example/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "spawning_tasks_example" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | tokio = { version = "1.24.1", features = ["full"] } 10 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Copy To Branches 2 | on: 3 | workflow_dispatch: 4 | jobs: 5 | copy-to-branches: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v2 9 | with: 10 | fetch-depth: 0 11 | - name: Copy To Branches Action 12 | uses: planetoftheweb/copy-to-branches@v1.2 13 | env: 14 | key: main 15 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | Contribution Agreement 3 | ====================== 4 | 5 | This repository does not accept pull requests (PRs). All pull requests will be closed. 6 | 7 | However, if any contributions (through pull requests, issues, feedback or otherwise) are provided, as a contributor, you represent that the code you submit is your original work or that of your employer (in which case you represent you have the right to bind your employer). By submitting code (or otherwise providing feedback), you (and, if applicable, your employer) are licensing the submitted code (and/or feedback) to LinkedIn and the open source community subject to the BSD 2-Clause license. 8 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2023 LinkedIn Corporation 2 | All Rights Reserved. 3 | 4 | Licensed under the LinkedIn Learning Exercise File License (the "License"). 5 | See LICENSE in the project root for license information. 6 | 7 | Please note, this project may automatically load third party code from external 8 | repositories (for example, NPM modules, Composer packages, or other dependencies). 9 | If so, such third party code may be subject to other license terms than as set 10 | forth above. In addition, such third party code may also depend on and load 11 | multiple tiers of dependencies. Please review the applicable licenses of the 12 | additional dependencies. 13 | -------------------------------------------------------------------------------- /02_05/e/spawning_tasks_example/src/main.rs: -------------------------------------------------------------------------------- 1 | use std::{thread, time}; 2 | 3 | use tokio::time::{sleep, Duration}; 4 | 5 | fn blocking_call() -> String { 6 | thread::sleep(time::Duration::from_secs(5)); 7 | 8 | "Finally done".to_string() 9 | } 10 | 11 | async fn async_call(id: i32) { 12 | sleep(Duration::from_secs(1)).await; 13 | println!("Async Call: ID {}", id); 14 | } 15 | 16 | #[tokio::main] 17 | async fn main() { 18 | let blocking_code_handle = tokio::task::spawn_blocking(blocking_call); 19 | 20 | let mut async_handles = Vec::new(); 21 | for id in 0..10 { 22 | async_handles.push(tokio::spawn(async_call(id))); 23 | } 24 | 25 | for handle in async_handles { 26 | handle.await.unwrap(); 27 | } 28 | 29 | let result = blocking_code_handle.await.unwrap(); 30 | println!("Blocking call: {}", result); 31 | } 32 | -------------------------------------------------------------------------------- /03_03/e/mutex_example/src/main.rs: -------------------------------------------------------------------------------- 1 | use std::sync::Arc; 2 | 3 | use tokio::sync::Mutex; 4 | use tokio::time::{sleep, Duration}; 5 | 6 | async fn person(remote_arc: Arc>, name: String, new_channel: i32) { 7 | // request access to the remote 8 | let mut real_remote = remote_arc.lock().await; 9 | 10 | // Changes tv channel 11 | *real_remote = new_channel; 12 | println!("{} changed the channel", name); 13 | println!("Watching channel: {}\n", new_channel); 14 | 15 | sleep(Duration::from_secs(5)).await; 16 | } 17 | 18 | #[tokio::main] 19 | async fn main() { 20 | let tv_channel = 10; 21 | let remote = Mutex::new(tv_channel); 22 | let remote_arc = Arc::new(remote); 23 | 24 | let mut task_handles = Vec::new(); 25 | for (name, new_channel) in [("Marcus", 11), ("Jovanna", 32), ("Carmen", 43)] { 26 | task_handles.push(tokio::spawn(person( 27 | remote_arc.clone(), 28 | name.to_string(), 29 | new_channel, 30 | ))); 31 | } 32 | 33 | for handle in task_handles { 34 | handle.await.unwrap(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 7 | 8 | ## Issue Overview 9 | 10 | 11 | ## Describe your environment 12 | 13 | 14 | ## Steps to Reproduce 15 | 16 | 1. 17 | 2. 18 | 3. 19 | 4. 20 | 21 | ## Expected Behavior 22 | 23 | 24 | ## Current Behavior 25 | 26 | 27 | ## Possible Solution 28 | 29 | 30 | ## Screenshots / Video 31 | 32 | 33 | ## Related Issues 34 | 35 | -------------------------------------------------------------------------------- /03_05/e/semaphore_example/src/main.rs: -------------------------------------------------------------------------------- 1 | use std::sync::Arc; 2 | 3 | use tokio::sync::Semaphore; 4 | use tokio::time::{sleep, Duration}; 5 | 6 | async fn person(semaphore: Arc, name: String) { 7 | println!("{} is waiting in line", name); 8 | 9 | teller(semaphore, name).await; 10 | } 11 | 12 | async fn teller(semaphore: Arc, customer: String) { 13 | let permit = semaphore.acquire().await.unwrap(); 14 | 15 | sleep(Duration::from_secs(2)).await; 16 | println!("\n{} is being served by the teller", customer); 17 | sleep(Duration::from_secs(5)).await; 18 | println!("{} is now leaving the teller", customer); 19 | 20 | drop(permit); 21 | } 22 | 23 | #[tokio::main] 24 | async fn main() { 25 | let num_of_tellers = 4; 26 | let semaphore = Semaphore::new(num_of_tellers); 27 | let semaphore_arc = Arc::new(semaphore); 28 | 29 | let mut people_handles = Vec::new(); 30 | for num in 0..10 { 31 | people_handles.push(tokio::spawn(person( 32 | semaphore_arc.clone(), 33 | format!("Person_{num}"), 34 | ))); 35 | } 36 | 37 | for handle in people_handles { 38 | let _ = handle.await.unwrap(); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /03_07/e/notify_example/src/main.rs: -------------------------------------------------------------------------------- 1 | use std::sync::Arc; 2 | 3 | use tokio::sync::Notify; 4 | use tokio::time::{sleep, Duration}; 5 | 6 | async fn order_package(package_delivered: Arc) { 7 | sleep(Duration::from_secs(2)).await; 8 | println!("Find package in warehouse"); 9 | 10 | sleep(Duration::from_secs(2)).await; 11 | println!("Ship package"); 12 | 13 | sleep(Duration::from_secs(2)).await; 14 | println!("Package has been delivered"); 15 | package_delivered.notify_one(); 16 | } 17 | 18 | async fn grab_package(package_delivered: Arc) { 19 | package_delivered.notified().await; 20 | println!("Look outside house for package"); 21 | sleep(Duration::from_secs(2)).await; 22 | println!("Grab package"); 23 | } 24 | 25 | #[tokio::main] 26 | async fn main() { 27 | let package_delivered = Notify::new(); 28 | let package_delivered_arc = Arc::new(package_delivered); 29 | 30 | let order_package_handle = tokio::spawn( 31 | order_package(package_delivered_arc.clone()) 32 | ); 33 | let grab_package_handle = tokio::spawn( 34 | grab_package(package_delivered_arc.clone()) 35 | ); 36 | 37 | order_package_handle.await.unwrap(); 38 | grab_package_handle.await.unwrap(); 39 | } 40 | -------------------------------------------------------------------------------- /03_11/e/rwlock_example/src/main.rs: -------------------------------------------------------------------------------- 1 | use std::sync::Arc; 2 | 3 | use tokio::sync::RwLock; 4 | use tokio::time::{sleep, Duration}; 5 | 6 | async fn read_from_document(id: i32, document: Arc>) { 7 | let reader = document.read().await; 8 | 9 | println!("reader_{}: {}", id, *reader); 10 | } 11 | 12 | async fn write_to_document(document: Arc>, new_string: &str) { 13 | let mut writer = document.write().await; 14 | 15 | writer.push_str(new_string); 16 | writer.push_str(" "); 17 | } 18 | 19 | #[tokio::main] 20 | async fn main() { 21 | let mut handles = Vec::new(); 22 | let document = Arc::new(RwLock::new("".to_string())); 23 | 24 | for new_string in "I can read and write a b c d e f g h i j k l m n o p q r s t u v w x y z" 25 | .split_whitespace() 26 | { 27 | handles.push(tokio::spawn(read_from_document(1, document.clone()))); 28 | 29 | handles.push(tokio::spawn(write_to_document( 30 | document.clone(), 31 | new_string, 32 | ))); 33 | sleep(Duration::from_millis(1)).await; 34 | 35 | handles.push(tokio::spawn(read_from_document(2, document.clone()))); 36 | handles.push(tokio::spawn(read_from_document(3, document.clone()))); 37 | } 38 | 39 | for handle in handles { 40 | handle.await.unwrap(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Rust: Asynchronous Programming with Tokio 2 | This is the repository for the LinkedIn Learning course Rust: Asynchronous Programming with Tokio. The full course is available from [LinkedIn Learning][lil-course-url]. 3 | 4 | ![Rust: Asynchronous Programming with Tokio][lil-thumbnail-url] 5 | 6 | Asynchronous programming is becoming the de facto coding paradigm of Rust. In this course, senior software engineer and content creator Marcus Willock covers what you need to know about using Tokio, the asynchronous primitives it offers, and the channels it provides. Find out what asynchronous programming is and when to use it. Learn the basics of the asynchronous runtime in Tokio, as well as how to spawn a task, how to test asynchronous code, and more. Explore asynchronous primitives, including mutex, semaphore, notify, barrier, and RwLock. Plus, go over channels, what they are, and how you can use them. 7 | 8 | 9 | ### Instructor 10 | 11 | Marcus Willock 12 | 13 | 14 | 15 | 16 | 17 | Check out my other courses on [LinkedIn Learning](https://www.linkedin.com/learning/instructors/marcus-willock). 18 | 19 | [lil-course-url]: https://www.linkedin.com/learning/rust-asynchronous-programming-with-tokio?dApp=59033956&leis=LAA 20 | [lil-thumbnail-url]: https://media.licdn.com/dms/image/D560DAQHpekbupAbVKQ/learning-public-crop_675_1200/0/1683323010517?e=2147483647&v=beta&t=6sMMnq7KZ7_xTJ_eFjX61XvasBn_kO3SkBEYQqBqzBc 21 | -------------------------------------------------------------------------------- /03_09/e/barrier_example/src/main.rs: -------------------------------------------------------------------------------- 1 | use std::sync::Arc; 2 | 3 | use tokio::sync::{Barrier, BarrierWaitResult, Notify}; 4 | use tokio::time::{sleep, Duration}; 5 | 6 | async fn barrier_example(barrier: Arc, notify: Arc) -> BarrierWaitResult { 7 | println!("Waiting at barrier"); 8 | 9 | let wait_result = barrier.wait().await; 10 | println!("Passed through the barrier"); 11 | 12 | if wait_result.is_leader() { 13 | notify.notify_one(); 14 | } 15 | 16 | wait_result 17 | } 18 | 19 | #[tokio::main] 20 | async fn main() { 21 | let total_cans_needed = 12; 22 | let barrier = Arc::new(Barrier::new(total_cans_needed)); 23 | 24 | let notify = Arc::new(Notify::new()); 25 | 26 | // To send the first batch of cans to the barrier 27 | notify.notify_one(); 28 | 29 | let mut task_handles = Vec::new(); 30 | for can_count in 0..60 { 31 | if can_count % 12 == 0 { 32 | notify.notified().await; 33 | 34 | // Give the barrier some time to close 35 | sleep(Duration::from_millis(1)).await; 36 | } 37 | 38 | task_handles.push(tokio::spawn(barrier_example( 39 | barrier.clone(), 40 | notify.clone(), 41 | ))); 42 | } 43 | 44 | let mut num_of_leaders = 0; 45 | for handle in task_handles { 46 | let wait_result = handle.await.unwrap(); 47 | 48 | if wait_result.is_leader() { 49 | num_of_leaders += 1; 50 | } 51 | } 52 | 53 | println!("total num of leaders: {}", num_of_leaders); 54 | } 55 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | LinkedIn Learning Exercise Files License Agreement 2 | ================================================== 3 | 4 | This License Agreement (the "Agreement") is a binding legal agreement 5 | between you (as an individual or entity, as applicable) and LinkedIn 6 | Corporation (“LinkedIn”). By downloading or using the LinkedIn Learning 7 | exercise files in this repository (“Licensed Materials”), you agree to 8 | be bound by the terms of this Agreement. If you do not agree to these 9 | terms, do not download or use the Licensed Materials. 10 | 11 | 1. License. 12 | - a. Subject to the terms of this Agreement, LinkedIn hereby grants LinkedIn 13 | members during their LinkedIn Learning subscription a non-exclusive, 14 | non-transferable copyright license, for internal use only, to 1) make a 15 | reasonable number of copies of the Licensed Materials, and 2) make 16 | derivative works of the Licensed Materials for the sole purpose of 17 | practicing skills taught in LinkedIn Learning courses. 18 | - b. Distribution. Unless otherwise noted in the Licensed Materials, subject 19 | to the terms of this Agreement, LinkedIn hereby grants LinkedIn members 20 | with a LinkedIn Learning subscription a non-exclusive, non-transferable 21 | copyright license to distribute the Licensed Materials, except the 22 | Licensed Materials may not be included in any product or service (or 23 | otherwise used) to instruct or educate others. 24 | 25 | 2. Restrictions and Intellectual Property. 26 | - a. You may not to use, modify, copy, make derivative works of, publish, 27 | distribute, rent, lease, sell, sublicense, assign or otherwise transfer the 28 | Licensed Materials, except as expressly set forth above in Section 1. 29 | - b. Linkedin (and its licensors) retains its intellectual property rights 30 | in the Licensed Materials. Except as expressly set forth in Section 1, 31 | LinkedIn grants no licenses. 32 | - c. You indemnify LinkedIn and its licensors and affiliates for i) any 33 | alleged infringement or misappropriation of any intellectual property rights 34 | of any third party based on modifications you make to the Licensed Materials, 35 | ii) any claims arising from your use or distribution of all or part of the 36 | Licensed Materials and iii) a breach of this Agreement. You will defend, hold 37 | harmless, and indemnify LinkedIn and its affiliates (and our and their 38 | respective employees, shareholders, and directors) from any claim or action 39 | brought by a third party, including all damages, liabilities, costs and 40 | expenses, including reasonable attorneys’ fees, to the extent resulting from, 41 | alleged to have resulted from, or in connection with: (a) your breach of your 42 | obligations herein; or (b) your use or distribution of any Licensed Materials. 43 | 44 | 3. Open source. This code may include open source software, which may be 45 | subject to other license terms as provided in the files. 46 | 47 | 4. Warranty Disclaimer. LINKEDIN PROVIDES THE LICENSED MATERIALS ON AN “AS IS” 48 | AND “AS AVAILABLE” BASIS. LINKEDIN MAKES NO REPRESENTATION OR WARRANTY, 49 | WHETHER EXPRESS OR IMPLIED, ABOUT THE LICENSED MATERIALS, INCLUDING ANY 50 | REPRESENTATION THAT THE LICENSED MATERIALS WILL BE FREE OF ERRORS, BUGS OR 51 | INTERRUPTIONS, OR THAT THE LICENSED MATERIALS ARE ACCURATE, COMPLETE OR 52 | OTHERWISE VALID. TO THE FULLEST EXTENT PERMITTED BY LAW, LINKEDIN AND ITS 53 | AFFILIATES DISCLAIM ANY IMPLIED OR STATUTORY WARRANTY OR CONDITION, INCLUDING 54 | ANY IMPLIED WARRANTY OR CONDITION OF MERCHANTABILITY OR FITNESS FOR A 55 | PARTICULAR PURPOSE, AVAILABILITY, SECURITY, TITLE AND/OR NON-INFRINGEMENT. 56 | YOUR USE OF THE LICENSED MATERIALS IS AT YOUR OWN DISCRETION AND RISK, AND 57 | YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE THAT RESULTS FROM USE OF THE 58 | LICENSED MATERIALS TO YOUR COMPUTER SYSTEM OR LOSS OF DATA. NO ADVICE OR 59 | INFORMATION, WHETHER ORAL OR WRITTEN, OBTAINED BY YOU FROM US OR THROUGH OR 60 | FROM THE LICENSED MATERIALS WILL CREATE ANY WARRANTY OR CONDITION NOT 61 | EXPRESSLY STATED IN THESE TERMS. 62 | 63 | 5. Limitation of Liability. LINKEDIN SHALL NOT BE LIABLE FOR ANY INDIRECT, 64 | INCIDENTAL, SPECIAL, PUNITIVE, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING 65 | BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA OR OTHER 66 | INTANGIBLE LOSSES . IN NO EVENT WILL LINKEDIN'S AGGREGATE LIABILITY TO YOU 67 | EXCEED $100. THIS LIMITATION OF LIABILITY SHALL: 68 | - i. APPLY REGARDLESS OF WHETHER (A) YOU BASE YOUR CLAIM ON CONTRACT, TORT, 69 | STATUTE, OR ANY OTHER LEGAL THEORY, (B) WE KNEW OR SHOULD HAVE KNOWN ABOUT 70 | THE POSSIBILITY OF SUCH DAMAGES, OR (C) THE LIMITED REMEDIES PROVIDED IN THIS 71 | SECTION FAIL OF THEIR ESSENTIAL PURPOSE; AND 72 | - ii. NOT APPLY TO ANY DAMAGE THAT LINKEDIN MAY CAUSE YOU INTENTIONALLY OR 73 | KNOWINGLY IN VIOLATION OF THESE TERMS OR APPLICABLE LAW, OR AS OTHERWISE 74 | MANDATED BY APPLICABLE LAW THAT CANNOT BE DISCLAIMED IN THESE TERMS. 75 | 76 | 6. Termination. This Agreement automatically terminates upon your breach of 77 | this Agreement or termination of your LinkedIn Learning subscription. On 78 | termination, all licenses granted under this Agreement will terminate 79 | immediately and you will delete the Licensed Materials. Sections 2-7 of this 80 | Agreement survive any termination of this Agreement. LinkedIn may discontinue 81 | the availability of some or all of the Licensed Materials at any time for any 82 | reason. 83 | 84 | 7. Miscellaneous. This Agreement will be governed by and construed in 85 | accordance with the laws of the State of California without regard to conflict 86 | of laws principles. The exclusive forum for any disputes arising out of or 87 | relating to this Agreement shall be an appropriate federal or state court 88 | sitting in the County of Santa Clara, State of California. If LinkedIn does 89 | not act to enforce a breach of this Agreement, that does not mean that 90 | LinkedIn has waived its right to enforce this Agreement. The Agreement does 91 | not create a partnership, agency relationship, or joint venture between the 92 | parties. Neither party has the power or authority to bind the other or to 93 | create any obligation or responsibility on behalf of the other. You may not, 94 | without LinkedIn’s prior written consent, assign or delegate any rights or 95 | obligations under these terms, including in connection with a change of 96 | control. Any purported assignment and delegation shall be ineffective. The 97 | Agreement shall bind and inure to the benefit of the parties, their respective 98 | successors and permitted assigns. If any provision of the Agreement is 99 | unenforceable, that provision will be modified to render it enforceable to the 100 | extent possible to give effect to the parties’ intentions and the remaining 101 | provisions will not be affected. This Agreement is the only agreement between 102 | you and LinkedIn regarding the Licensed Materials, and supersedes all prior 103 | agreements relating to the Licensed Materials. 104 | 105 | Last Updated: March 2019 106 | -------------------------------------------------------------------------------- /03_03/b/mutex_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "mutex_example" 83 | version = "0.1.0" 84 | dependencies = [ 85 | "tokio", 86 | ] 87 | 88 | [[package]] 89 | name = "num_cpus" 90 | version = "1.15.0" 91 | source = "registry+https://github.com/rust-lang/crates.io-index" 92 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 93 | dependencies = [ 94 | "hermit-abi", 95 | "libc", 96 | ] 97 | 98 | [[package]] 99 | name = "parking_lot" 100 | version = "0.12.1" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 103 | dependencies = [ 104 | "lock_api", 105 | "parking_lot_core", 106 | ] 107 | 108 | [[package]] 109 | name = "parking_lot_core" 110 | version = "0.9.5" 111 | source = "registry+https://github.com/rust-lang/crates.io-index" 112 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 113 | dependencies = [ 114 | "cfg-if", 115 | "libc", 116 | "redox_syscall", 117 | "smallvec", 118 | "windows-sys", 119 | ] 120 | 121 | [[package]] 122 | name = "pin-project-lite" 123 | version = "0.2.9" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 126 | 127 | [[package]] 128 | name = "proc-macro2" 129 | version = "1.0.49" 130 | source = "registry+https://github.com/rust-lang/crates.io-index" 131 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 132 | dependencies = [ 133 | "unicode-ident", 134 | ] 135 | 136 | [[package]] 137 | name = "quote" 138 | version = "1.0.23" 139 | source = "registry+https://github.com/rust-lang/crates.io-index" 140 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 141 | dependencies = [ 142 | "proc-macro2", 143 | ] 144 | 145 | [[package]] 146 | name = "redox_syscall" 147 | version = "0.2.16" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 150 | dependencies = [ 151 | "bitflags", 152 | ] 153 | 154 | [[package]] 155 | name = "scopeguard" 156 | version = "1.1.0" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /03_03/e/mutex_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "mutex_example" 83 | version = "0.1.0" 84 | dependencies = [ 85 | "tokio", 86 | ] 87 | 88 | [[package]] 89 | name = "num_cpus" 90 | version = "1.15.0" 91 | source = "registry+https://github.com/rust-lang/crates.io-index" 92 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 93 | dependencies = [ 94 | "hermit-abi", 95 | "libc", 96 | ] 97 | 98 | [[package]] 99 | name = "parking_lot" 100 | version = "0.12.1" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 103 | dependencies = [ 104 | "lock_api", 105 | "parking_lot_core", 106 | ] 107 | 108 | [[package]] 109 | name = "parking_lot_core" 110 | version = "0.9.5" 111 | source = "registry+https://github.com/rust-lang/crates.io-index" 112 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 113 | dependencies = [ 114 | "cfg-if", 115 | "libc", 116 | "redox_syscall", 117 | "smallvec", 118 | "windows-sys", 119 | ] 120 | 121 | [[package]] 122 | name = "pin-project-lite" 123 | version = "0.2.9" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 126 | 127 | [[package]] 128 | name = "proc-macro2" 129 | version = "1.0.49" 130 | source = "registry+https://github.com/rust-lang/crates.io-index" 131 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 132 | dependencies = [ 133 | "unicode-ident", 134 | ] 135 | 136 | [[package]] 137 | name = "quote" 138 | version = "1.0.23" 139 | source = "registry+https://github.com/rust-lang/crates.io-index" 140 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 141 | dependencies = [ 142 | "proc-macro2", 143 | ] 144 | 145 | [[package]] 146 | name = "redox_syscall" 147 | version = "0.2.16" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 150 | dependencies = [ 151 | "bitflags", 152 | ] 153 | 154 | [[package]] 155 | name = "scopeguard" 156 | version = "1.1.0" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /03_07/b/notify_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "notify_example" 83 | version = "0.1.0" 84 | dependencies = [ 85 | "tokio", 86 | ] 87 | 88 | [[package]] 89 | name = "num_cpus" 90 | version = "1.15.0" 91 | source = "registry+https://github.com/rust-lang/crates.io-index" 92 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 93 | dependencies = [ 94 | "hermit-abi", 95 | "libc", 96 | ] 97 | 98 | [[package]] 99 | name = "parking_lot" 100 | version = "0.12.1" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 103 | dependencies = [ 104 | "lock_api", 105 | "parking_lot_core", 106 | ] 107 | 108 | [[package]] 109 | name = "parking_lot_core" 110 | version = "0.9.5" 111 | source = "registry+https://github.com/rust-lang/crates.io-index" 112 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 113 | dependencies = [ 114 | "cfg-if", 115 | "libc", 116 | "redox_syscall", 117 | "smallvec", 118 | "windows-sys", 119 | ] 120 | 121 | [[package]] 122 | name = "pin-project-lite" 123 | version = "0.2.9" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 126 | 127 | [[package]] 128 | name = "proc-macro2" 129 | version = "1.0.49" 130 | source = "registry+https://github.com/rust-lang/crates.io-index" 131 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 132 | dependencies = [ 133 | "unicode-ident", 134 | ] 135 | 136 | [[package]] 137 | name = "quote" 138 | version = "1.0.23" 139 | source = "registry+https://github.com/rust-lang/crates.io-index" 140 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 141 | dependencies = [ 142 | "proc-macro2", 143 | ] 144 | 145 | [[package]] 146 | name = "redox_syscall" 147 | version = "0.2.16" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 150 | dependencies = [ 151 | "bitflags", 152 | ] 153 | 154 | [[package]] 155 | name = "scopeguard" 156 | version = "1.1.0" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /03_07/e/notify_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "notify_example" 83 | version = "0.1.0" 84 | dependencies = [ 85 | "tokio", 86 | ] 87 | 88 | [[package]] 89 | name = "num_cpus" 90 | version = "1.15.0" 91 | source = "registry+https://github.com/rust-lang/crates.io-index" 92 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 93 | dependencies = [ 94 | "hermit-abi", 95 | "libc", 96 | ] 97 | 98 | [[package]] 99 | name = "parking_lot" 100 | version = "0.12.1" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 103 | dependencies = [ 104 | "lock_api", 105 | "parking_lot_core", 106 | ] 107 | 108 | [[package]] 109 | name = "parking_lot_core" 110 | version = "0.9.5" 111 | source = "registry+https://github.com/rust-lang/crates.io-index" 112 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 113 | dependencies = [ 114 | "cfg-if", 115 | "libc", 116 | "redox_syscall", 117 | "smallvec", 118 | "windows-sys", 119 | ] 120 | 121 | [[package]] 122 | name = "pin-project-lite" 123 | version = "0.2.9" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 126 | 127 | [[package]] 128 | name = "proc-macro2" 129 | version = "1.0.49" 130 | source = "registry+https://github.com/rust-lang/crates.io-index" 131 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 132 | dependencies = [ 133 | "unicode-ident", 134 | ] 135 | 136 | [[package]] 137 | name = "quote" 138 | version = "1.0.23" 139 | source = "registry+https://github.com/rust-lang/crates.io-index" 140 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 141 | dependencies = [ 142 | "proc-macro2", 143 | ] 144 | 145 | [[package]] 146 | name = "redox_syscall" 147 | version = "0.2.16" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 150 | dependencies = [ 151 | "bitflags", 152 | ] 153 | 154 | [[package]] 155 | name = "scopeguard" 156 | version = "1.1.0" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /03_11/b/rwlock_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "num_cpus" 83 | version = "1.15.0" 84 | source = "registry+https://github.com/rust-lang/crates.io-index" 85 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 86 | dependencies = [ 87 | "hermit-abi", 88 | "libc", 89 | ] 90 | 91 | [[package]] 92 | name = "parking_lot" 93 | version = "0.12.1" 94 | source = "registry+https://github.com/rust-lang/crates.io-index" 95 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 96 | dependencies = [ 97 | "lock_api", 98 | "parking_lot_core", 99 | ] 100 | 101 | [[package]] 102 | name = "parking_lot_core" 103 | version = "0.9.5" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 106 | dependencies = [ 107 | "cfg-if", 108 | "libc", 109 | "redox_syscall", 110 | "smallvec", 111 | "windows-sys", 112 | ] 113 | 114 | [[package]] 115 | name = "pin-project-lite" 116 | version = "0.2.9" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 119 | 120 | [[package]] 121 | name = "proc-macro2" 122 | version = "1.0.49" 123 | source = "registry+https://github.com/rust-lang/crates.io-index" 124 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 125 | dependencies = [ 126 | "unicode-ident", 127 | ] 128 | 129 | [[package]] 130 | name = "quote" 131 | version = "1.0.23" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 134 | dependencies = [ 135 | "proc-macro2", 136 | ] 137 | 138 | [[package]] 139 | name = "redox_syscall" 140 | version = "0.2.16" 141 | source = "registry+https://github.com/rust-lang/crates.io-index" 142 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 143 | dependencies = [ 144 | "bitflags", 145 | ] 146 | 147 | [[package]] 148 | name = "rwlock_example" 149 | version = "0.1.0" 150 | dependencies = [ 151 | "tokio", 152 | ] 153 | 154 | [[package]] 155 | name = "scopeguard" 156 | version = "1.1.0" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /03_11/e/rwlock_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "num_cpus" 83 | version = "1.15.0" 84 | source = "registry+https://github.com/rust-lang/crates.io-index" 85 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 86 | dependencies = [ 87 | "hermit-abi", 88 | "libc", 89 | ] 90 | 91 | [[package]] 92 | name = "parking_lot" 93 | version = "0.12.1" 94 | source = "registry+https://github.com/rust-lang/crates.io-index" 95 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 96 | dependencies = [ 97 | "lock_api", 98 | "parking_lot_core", 99 | ] 100 | 101 | [[package]] 102 | name = "parking_lot_core" 103 | version = "0.9.5" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 106 | dependencies = [ 107 | "cfg-if", 108 | "libc", 109 | "redox_syscall", 110 | "smallvec", 111 | "windows-sys", 112 | ] 113 | 114 | [[package]] 115 | name = "pin-project-lite" 116 | version = "0.2.9" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 119 | 120 | [[package]] 121 | name = "proc-macro2" 122 | version = "1.0.49" 123 | source = "registry+https://github.com/rust-lang/crates.io-index" 124 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 125 | dependencies = [ 126 | "unicode-ident", 127 | ] 128 | 129 | [[package]] 130 | name = "quote" 131 | version = "1.0.23" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 134 | dependencies = [ 135 | "proc-macro2", 136 | ] 137 | 138 | [[package]] 139 | name = "redox_syscall" 140 | version = "0.2.16" 141 | source = "registry+https://github.com/rust-lang/crates.io-index" 142 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 143 | dependencies = [ 144 | "bitflags", 145 | ] 146 | 147 | [[package]] 148 | name = "rwlock_example" 149 | version = "0.1.0" 150 | dependencies = [ 151 | "tokio", 152 | ] 153 | 154 | [[package]] 155 | name = "scopeguard" 156 | version = "1.1.0" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /03_09/b/barrier_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "barrier_example" 13 | version = "0.1.0" 14 | dependencies = [ 15 | "tokio", 16 | ] 17 | 18 | [[package]] 19 | name = "bitflags" 20 | version = "1.3.2" 21 | source = "registry+https://github.com/rust-lang/crates.io-index" 22 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 23 | 24 | [[package]] 25 | name = "bytes" 26 | version = "1.3.0" 27 | source = "registry+https://github.com/rust-lang/crates.io-index" 28 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 29 | 30 | [[package]] 31 | name = "cfg-if" 32 | version = "1.0.0" 33 | source = "registry+https://github.com/rust-lang/crates.io-index" 34 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 35 | 36 | [[package]] 37 | name = "hermit-abi" 38 | version = "0.2.6" 39 | source = "registry+https://github.com/rust-lang/crates.io-index" 40 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 41 | dependencies = [ 42 | "libc", 43 | ] 44 | 45 | [[package]] 46 | name = "libc" 47 | version = "0.2.139" 48 | source = "registry+https://github.com/rust-lang/crates.io-index" 49 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 50 | 51 | [[package]] 52 | name = "lock_api" 53 | version = "0.4.9" 54 | source = "registry+https://github.com/rust-lang/crates.io-index" 55 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 56 | dependencies = [ 57 | "autocfg", 58 | "scopeguard", 59 | ] 60 | 61 | [[package]] 62 | name = "log" 63 | version = "0.4.17" 64 | source = "registry+https://github.com/rust-lang/crates.io-index" 65 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 66 | dependencies = [ 67 | "cfg-if", 68 | ] 69 | 70 | [[package]] 71 | name = "memchr" 72 | version = "2.5.0" 73 | source = "registry+https://github.com/rust-lang/crates.io-index" 74 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 75 | 76 | [[package]] 77 | name = "mio" 78 | version = "0.8.5" 79 | source = "registry+https://github.com/rust-lang/crates.io-index" 80 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 81 | dependencies = [ 82 | "libc", 83 | "log", 84 | "wasi", 85 | "windows-sys", 86 | ] 87 | 88 | [[package]] 89 | name = "num_cpus" 90 | version = "1.15.0" 91 | source = "registry+https://github.com/rust-lang/crates.io-index" 92 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 93 | dependencies = [ 94 | "hermit-abi", 95 | "libc", 96 | ] 97 | 98 | [[package]] 99 | name = "parking_lot" 100 | version = "0.12.1" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 103 | dependencies = [ 104 | "lock_api", 105 | "parking_lot_core", 106 | ] 107 | 108 | [[package]] 109 | name = "parking_lot_core" 110 | version = "0.9.5" 111 | source = "registry+https://github.com/rust-lang/crates.io-index" 112 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 113 | dependencies = [ 114 | "cfg-if", 115 | "libc", 116 | "redox_syscall", 117 | "smallvec", 118 | "windows-sys", 119 | ] 120 | 121 | [[package]] 122 | name = "pin-project-lite" 123 | version = "0.2.9" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 126 | 127 | [[package]] 128 | name = "proc-macro2" 129 | version = "1.0.49" 130 | source = "registry+https://github.com/rust-lang/crates.io-index" 131 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 132 | dependencies = [ 133 | "unicode-ident", 134 | ] 135 | 136 | [[package]] 137 | name = "quote" 138 | version = "1.0.23" 139 | source = "registry+https://github.com/rust-lang/crates.io-index" 140 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 141 | dependencies = [ 142 | "proc-macro2", 143 | ] 144 | 145 | [[package]] 146 | name = "redox_syscall" 147 | version = "0.2.16" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 150 | dependencies = [ 151 | "bitflags", 152 | ] 153 | 154 | [[package]] 155 | name = "scopeguard" 156 | version = "1.1.0" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /03_09/e/barrier_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "barrier_example" 13 | version = "0.1.0" 14 | dependencies = [ 15 | "tokio", 16 | ] 17 | 18 | [[package]] 19 | name = "bitflags" 20 | version = "1.3.2" 21 | source = "registry+https://github.com/rust-lang/crates.io-index" 22 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 23 | 24 | [[package]] 25 | name = "bytes" 26 | version = "1.3.0" 27 | source = "registry+https://github.com/rust-lang/crates.io-index" 28 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 29 | 30 | [[package]] 31 | name = "cfg-if" 32 | version = "1.0.0" 33 | source = "registry+https://github.com/rust-lang/crates.io-index" 34 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 35 | 36 | [[package]] 37 | name = "hermit-abi" 38 | version = "0.2.6" 39 | source = "registry+https://github.com/rust-lang/crates.io-index" 40 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 41 | dependencies = [ 42 | "libc", 43 | ] 44 | 45 | [[package]] 46 | name = "libc" 47 | version = "0.2.139" 48 | source = "registry+https://github.com/rust-lang/crates.io-index" 49 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 50 | 51 | [[package]] 52 | name = "lock_api" 53 | version = "0.4.9" 54 | source = "registry+https://github.com/rust-lang/crates.io-index" 55 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 56 | dependencies = [ 57 | "autocfg", 58 | "scopeguard", 59 | ] 60 | 61 | [[package]] 62 | name = "log" 63 | version = "0.4.17" 64 | source = "registry+https://github.com/rust-lang/crates.io-index" 65 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 66 | dependencies = [ 67 | "cfg-if", 68 | ] 69 | 70 | [[package]] 71 | name = "memchr" 72 | version = "2.5.0" 73 | source = "registry+https://github.com/rust-lang/crates.io-index" 74 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 75 | 76 | [[package]] 77 | name = "mio" 78 | version = "0.8.5" 79 | source = "registry+https://github.com/rust-lang/crates.io-index" 80 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 81 | dependencies = [ 82 | "libc", 83 | "log", 84 | "wasi", 85 | "windows-sys", 86 | ] 87 | 88 | [[package]] 89 | name = "num_cpus" 90 | version = "1.15.0" 91 | source = "registry+https://github.com/rust-lang/crates.io-index" 92 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 93 | dependencies = [ 94 | "hermit-abi", 95 | "libc", 96 | ] 97 | 98 | [[package]] 99 | name = "parking_lot" 100 | version = "0.12.1" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 103 | dependencies = [ 104 | "lock_api", 105 | "parking_lot_core", 106 | ] 107 | 108 | [[package]] 109 | name = "parking_lot_core" 110 | version = "0.9.5" 111 | source = "registry+https://github.com/rust-lang/crates.io-index" 112 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 113 | dependencies = [ 114 | "cfg-if", 115 | "libc", 116 | "redox_syscall", 117 | "smallvec", 118 | "windows-sys", 119 | ] 120 | 121 | [[package]] 122 | name = "pin-project-lite" 123 | version = "0.2.9" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 126 | 127 | [[package]] 128 | name = "proc-macro2" 129 | version = "1.0.49" 130 | source = "registry+https://github.com/rust-lang/crates.io-index" 131 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 132 | dependencies = [ 133 | "unicode-ident", 134 | ] 135 | 136 | [[package]] 137 | name = "quote" 138 | version = "1.0.23" 139 | source = "registry+https://github.com/rust-lang/crates.io-index" 140 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 141 | dependencies = [ 142 | "proc-macro2", 143 | ] 144 | 145 | [[package]] 146 | name = "redox_syscall" 147 | version = "0.2.16" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 150 | dependencies = [ 151 | "bitflags", 152 | ] 153 | 154 | [[package]] 155 | name = "scopeguard" 156 | version = "1.1.0" 157 | source = "registry+https://github.com/rust-lang/crates.io-index" 158 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /03_05/b/semaphore_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "num_cpus" 83 | version = "1.15.0" 84 | source = "registry+https://github.com/rust-lang/crates.io-index" 85 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 86 | dependencies = [ 87 | "hermit-abi", 88 | "libc", 89 | ] 90 | 91 | [[package]] 92 | name = "parking_lot" 93 | version = "0.12.1" 94 | source = "registry+https://github.com/rust-lang/crates.io-index" 95 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 96 | dependencies = [ 97 | "lock_api", 98 | "parking_lot_core", 99 | ] 100 | 101 | [[package]] 102 | name = "parking_lot_core" 103 | version = "0.9.5" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 106 | dependencies = [ 107 | "cfg-if", 108 | "libc", 109 | "redox_syscall", 110 | "smallvec", 111 | "windows-sys", 112 | ] 113 | 114 | [[package]] 115 | name = "pin-project-lite" 116 | version = "0.2.9" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 119 | 120 | [[package]] 121 | name = "proc-macro2" 122 | version = "1.0.49" 123 | source = "registry+https://github.com/rust-lang/crates.io-index" 124 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 125 | dependencies = [ 126 | "unicode-ident", 127 | ] 128 | 129 | [[package]] 130 | name = "quote" 131 | version = "1.0.23" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 134 | dependencies = [ 135 | "proc-macro2", 136 | ] 137 | 138 | [[package]] 139 | name = "redox_syscall" 140 | version = "0.2.16" 141 | source = "registry+https://github.com/rust-lang/crates.io-index" 142 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 143 | dependencies = [ 144 | "bitflags", 145 | ] 146 | 147 | [[package]] 148 | name = "scopeguard" 149 | version = "1.1.0" 150 | source = "registry+https://github.com/rust-lang/crates.io-index" 151 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 152 | 153 | [[package]] 154 | name = "semaphore_example" 155 | version = "0.1.0" 156 | dependencies = [ 157 | "tokio", 158 | ] 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /03_05/e/semaphore_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "num_cpus" 83 | version = "1.15.0" 84 | source = "registry+https://github.com/rust-lang/crates.io-index" 85 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 86 | dependencies = [ 87 | "hermit-abi", 88 | "libc", 89 | ] 90 | 91 | [[package]] 92 | name = "parking_lot" 93 | version = "0.12.1" 94 | source = "registry+https://github.com/rust-lang/crates.io-index" 95 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 96 | dependencies = [ 97 | "lock_api", 98 | "parking_lot_core", 99 | ] 100 | 101 | [[package]] 102 | name = "parking_lot_core" 103 | version = "0.9.5" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 106 | dependencies = [ 107 | "cfg-if", 108 | "libc", 109 | "redox_syscall", 110 | "smallvec", 111 | "windows-sys", 112 | ] 113 | 114 | [[package]] 115 | name = "pin-project-lite" 116 | version = "0.2.9" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 119 | 120 | [[package]] 121 | name = "proc-macro2" 122 | version = "1.0.49" 123 | source = "registry+https://github.com/rust-lang/crates.io-index" 124 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 125 | dependencies = [ 126 | "unicode-ident", 127 | ] 128 | 129 | [[package]] 130 | name = "quote" 131 | version = "1.0.23" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 134 | dependencies = [ 135 | "proc-macro2", 136 | ] 137 | 138 | [[package]] 139 | name = "redox_syscall" 140 | version = "0.2.16" 141 | source = "registry+https://github.com/rust-lang/crates.io-index" 142 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 143 | dependencies = [ 144 | "bitflags", 145 | ] 146 | 147 | [[package]] 148 | name = "scopeguard" 149 | version = "1.1.0" 150 | source = "registry+https://github.com/rust-lang/crates.io-index" 151 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 152 | 153 | [[package]] 154 | name = "semaphore_example" 155 | version = "0.1.0" 156 | dependencies = [ 157 | "tokio", 158 | ] 159 | 160 | [[package]] 161 | name = "signal-hook-registry" 162 | version = "1.4.0" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 165 | dependencies = [ 166 | "libc", 167 | ] 168 | 169 | [[package]] 170 | name = "smallvec" 171 | version = "1.10.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 174 | 175 | [[package]] 176 | name = "socket2" 177 | version = "0.4.7" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 180 | dependencies = [ 181 | "libc", 182 | "winapi", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /02_05/b/spawning_tasks_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "num_cpus" 83 | version = "1.15.0" 84 | source = "registry+https://github.com/rust-lang/crates.io-index" 85 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 86 | dependencies = [ 87 | "hermit-abi", 88 | "libc", 89 | ] 90 | 91 | [[package]] 92 | name = "parking_lot" 93 | version = "0.12.1" 94 | source = "registry+https://github.com/rust-lang/crates.io-index" 95 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 96 | dependencies = [ 97 | "lock_api", 98 | "parking_lot_core", 99 | ] 100 | 101 | [[package]] 102 | name = "parking_lot_core" 103 | version = "0.9.5" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 106 | dependencies = [ 107 | "cfg-if", 108 | "libc", 109 | "redox_syscall", 110 | "smallvec", 111 | "windows-sys", 112 | ] 113 | 114 | [[package]] 115 | name = "pin-project-lite" 116 | version = "0.2.9" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 119 | 120 | [[package]] 121 | name = "proc-macro2" 122 | version = "1.0.49" 123 | source = "registry+https://github.com/rust-lang/crates.io-index" 124 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 125 | dependencies = [ 126 | "unicode-ident", 127 | ] 128 | 129 | [[package]] 130 | name = "quote" 131 | version = "1.0.23" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 134 | dependencies = [ 135 | "proc-macro2", 136 | ] 137 | 138 | [[package]] 139 | name = "redox_syscall" 140 | version = "0.2.16" 141 | source = "registry+https://github.com/rust-lang/crates.io-index" 142 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 143 | dependencies = [ 144 | "bitflags", 145 | ] 146 | 147 | [[package]] 148 | name = "scopeguard" 149 | version = "1.1.0" 150 | source = "registry+https://github.com/rust-lang/crates.io-index" 151 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 152 | 153 | [[package]] 154 | name = "signal-hook-registry" 155 | version = "1.4.0" 156 | source = "registry+https://github.com/rust-lang/crates.io-index" 157 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 158 | dependencies = [ 159 | "libc", 160 | ] 161 | 162 | [[package]] 163 | name = "smallvec" 164 | version = "1.10.0" 165 | source = "registry+https://github.com/rust-lang/crates.io-index" 166 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 167 | 168 | [[package]] 169 | name = "socket2" 170 | version = "0.4.7" 171 | source = "registry+https://github.com/rust-lang/crates.io-index" 172 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 173 | dependencies = [ 174 | "libc", 175 | "winapi", 176 | ] 177 | 178 | [[package]] 179 | name = "spawning_tasks_example" 180 | version = "0.1.0" 181 | dependencies = [ 182 | "tokio", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | -------------------------------------------------------------------------------- /02_05/e/spawning_tasks_example/Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "autocfg" 7 | version = "1.1.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "1.3.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 | 17 | [[package]] 18 | name = "bytes" 19 | version = "1.3.0" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" 22 | 23 | [[package]] 24 | name = "cfg-if" 25 | version = "1.0.0" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 28 | 29 | [[package]] 30 | name = "hermit-abi" 31 | version = "0.2.6" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" 34 | dependencies = [ 35 | "libc", 36 | ] 37 | 38 | [[package]] 39 | name = "libc" 40 | version = "0.2.139" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" 43 | 44 | [[package]] 45 | name = "lock_api" 46 | version = "0.4.9" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" 49 | dependencies = [ 50 | "autocfg", 51 | "scopeguard", 52 | ] 53 | 54 | [[package]] 55 | name = "log" 56 | version = "0.4.17" 57 | source = "registry+https://github.com/rust-lang/crates.io-index" 58 | checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" 59 | dependencies = [ 60 | "cfg-if", 61 | ] 62 | 63 | [[package]] 64 | name = "memchr" 65 | version = "2.5.0" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 68 | 69 | [[package]] 70 | name = "mio" 71 | version = "0.8.5" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de" 74 | dependencies = [ 75 | "libc", 76 | "log", 77 | "wasi", 78 | "windows-sys", 79 | ] 80 | 81 | [[package]] 82 | name = "num_cpus" 83 | version = "1.15.0" 84 | source = "registry+https://github.com/rust-lang/crates.io-index" 85 | checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" 86 | dependencies = [ 87 | "hermit-abi", 88 | "libc", 89 | ] 90 | 91 | [[package]] 92 | name = "parking_lot" 93 | version = "0.12.1" 94 | source = "registry+https://github.com/rust-lang/crates.io-index" 95 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 96 | dependencies = [ 97 | "lock_api", 98 | "parking_lot_core", 99 | ] 100 | 101 | [[package]] 102 | name = "parking_lot_core" 103 | version = "0.9.5" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" 106 | dependencies = [ 107 | "cfg-if", 108 | "libc", 109 | "redox_syscall", 110 | "smallvec", 111 | "windows-sys", 112 | ] 113 | 114 | [[package]] 115 | name = "pin-project-lite" 116 | version = "0.2.9" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" 119 | 120 | [[package]] 121 | name = "proc-macro2" 122 | version = "1.0.49" 123 | source = "registry+https://github.com/rust-lang/crates.io-index" 124 | checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" 125 | dependencies = [ 126 | "unicode-ident", 127 | ] 128 | 129 | [[package]] 130 | name = "quote" 131 | version = "1.0.23" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b" 134 | dependencies = [ 135 | "proc-macro2", 136 | ] 137 | 138 | [[package]] 139 | name = "redox_syscall" 140 | version = "0.2.16" 141 | source = "registry+https://github.com/rust-lang/crates.io-index" 142 | checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" 143 | dependencies = [ 144 | "bitflags", 145 | ] 146 | 147 | [[package]] 148 | name = "scopeguard" 149 | version = "1.1.0" 150 | source = "registry+https://github.com/rust-lang/crates.io-index" 151 | checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" 152 | 153 | [[package]] 154 | name = "signal-hook-registry" 155 | version = "1.4.0" 156 | source = "registry+https://github.com/rust-lang/crates.io-index" 157 | checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" 158 | dependencies = [ 159 | "libc", 160 | ] 161 | 162 | [[package]] 163 | name = "smallvec" 164 | version = "1.10.0" 165 | source = "registry+https://github.com/rust-lang/crates.io-index" 166 | checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" 167 | 168 | [[package]] 169 | name = "socket2" 170 | version = "0.4.7" 171 | source = "registry+https://github.com/rust-lang/crates.io-index" 172 | checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" 173 | dependencies = [ 174 | "libc", 175 | "winapi", 176 | ] 177 | 178 | [[package]] 179 | name = "spawning_tasks_example" 180 | version = "0.1.0" 181 | dependencies = [ 182 | "tokio", 183 | ] 184 | 185 | [[package]] 186 | name = "syn" 187 | version = "1.0.107" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "1f4064b5b16e03ae50984a5a8ed5d4f8803e6bc1fd170a3cda91a1be4b18e3f5" 190 | dependencies = [ 191 | "proc-macro2", 192 | "quote", 193 | "unicode-ident", 194 | ] 195 | 196 | [[package]] 197 | name = "tokio" 198 | version = "1.24.1" 199 | source = "registry+https://github.com/rust-lang/crates.io-index" 200 | checksum = "1d9f76183f91ecfb55e1d7d5602bd1d979e38a3a522fe900241cf195624d67ae" 201 | dependencies = [ 202 | "autocfg", 203 | "bytes", 204 | "libc", 205 | "memchr", 206 | "mio", 207 | "num_cpus", 208 | "parking_lot", 209 | "pin-project-lite", 210 | "signal-hook-registry", 211 | "socket2", 212 | "tokio-macros", 213 | "windows-sys", 214 | ] 215 | 216 | [[package]] 217 | name = "tokio-macros" 218 | version = "1.8.2" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" 221 | dependencies = [ 222 | "proc-macro2", 223 | "quote", 224 | "syn", 225 | ] 226 | 227 | [[package]] 228 | name = "unicode-ident" 229 | version = "1.0.6" 230 | source = "registry+https://github.com/rust-lang/crates.io-index" 231 | checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" 232 | 233 | [[package]] 234 | name = "wasi" 235 | version = "0.11.0+wasi-snapshot-preview1" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 238 | 239 | [[package]] 240 | name = "winapi" 241 | version = "0.3.9" 242 | source = "registry+https://github.com/rust-lang/crates.io-index" 243 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 244 | dependencies = [ 245 | "winapi-i686-pc-windows-gnu", 246 | "winapi-x86_64-pc-windows-gnu", 247 | ] 248 | 249 | [[package]] 250 | name = "winapi-i686-pc-windows-gnu" 251 | version = "0.4.0" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 254 | 255 | [[package]] 256 | name = "winapi-x86_64-pc-windows-gnu" 257 | version = "0.4.0" 258 | source = "registry+https://github.com/rust-lang/crates.io-index" 259 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 260 | 261 | [[package]] 262 | name = "windows-sys" 263 | version = "0.42.0" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" 266 | dependencies = [ 267 | "windows_aarch64_gnullvm", 268 | "windows_aarch64_msvc", 269 | "windows_i686_gnu", 270 | "windows_i686_msvc", 271 | "windows_x86_64_gnu", 272 | "windows_x86_64_gnullvm", 273 | "windows_x86_64_msvc", 274 | ] 275 | 276 | [[package]] 277 | name = "windows_aarch64_gnullvm" 278 | version = "0.42.0" 279 | source = "registry+https://github.com/rust-lang/crates.io-index" 280 | checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" 281 | 282 | [[package]] 283 | name = "windows_aarch64_msvc" 284 | version = "0.42.0" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" 287 | 288 | [[package]] 289 | name = "windows_i686_gnu" 290 | version = "0.42.0" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" 293 | 294 | [[package]] 295 | name = "windows_i686_msvc" 296 | version = "0.42.0" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" 299 | 300 | [[package]] 301 | name = "windows_x86_64_gnu" 302 | version = "0.42.0" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" 305 | 306 | [[package]] 307 | name = "windows_x86_64_gnullvm" 308 | version = "0.42.0" 309 | source = "registry+https://github.com/rust-lang/crates.io-index" 310 | checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" 311 | 312 | [[package]] 313 | name = "windows_x86_64_msvc" 314 | version = "0.42.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" 317 | --------------------------------------------------------------------------------