| 1 | [package] |
| 2 | name = "send_wrapper" |
| 3 | version = "0.6.0" |
| 4 | edition = "2018" |
| 5 | authors = ["Thomas Keh" ] |
| 6 | license = "MIT/Apache-2.0" |
| 7 | description = "" " |
| 8 | This Rust library implements a wrapper type called SendWrapper which allows you to move around non-Send types |
| 9 | between threads, as long as you access the contained value only from within the original thread. You also have to |
| 10 | make sure that the wrapper is dropped from within the original thread. If any of these constraints is violated, |
| 11 | a panic occurs." "" |
| 12 | keywords = ["send" , "wrapper" , "thread_local" ] |
| 13 | readme = "README.md" |
| 14 | repository = "https://github.com/thk1/send_wrapper" |
| 15 | documentation = "https://docs.rs/send_wrapper" |
| 16 | categories = ["rust-patterns" ] |
| 17 | |
| 18 | [features] |
| 19 | futures = ["futures-core" ] |
| 20 | |
| 21 | [dependencies] |
| 22 | futures-core = { version = "0.3" , optional = true } |
| 23 | |
| 24 | [dev-dependencies] |
| 25 | futures-executor = "0.3" |
| 26 | futures-util = "0.3" |
| 27 | |
| 28 | [package.metadata.docs.rs] |
| 29 | all-features = true |
| 30 | # Needed to add "Available on crate feature `futures` only." messages to docs |
| 31 | rustdoc-args = ["--cfg" , "docsrs" ] |
| 32 | |