{"id":13805591,"url":"https://github.com/weskoerber/mac_address","last_synced_at":"2025-07-29T15:31:42.983Z","repository":{"id":240161680,"uuid":"801828203","full_name":"weskoerber/mac_address","owner":"weskoerber","description":"A cross-platform library to retrieve the MAC address from your network interfaces without libc.","archived":false,"fork":false,"pushed_at":"2025-05-24T19:10:21.000Z","size":35,"stargazers_count":4,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T04:35:52.450Z","etag":null,"topics":["tools","zig","zig-package"],"latest_commit_sha":null,"homepage":"https://weskoerber.github.io/mac_address/","language":"Zig","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/weskoerber.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-17T01:52:16.000Z","updated_at":"2025-06-08T19:04:38.000Z","dependencies_parsed_at":"2024-05-21T04:22:22.418Z","dependency_job_id":"50c4e5a5-49d1-489f-b31f-629048b05358","html_url":"https://github.com/weskoerber/mac_address","commit_stats":null,"previous_names":["weskoerber/mac_address"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weskoerber/mac_address","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weskoerber%2Fmac_address","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weskoerber%2Fmac_address/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weskoerber%2Fmac_address/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weskoerber%2Fmac_address/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weskoerber","download_url":"https://codeload.github.com/weskoerber/mac_address/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weskoerber%2Fmac_address/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267709590,"owners_count":24131920,"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-29T02:00:12.549Z","response_time":2574,"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":["tools","zig","zig-package"],"created_at":"2024-08-04T01:01:02.776Z","updated_at":"2025-07-29T15:31:42.937Z","avatar_url":"https://github.com/weskoerber.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![test](https://github.com/weskoerber/mac_address/actions/workflows/test.yaml/badge.svg)](https://github.com/weskoerber/mac_address/actions/workflows/test.yaml)\n[![docs](https://github.com/weskoerber/mac_address/actions/workflows/docs.yaml/badge.svg)](https://github.com/weskoerber/mac_address/actions/workflows/docs.yaml)\n\n# `mac_address`\n\nA cross-platform library to retrieve the MAC address from your network\ninterfaces without `libc`.\n\n## Requirements\n\n- [Zig](https://github.com/ziglang/zig) compiler (`0.14.0` or newer)[^1]\n    - If using Zig `0.12` and `0.13`, use the [`zig-0.12`](https://github.com/weskoerber/mac_address/tree/zig-0.12) branch\n\n## Install\n\nFirst, add the dependency to your `build.zig.zon` using `zig fetch`:\n\n```console\nzig fetch --save git+https://github.com/weskoerber/mac_address#main\n```\n\nThen, import `mac_address` into your `build.zig`:\n\n```zig\nconst std = @import(\"std\");\n\npub fn build(b: *std.Build) void {\n    const target = b.standardTargetOptions(.{});\n    const optimize = b.standardOptimizeOption(.{});\n\n    const mac_address = b.dependency(\"mac_address\", .{\n            .target = target,\n            .optimize = optimize,\n    }).module(\"mac_address\");\n\n    const my_exe = b.addExecutable(.{\n        .name = \"my_exe\",\n        .root_source_file = b.path(\"src/main.zig\"),\n        .target = target,\n        .optimize = optimize,\n    });\n\n    my_exe.root_module.addImport(mac_address);\n}\n```\n\n## Usage\n\nSee the `examples` directory for example usage. Example executables can be\nbuilt by setting the `examples` option to `true` (or `-Dexamples=true` on the\nCLI):\n\n```zig\n    const mac_address = b.dependency(\"mac_address\", .{\n            .target = target,\n            .optimize = optimize,\n            .examples = true,\n    }).module(\"mac_address\");\n```\n\n```console\nzig build -Dexamples=true\n```\n\n## Cross-platform support\n\n| `mac_address` API  | Linux | Windows |\n| ------------------ | ----- | ------- |\n| `getAll`           | ✅    | ✅      |\n| `getAllNoLoopback` | ✅    | ✅      |\n\n- ✅ = supported\n- 📝 = planned\n- ❌ = not supported\n\n---\n\n[^1]: Shameless plug: if you're using a unix-like operating system or WSL on\n    Windows, consider using a Zig compiler version manager I wrote called\n    [zvm](https://github.com/weskoerber/zvm). Once downloaded and in your\n    `PATH`, just run `zvm install 0.12.0` (or `zvm install master` to get the\n    latest nightly).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweskoerber%2Fmac_address","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweskoerber%2Fmac_address","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweskoerber%2Fmac_address/lists"}