14 releases (9 breaking)

0.18.2 Sep 23, 2024
0.18.1 Nov 10, 2023
0.18.0 Jun 7, 2023
0.17.1 Mar 23, 2023
0.1.0 Dec 28, 2015

#18 in Network programming

Download history 116970/week @ 2024-07-18 114476/week @ 2024-07-25 103638/week @ 2024-08-01 138954/week @ 2024-08-08 117881/week @ 2024-08-15 121999/week @ 2024-08-22 132753/week @ 2024-08-29 143284/week @ 2024-09-05 130614/week @ 2024-09-12 131274/week @ 2024-09-19 126846/week @ 2024-09-26 147939/week @ 2024-10-03 145467/week @ 2024-10-10 147644/week @ 2024-10-17 147544/week @ 2024-10-24 144746/week @ 2024-10-31

614,498 downloads per month
Used in 447 crates (34 directly)

MIT license

67KB
1.5K SLoC

rust-multiaddr

Travis CI codecov.io crates.io

multiaddr implementation in Rust.

Table of Contents

Install

First add this to your Cargo.toml

[dependencies]
multiaddr = "*"

then run cargo build.

Usage

extern crate multiaddr;

use multiaddr::{Multiaddr, multiaddr};

let address = "/ip4/127.0.0.1/tcp/1234".parse::<Multiaddr>().unwrap();
// or with a macro
let other = multiaddr!(Ip4([127, 0, 0, 1]), Udp(10500u16), QuicV1);

assert_eq!(address.to_string(), "/ip4/127.0.0.1/tcp/1234");
assert_eq!(other.to_string(), "/ip4/127.0.0.1/udp/10500/quic-v1");

Maintainers

Captain: @dignifiedquire.

Contribute

Contributions welcome. Please check out the issues.

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2015-2017 Friedel Ziegelmeyer

Dependencies

~4–5.5MB
~87K SLoC