{"id":17874703,"url":"https://github.com/dsgriffin/nfc","last_synced_at":"2025-03-21T22:32:04.509Z","repository":{"id":50684942,"uuid":"59967999","full_name":"dsgriffin/nfc","owner":"dsgriffin","description":"Safe Rust bindings to the libnfc library 🛜","archived":false,"fork":false,"pushed_at":"2024-12-29T21:06:03.000Z","size":28,"stargazers_count":17,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T05:51:13.255Z","etag":null,"topics":["cargo","libnfc","nfc","rust","rust-bindings"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/nfc","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}},"created_at":"2016-05-29T23:19:18.000Z","updated_at":"2024-12-29T21:06:23.000Z","dependencies_parsed_at":"2022-09-08T14:32:13.096Z","dependency_job_id":null,"html_url":"https://github.com/dsgriffin/nfc","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","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgriffin%2Fnfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgriffin%2Fnfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsgriffin%2Fnfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsgriffin","download_url":"https://codeload.github.com/dsgriffin/nfc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880421,"owners_count":20525507,"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","libnfc","nfc","rust","rust-bindings"],"created_at":"2024-10-28T11:10:31.495Z","updated_at":"2025-03-21T22:32:04.500Z","avatar_url":"https://github.com/dsgriffin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFC 🛜\n\n[![Crates.io](https://img.shields.io/crates/v/nfc.svg?maxAge=2592000)](https://crates.io/crates/nfc)\n\nRust bindings for the [libnfc](https://github.com/nfc-tools/libnfc) library.\n\nFor raw FFI bindings for `libnfc`, see [nfc-sys](https://github.com/dsgriffin/nfc-sys).\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 = \"0.1.11\"\n    \n## Example Usage\n\n#### // main.rs    \n```rust\nextern crate nfc;\n\nuse nfc::context;\nuse nfc::misc;\n\nfn main() {\n    let mut context = context::new();\n\n    if context.is_null() {\n        println!(\"Unable to initialize new NFC context!\");\n    }\n\n    // Initialize libnfc\n    nfc::init(\u0026mut context);\n    \n    // Print libnfc version\n    println!(\"libnfc version: {}\", misc::version());\n}\n```\n    \n## TODO\n\n* Replace any raw pointers\n* Documentation + more in-depth examples\n  \n## Contributing\n    \nIf you've found a bug or have an idea, feel free to open an Issue. If you've got a fix or feature ready, open a PR. Thanks!\n    \n## License\n    \nMIT    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsgriffin%2Fnfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsgriffin%2Fnfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsgriffin%2Fnfc/lists"}