{"id":17874709,"url":"https://github.com/dsgriffin/nfc-sys","last_synced_at":"2025-04-11T08:46:05.605Z","repository":{"id":57644938,"uuid":"60044633","full_name":"dsgriffin/nfc-sys","owner":"dsgriffin","description":"FFI bindings to libnfc :wrench:","archived":false,"fork":false,"pushed_at":"2024-12-20T13:41:37.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T17:46:17.560Z","etag":null,"topics":["cargo","ffi-bindings","nfc","rust","rust-bindings"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/nfc-sys","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/dsgriffin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2016-05-30T23:32:56.000Z","updated_at":"2024-12-20T13:41:32.000Z","dependencies_parsed_at":"2025-03-21T22:32:09.365Z","dependency_job_id":"f87ac10f-c848-455c-8a32-f9b6d55c7e10","html_url":"https://github.com/dsgriffin/nfc-sys","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgriffin%2Fnfc-sys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgriffin%2Fnfc-sys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgriffin%2Fnfc-sys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgriffin%2Fnfc-sys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsgriffin","download_url":"https://codeload.github.com/dsgriffin/nfc-sys/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362857,"owners_count":21091216,"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":["cargo","ffi-bindings","nfc","rust","rust-bindings"],"created_at":"2024-10-28T11:10:32.642Z","updated_at":"2025-04-11T08:46:05.576Z","avatar_url":"https://github.com/dsgriffin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nfc-sys\n\n[![Crates.io](https://img.shields.io/crates/v/nfc-sys.svg?maxAge=2592000)](https://crates.io/crates/nfc-sys)\n\n`nfc-sys` provides FFI bindings to [libnfc](https://github.com/nfc-tools/libnfc).\n\nFollowing the `*-sys` package conventions, the `nfc-sys` package does not define higher-level abstractions over the native library; for a safe implementation, see [nfc](https://github.com/dsgriffin/nfc).\n\n## Installation\n\nInstall `libnfc` (e.g. [Debian/Ubuntu](http://nfc-tools.org/index.php?title=Libnfc#Debian_.2F_Ubuntu), `brew install libnfc` using Homebrew on Mac OSx, or on [other systems](http://nfc-tools.org/index.php?title=Libnfc#Installation)).\n\n### Cargo.toml\n\n    [dependencies]\n    libc = \"0.2.0\"\n    nfc-sys = \"0.1.4\"\n    \n## Example Usage\n\n#### // main.rs\n```rust\nextern crate nfc_sys;\n\nuse ::std::ffi::CStr;\n\nfn main() {\n    unsafe {\n         // Create new Context and initialize libnfc\n         let mut context = nfc_sys::nfc_context_new();\n         nfc_sys::nfc_init(\u0026mut context);\n    \n         if context.is_null() {\n             println!(\"Unable to initialize new nfc context\");\n         }\n    \n         let version = CStr::from_ptr(nfc_sys::nfc_version()).to_str().unwrap();\n    \n         println!(\"libnfc version: {:?}\", version);\n    }\n}\n```\n## Crates.io Package\n\nhttps://crates.io/crates/nfc-sys\n\n## Contributing\n    \nCheck out the \"issues\" tab. Also, if you'd like to add any kind of improvement (or have a suggestion), I would be grateful! Thanks.   \n    \n## License\n    \nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsgriffin%2Fnfc-sys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsgriffin%2Fnfc-sys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsgriffin%2Fnfc-sys/lists"}