{"id":33939211,"url":"https://github.com/darkrpc/dark-std","last_synced_at":"2026-04-08T19:30:58.269Z","repository":{"id":57616082,"uuid":"467010681","full_name":"darkrpc/dark-std","owner":"darkrpc","description":"an Implementation of asynchronous containers build on tokio. It uses a read-write separation design borrowed from Golang","archived":false,"fork":false,"pushed_at":"2025-12-20T08:25:32.000Z","size":105,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T14:47:59.804Z","etag":null,"topics":["async","syncmap"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkrpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-07T08:41:33.000Z","updated_at":"2025-12-20T08:25:36.000Z","dependencies_parsed_at":"2022-08-27T07:30:59.100Z","dependency_job_id":"ce83bc9e-f8c1-4cdd-b79b-e6d12008f340","html_url":"https://github.com/darkrpc/dark-std","commit_stats":{"total_commits":63,"total_committers":1,"mean_commits":63.0,"dds":0.0,"last_synced_commit":"4d643a970bc5852b07337824b478b05225efd7b4"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/darkrpc/dark-std","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkrpc%2Fdark-std","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkrpc%2Fdark-std/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkrpc%2Fdark-std/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkrpc%2Fdark-std/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkrpc","download_url":"https://codeload.github.com/darkrpc/dark-std/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkrpc%2Fdark-std/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["async","syncmap"],"created_at":"2025-12-12T15:16:39.042Z","updated_at":"2026-04-08T19:30:58.261Z","avatar_url":"https://github.com/darkrpc.png","language":"Rust","readme":"# dark-std\ndark-std is an Implementation of asynchronous\n\n* defer!          (defer macro)\n* SyncHashMap     (async HashMap)\n* SyncBtreeMap    (async BtreeMap)\n* SyncVec         (async Vec)\n* WaitGroup       (async/blocking all support WaitGroup)\n* AtomicDuration  (atomic duration)\n\nfor example:\n```rust\n    #[tokio::test]\n    pub async fn test_get() {\n        let m = SyncHashMap::\u003ci32, i32\u003e::new();\n        let insert = m.insert(1, 2);\n        \n        let g = m.get(\u00261).unwrap();//don't need lock and await\n        assert_eq!(\u00262, g);\n    }\n```\n\n\nwait group:\n```rust\nuse std::time::Duration;\nuse tokio::time::sleep;\nuse dark_std::sync::WaitGroup;\n#[tokio::test]\nasync fn test_wg() {\n    let wg = WaitGroup::new();\n    let wg2 = wg.clone();\n    tokio::spawn(async move {\n        sleep(Duration::from_secs(1)).await;\n        drop(wg2);\n    });\n    let wg2 = wg.clone();\n    tokio::spawn(async move {\n        sleep(Duration::from_secs(1)).await;\n        drop(wg2);\n    });\n    wg.wait_async().await;\n    println!(\"all done\");\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkrpc%2Fdark-std","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkrpc%2Fdark-std","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkrpc%2Fdark-std/lists"}