Registry / networking / aptos-network

aptos-network

JSON →
libraryrscratesunverified

Provides the networking stack for the Aptos blockchain, handling peer discovery, connectivity, and message passing.

# Cargo.toml [dependencies] aptos-network = "latest"
INSTALL
IMPORT
SIG · APTOS-NETWORK
A
aptos-network
networkingrust
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Transport
use aptos_network::transport::Transport;

Minimal example showing how to reference the primary transport type.

use aptos_network::transport::Transport; fn main() { // Example: creating a TCP transport let _transport = Transport::Tcp; println!("Aptos network transport initialized"); }
Debug
Known issues
gotchaRequires specific feature flags for different transport backends (e.g., tcp, noise).
fix
Enable features like `tcp` or `noise` in your Cargo.toml: aptos-network = { version = "*", features = ["tcp"] }
affects: *
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
30
OpenAI (training)
1
Resources
aptos-network — cargo add aptos-network · libregistry