From 9821aabf0b50d2487b07502d3d2cd89e7d62bdbe Mon Sep 17 00:00:00 2001 From: murilo ijanc Date: Tue, 24 Mar 2026 15:04:03 -0300 Subject: Initial commit NAT-aware Kademlia DHT library for peer-to-peer networks. Features: - Distributed key-value storage (iterative FIND_NODE, FIND_VALUE, STORE) - NAT traversal via DTUN hole-punching and proxy relay - Reliable Datagram Protocol (RDP) with 7-state connection machine - Datagram transport with automatic fragmentation/reassembly - Ed25519 packet authentication - 256-bit node IDs (Ed25519 public keys) - Rate limiting, ban list, and eclipse attack mitigation - Persistence and metrics - OpenBSD and Linux support --- Makefile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2dd7cf3 --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +all: release + +release: + cargo build --release + +debug: + cargo build + +test: + cargo test + +test-release: + cargo test --release + +check: + cargo check + +clean: + cargo clean + +fmt: + cargo fmt + +clippy: + cargo clippy -- -D warnings + +examples: release + cargo build --release --examples + +doc: + cargo doc --no-deps --open + +audit: + cargo deny check + +bench: + cargo bench + +.PHONY: all release debug test test-release check clean fmt clippy examples doc audit bench -- cgit v1.2.3