{"id":21630079,"url":"https://github.com/virtualritz/nsi-sys","last_synced_at":"2025-03-18T21:23:35.912Z","repository":{"id":57646139,"uuid":"270343671","full_name":"virtualritz/nsi-sys","owner":"virtualritz","description":"Auto-generated Rust bindings for Illumination Research’s Nodal Scene Interface – ɴsɪ.","archived":false,"fork":false,"pushed_at":"2023-04-11T10:27:00.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T09:59:38.762Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/virtualritz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-07T15:12:13.000Z","updated_at":"2022-02-18T21:38:49.000Z","dependencies_parsed_at":"2022-09-09T01:01:04.480Z","dependency_job_id":null,"html_url":"https://github.com/virtualritz/nsi-sys","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualritz%2Fnsi-sys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualritz%2Fnsi-sys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualritz%2Fnsi-sys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualritz%2Fnsi-sys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/virtualritz","download_url":"https://codeload.github.com/virtualritz/nsi-sys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244307201,"owners_count":20431983,"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-11-25T02:09:42.912Z","updated_at":"2025-03-18T21:23:35.881Z","avatar_url":"https://github.com/virtualritz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# `nsi-sys`\n\n[![Build](https://github.com/virtualritz/nsi-sys/workflows/Build/badge.svg)](https://github.com/virtualritz/nsi-sys/actions)\n[![Documentation](https://docs.rs/nsi-sys/badge.svg)](https://docs.rs/nsi-sys)\n[![Crate](https://img.shields.io/crates/v/nsi-sys.svg)](https://crates.io/crates/nsi-sys)\n[![Chat](https://badges.gitter.im/n-s-i/community.svg)](https://gitter.im/n-s-i/community)\n![Maintenance](https://img.shields.io/badge/maintenance-passively--maintained-yellowgreen.svg)\n\nAuto-generated Rust bindings for *Illumination Research*’s *Nodal\nScene Interface* – ɴsɪ.\n\nYou should not need to use this crate directly except for two\nreasons. You are likely either:\n\n* writing a renderer that exposes an ɴsɪ C-API.\n\n* a masochist who wants to use the C-API directly from Rust.\n\n## High Level Bindings\n\nThere are high level Rust bindings for this API in the\n[ɴsɪ crate](https://crates.io/crates/nsi/).\n\n### Differences From The C API\n\nAll `enum`s have been rustified. Meaning they were mapped to actual Rust `enum`s.\n\nPostfixes were stripped on `enum` and `struct` type names. E.g.:\n\n[`NSIParam_t`](https://github.com/virtualritz/nsi-sys/blob/f1f05da59b558f9dd18f7afd37aa82d72b73b7da/include/nsi.h#L69-L77)\n⟶ `NSIParam`\n\nPrefixes and postfixes were stripped on `enum` variants. E.g.:\n\n[`NSIType_t`](https://github.com/virtualritz/nsi-sys/blob/f1f05da59b558f9dd18f7afd37aa82d72b73b7da/include/nsi.h#L27-L41)`::NSITypeInvalid`\n⟶ `NSIType::Invalid`\n\nRationale: make code using the bindings a bit less convoluted resp. easier\nto read.\n\nFinally, `NSIParamFlags` is a [`bitflags`](https://docs.rs/bitflags)\nstruct that wraps the `NSIParam*` flags from the C-API for ergnomics.\n\n## Compile- vs. Runtime\n\nThe crate builds as-is, with default features.\n\nHowever, at runtime this crate requires a library/renderer that\nimplements the ɴsɪ C-API to link against. Currently the only\nrenderer that does is [*3Delight*](https://www.3delight.com/).\n\n## Features\n\n* `omit_functions` – Omit generating bindings for the API's\n   functions. This is for the casewhere you want to expose your own\n   C-API hooks from your renderer.\n\n## License\n\nApache-2.0 OR BSD-3-Clause OR MIT OR Zlib at your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtualritz%2Fnsi-sys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirtualritz%2Fnsi-sys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtualritz%2Fnsi-sys/lists"}