Skip to content

Rust SDK

Pre-release
Pre-release

Choose a tag to compare

@ALH477 ALH477 released this 27 Dec 22:13
· 46 commits to main since this release
d9c5ccf

[nix-shell:~/Documents/dcf_rust_sdk]$ ./target/release/dcf info

╔══════════════════════════════════════════════════════════════════════════╗
║ DCF Rust Server v2.2.0 - HydraMesh Compatible ║
╚══════════════════════════════════════════════════════════════════════════╝

Quick Start for Gaming:

  1. dcf --config config.json start
  2. dcf add-peer --peer-id player2 --host 192.168.1.100 --port 7777
  3. dcf send-position --player-id player1 --x 100.0 --y 50.0 --z 25.0
  4. dcf metrics

Key Features:

  • UDP with unreliable (<5ms) / reliable channels
  • Binary Protobuf: 10-100x faster than JSON
  • Position (12B), Audio (raw), Events (reliable)
  • RTT/Jitter stats, auto-retry
  • gRPC for backward compatibility

Commands:
start Start the DCF server
status Show server status
version Show version information
add-peer Add a peer
remove-peer Remove a peer
list-peers List all peers
send-position Send position update
send-audio Send audio packet
send-event Send game event
benchmark Run RTT benchmark
metrics Get metrics
begin-tx Begin transaction
commit-tx Commit transaction
rollback-tx Rollback transaction
info Show this detailed help
help Show command help (built-in)

Configuration:
--config Config file (JSON or TOML)

Example Config (dcf_config.toml):
transport = "UDP"
host = "0.0.0.0"
grpc_port = 50051
udp_port = 7777
mode = "p2p"
p2p_discovery = true

Repo: https://github.com/ALH477/DeMoD-Communication-Framework

[nix-shell:~/Documents/dcf_rust_sdk]$