{"id":22856560,"url":"https://github.com/bamidev/unsafe-send-sync","last_synced_at":"2025-12-12T14:35:07.041Z","repository":{"id":57671153,"uuid":"309755279","full_name":"bamidev/unsafe-send-sync","owner":"bamidev","description":"Unsafe wrappers for making structs Send and/or Sync in Rust.","archived":false,"fork":false,"pushed_at":"2023-01-30T09:22:46.000Z","size":6,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T20:07:18.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bamidev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-03T17:10:17.000Z","updated_at":"2024-01-15T09:46:44.000Z","dependencies_parsed_at":"2023-02-16T06:00:38.689Z","dependency_job_id":null,"html_url":"https://github.com/bamidev/unsafe-send-sync","commit_stats":null,"previous_names":["bamilab/unsafe-send-sync"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamidev%2Funsafe-send-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamidev%2Funsafe-send-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamidev%2Funsafe-send-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamidev%2Funsafe-send-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bamidev","download_url":"https://codeload.github.com/bamidev/unsafe-send-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436094,"owners_count":20776965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T08:08:53.528Z","updated_at":"2025-12-12T14:35:06.986Z","avatar_url":"https://github.com/bamidev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unsafe Send Sync\r\n\r\nThis is a Rust package that basically provides 3 wrapper types.\r\n* UnsafeSend\r\n* UnsafeSync\r\n* UnsafeSendSync\r\n\r\nThey can be used to force structs to be Send and/or Sync, which is unsafe of course.\r\n\r\n## Example\r\n\r\n```rust\r\nuse std::thread;\r\nuse std::rc::Rc;\r\n\r\nfn main() {\r\n    let not_send = UnsafeSend::new( Rc::\u003cu32\u003e::new( 1337 ) );\r\n    \r\n    assert!( not_send.strong_count() == 1,\r\n        \"We can't really send a reference counted pointer across threads unless it only has one reference.\" );\r\n    \r\n    thread::spawn(move || {\r\n        println!(\"We found a number: {}\", *not_send);\r\n    });\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamidev%2Funsafe-send-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbamidev%2Funsafe-send-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamidev%2Funsafe-send-sync/lists"}