8 breaking releases

0.17.0 Dec 2, 2022
0.16.0 Nov 13, 2022
0.15.0 Oct 20, 2022
0.14.0 Feb 2, 2022
0.1.0 Dec 28, 2015

#1962 in Network programming

Download history 41465/week @ 2022-11-26 43096/week @ 2022-12-03 48353/week @ 2022-12-10 39614/week @ 2022-12-17 20949/week @ 2022-12-24 32202/week @ 2022-12-31 40441/week @ 2023-01-07 44455/week @ 2023-01-14 46765/week @ 2023-01-21 47689/week @ 2023-01-28 45991/week @ 2023-02-04 53866/week @ 2023-02-11 46862/week @ 2023-02-18 52611/week @ 2023-02-25 51982/week @ 2023-03-04 53077/week @ 2023-03-11

213,395 downloads per month
Used in 189 crates (13 directly)

MIT license

58KB
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

~4MB
~108K SLoC