{"id":22369880,"url":"https://github.com/zeozeozeo/nvflex-rs","last_synced_at":"2025-10-04T18:46:37.605Z","repository":{"id":187052222,"uuid":"675216459","full_name":"zeozeozeo/nvflex-rs","owner":"zeozeozeo","description":"Safe NVIDIA FleX bindings for Rust","archived":false,"fork":false,"pushed_at":"2023-08-30T07:15:30.000Z","size":220,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-08T05:02:14.587Z","etag":null,"topics":["bindings","game-development","nvidia","nvidia-flex","physics","physics-3d","physics-engine","physics-simulation","rust","rust-lang","safe-bindings"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zeozeozeo.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}},"created_at":"2023-08-06T07:08:27.000Z","updated_at":"2025-04-14T19:09:03.000Z","dependencies_parsed_at":"2023-08-08T20:15:43.487Z","dependency_job_id":"8946abce-74fd-4a16-ae9a-c1f3ace92453","html_url":"https://github.com/zeozeozeo/nvflex-rs","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"343a4fad6c8781330c52b0aa3683c72862ca3fc1"},"previous_names":["zeozeozeo/nvflex-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeozeozeo/nvflex-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeozeozeo%2Fnvflex-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeozeozeo%2Fnvflex-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeozeozeo%2Fnvflex-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeozeozeo%2Fnvflex-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeozeozeo","download_url":"https://codeload.github.com/zeozeozeo/nvflex-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeozeozeo%2Fnvflex-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278358476,"owners_count":25973946,"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-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["bindings","game-development","nvidia","nvidia-flex","physics","physics-3d","physics-engine","physics-simulation","rust","rust-lang","safe-bindings"],"created_at":"2024-12-04T19:29:32.904Z","updated_at":"2025-10-04T18:46:37.573Z","avatar_url":"https://github.com/zeozeozeo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Safe [NVIDIA FleX](https://developer.nvidia.com/flex) bindings for Rust\n\n\u003cdiv align=\"center\"\u003e\n\n![License](https://img.shields.io/github/license/zeozeozeo/nvflex-rs)\n![GitHub issues](https://img.shields.io/github/issues/zeozeozeo/nvflex-rs)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/zeozeozeo/nvflex-rs)\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/zeozeozeo/nvflex-rs/main)\n\n\u003c/div\u003e\n\nThis is a collection of crates which provide safe idiomatic NVIDIA FleX bindings for Rust (`nvflex`), as well as raw bindings to the C++ FleX library (`nvflex-sys`).\n\n## The `nvflex` crate\n\nProvides safe idiomatic Rust bindings over NVIDIA FleX's C++ API.\n\nBy default, structs don't implement Send/Sync, but you can enable that functionality by enabling the `unsafe_send_sync` feature. Note that [FleX is NOT thread safe](https://gameworksdocs.nvidia.com/FleX/1.2/lib_docs/manual.html#threading), meaning only one thread should ever use the API at a time.\n\nFleX is *not* open source, so you have to bundle the dynamic libraries with your executable. When building, this crate will copy the required libraries into the `target/debug` or `target/release` directory.\n\n`Vector\u003cT\u003e` is basically `NvFlexVector\u003cT\u003e` from `NvFlexExt.h`, rewritten in Rust. It exists even if the `ext` feature is disabled.\n\nTo enable NVIDIA FleX extensions (NvFlexExt), enable the `ext` feature.\n\n### Supported APIs\n\n* On Windows: D3D11/D3D12/CUDA\n* On Linux: only CUDA is supported\n* On Android: only CUDA is supported (you need a Tegra GPU)\n\n## Fixme\nWe somehow need to make the `Solver` aware that the `Library` is destroyed\nand it shouldn't call `NvFlexDestroySolver()` when it's dropped if `NvFlexShutdown()` already destroyed it.\n\nThis means that right now, if you create a solver, it will only be destroyed when `Library` goes\nout of scope.\n\n## The `nvflex-sys` crate\n\n`nvflex-sys` provides raw NVIDIA FleX bindings for Rust, generated with [bindgen](https://github.com/rust-lang/rust-bindgen).\n\nNote that some functions (`NvFlexMakePhaseWithChannels`, `NvFlexMakePhase`, `NvFlexMakeShapeFlagsWithChannels` and `NvFlexMakeShapeFlags`) are implemented in Rust, because they are defined inside the `NvFlex.h` header.\n\n### TODO\n\n* Proper comment formatting\n\n# License\n\nBSL-1.0.\n\n* Note: NVIDIA FleX is licensed under the [Nvidia Source Code License](https://raw.githubusercontent.com/NVIDIAGameWorks/FleX/master/LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeozeozeo%2Fnvflex-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeozeozeo%2Fnvflex-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeozeozeo%2Fnvflex-rs/lists"}