{"id":17469772,"url":"https://github.com/shellrow/nex","last_synced_at":"2026-02-22T22:22:43.665Z","repository":{"id":205614947,"uuid":"714659818","full_name":"shellrow/nex","owner":"shellrow","description":"Cross-platform networking library in Rust","archived":false,"fork":false,"pushed_at":"2025-02-07T11:53:58.000Z","size":347,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T03:38:20.435Z","etag":null,"topics":["cross-platform","network","rust"],"latest_commit_sha":null,"homepage":"","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/shellrow.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":"2023-11-05T14:28:22.000Z","updated_at":"2025-04-08T21:41:20.000Z","dependencies_parsed_at":"2023-11-19T06:29:10.193Z","dependency_job_id":"818e93b5-a572-4217-9000-79351e5768cf","html_url":"https://github.com/shellrow/nex","commit_stats":null,"previous_names":["shellrow/xenet","shellrow/nex"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellrow%2Fnex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellrow%2Fnex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellrow%2Fnex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellrow%2Fnex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellrow","download_url":"https://codeload.github.com/shellrow/nex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249205730,"owners_count":21229984,"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":["cross-platform","network","rust"],"created_at":"2024-10-18T15:43:44.428Z","updated_at":"2026-02-22T22:22:43.654Z","avatar_url":"https://github.com/shellrow.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nex\n\nCross-platform low-level networking library in Rust\n\n[![Crates.io](https://img.shields.io/crates/v/nex.svg)](https://crates.io/crates/nex)\n[![Documentation](https://docs.rs/nex/badge.svg)](https://docs.rs/nex)\n[![License](https://img.shields.io/crates/l/nex.svg)](https://github.com/shellrow/nex/blob/main/LICENSE)\n\n## Overview\n\n`nex` is a Rust library that provides cross-platform low-level networking capabilities.   \nIt includes sub-crates with responsibilities:\n\n- `nex-packet`: Low-level packet parsing and serialization.\n- `nex-datalink`: Raw datalink send/receive backends across platforms.\n- `nex-socket`: Low-level socket operations with cross-platform option handling.\n\nThe project aims to expose portable low-level primitives.  \n\n## Usage\n\nTo use `nex`, add it as a dependency in your `Cargo.toml`:\n\n```toml\n[dependencies]\nnex = \"0.25\"\n```\n\n## Using Specific Sub-crates\nYou can also directly use specific sub-crates by importing them individually.\n- `nex-datalink`\n- `nex-packet`\n- `nex-socket`\n\nIf you want to focus on network interfaces, you can use the [netdev](https://github.com/shellrow/netdev).\n\n\n## Privileges\n`nex-datalink` uses a raw socket which may require elevated privileges depending on your system's configuration.  \nExecute with administrator privileges if necessary.\n\n## For Windows Users\nPlease note that in order to send and receive raw packets using `nex-datalink` on Windows, [Npcap](https://npcap.com/#download) is required.\n\n1. Install Npcap, making sure to check Install Npcap in WinPcap API-compatible Mode during the installation.\n\n2. Download the Npcap SDK. Add the SDK's /Lib/x64 (or /Lib) folder to your LIB environment variable.\n\n## For macOS Users\nOn macOS, managing access to the Berkeley Packet Filter (BPF) devices is necessary to send and receive raw packets using `nex-datalink`.\nYou can use [chmod-bpf](https://github.com/shellrow/chmod-bpf) to automatically manage permissions for BPF devices.\nAlternatively, of course, you can also use `sudo` to temporarily grant the necessary permissions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellrow%2Fnex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellrow%2Fnex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellrow%2Fnex/lists"}