MCPcopy Index your code
hub / github.com/WireGuard/wireguard-rs

github.com/WireGuard/wireguard-rs @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
439 symbols 1,076 edges 58 files 75 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

Reader (Interface)
(no doc) [5 implementers]
src/platform/udp.rs
SequentialJob (Interface)
(no doc) [4 implementers]
src/wireguard/router/queue.rs
Configuration (Interface)
Exposed configuration interface [1 implementers]
src/configuration/config.rs
Writer (Interface)
(no doc) [5 implementers]
src/platform/udp.rs
Callback (Interface)
A send/recv callback takes 3 arguments: `0`, a reference to the opaque value assigned to the peer `1`, a bool indicatin [1 …
src/wireguard/router/types.rs
Owner (Interface)
On platforms where fwmark can be set and the implementation can bind to a new port during later configuration (UAPI supp [2 …
src/platform/udp.rs
KeyCallback (Interface)
A key callback takes 1 argument `0`, a reference to the opaque value assigned to the peer [1 implementers]
src/wireguard/router/types.rs
PlatformUDP (Interface)
On some platforms the application can itself bind to a socket. This enables configuration using the UAPI interface. [2 …
src/platform/udp.rs

Core symbols most depended-on inside this repo

lock
called by 82
src/configuration/config.rs
len
called by 37
src/wireguard/handshake/device.rs
push
called by 32
src/wireguard/router/queue.rs
get
called by 31
src/wireguard/handshake/device.rs
write
called by 31
src/platform/dummy/udp.rs
parse
called by 30
src/wireguard/handshake/messages.rs
read
called by 30
src/platform/dummy/udp.rs
clone
called by 20
src/wireguard/wireguard.rs

Shape

Method 256
Class 85
Function 64
Interface 20
Enum 14

Languages

Rust100%

Modules by API surface

src/platform/linux/udp.rs32 symbols
src/wireguard/router/peer.rs28 symbols
src/configuration/config.rs26 symbols
src/wireguard/timers.rs24 symbols
src/wireguard/handshake/device.rs23 symbols
src/wireguard/wireguard.rs22 symbols
src/wireguard/router/device.rs18 symbols
src/platform/linux/tun.rs18 symbols
src/platform/dummy/udp.rs16 symbols
src/wireguard/router/tests/tests.rs15 symbols
src/wireguard/handshake/macs.rs14 symbols
src/wireguard/router/tests/bench.rs12 symbols

For agents

$ claude mcp add wireguard-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact