{"id":13809649,"url":"https://github.com/oddity-ai/async-tensorrt","last_synced_at":"2025-07-23T00:03:01.372Z","repository":{"id":188252551,"uuid":"678363058","full_name":"oddity-ai/async-tensorrt","owner":"oddity-ai","description":"Asynchronous TensorRT for Rust. ","archived":false,"fork":false,"pushed_at":"2025-04-30T11:48:32.000Z","size":88,"stargazers_count":30,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T04:47:29.815Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oddity-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null}},"created_at":"2023-08-14T11:32:48.000Z","updated_at":"2025-05-23T15:00:30.000Z","dependencies_parsed_at":"2023-10-02T20:07:07.933Z","dependency_job_id":"96a01a24-b538-4705-a452-7477186b2acd","html_url":"https://github.com/oddity-ai/async-tensorrt","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.30000000000000004","last_synced_commit":"d21ae988731a4d83122e5c5bc167785e65809476"},"previous_names":["oddity-ai/async-tensorrt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oddity-ai/async-tensorrt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddity-ai%2Fasync-tensorrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddity-ai%2Fasync-tensorrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddity-ai%2Fasync-tensorrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddity-ai%2Fasync-tensorrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oddity-ai","download_url":"https://codeload.github.com/oddity-ai/async-tensorrt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oddity-ai%2Fasync-tensorrt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266592119,"owners_count":23953105,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-04T02:00:33.596Z","updated_at":"2025-07-23T00:03:01.309Z","avatar_url":"https://github.com/oddity-ai.png","language":"Rust","funding_links":[],"categories":["Frameworks","GPU Programming","GPU Computing"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003ccode\u003easync-tensorrt\u003c/code\u003e\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003eAsynchronous wrapper for TensorRT.\u003c/p\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![version](https://img.shields.io/crates/v/async-tensorrt)](https://crates.io/crates/async-tensorrt)\n[![license](https://img.shields.io/crates/l/async-tensorrt)](#license)\n[![docs](https://img.shields.io/docsrs/async-tensorrt)](https://docs.rs/async-tensorrt)\n\n\u003c/div\u003e\n\n## ℹ️ Introduction\n\n`async-tensorrt` is an async wrapper for [TensorRT](https://developer.nvidia.com/tensorrt).\n\n## 🛠 S️️tatus\n\nThis project is still a work-in-progress, and will contain bugs. Some parts of the API have not\nbeen flushed out yet. Use with caution.\n\n## 📦 Setup\n\nMake sure you have the necessary dependencies installed:\n\n* CUDA toolkit 11 or later.\n* TensorRT 8 or later.\n\nThen, add the following to your dependencies in `Cargo.toml`:\n\n```toml\nasync-tensorrt = \"0.8\"\n```\n\n## ⚠️ Safety warning\n\nThis crate is **intentionally unsafe**. Due to the limitations of how async Rust currently works,\nusage of the async interface of this crate can cause undefined behavior in some rare cases. It is up\nto the user of this crate to prevent this from happening by following these rules:\n\n* No futures produced by functions in this crate may be leaked (either by `std::mem::forget` or\n  otherwise).\n* Use a well-behaved runtime (one that will not forget your future) like Tokio or async-std.\n\nInternally, the `Future` type in this crate schedules a CUDA call on a separate runtime thread. To\nmake the API as ergonomic as possible, the lifetime bounds of the closure (that is sent to the\nruntime) are tied to the future object. To enforce this bound, the future will block and wait if it\nis dropped. This mechanism relies on the future being driven to completion, and not forgotten. This\nis not necessarily guaranteed. Unsafety may arise if either the runtime gives up on or forgets the\nfuture, or the caller manually polls the future, then forgets it.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddity-ai%2Fasync-tensorrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foddity-ai%2Fasync-tensorrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foddity-ai%2Fasync-tensorrt/lists"}