aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormurilo ijanc2026-03-24 15:04:03 -0300
committermurilo ijanc2026-03-24 15:04:03 -0300
commit9821aabf0b50d2487b07502d3d2cd89e7d62bdbe (patch)
tree53da095ff90cc755bac3d4bf699172b5e8cd07d6 /Makefile
downloadtesseras-dht-9821aabf0b50d2487b07502d3d2cd89e7d62bdbe.tar.gz
Initial commitv0.1.0
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 39 insertions, 0 deletions
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