6 releases (breaking)

0.13.0 Jul 9, 2021
0.12.0 May 26, 2021
0.3.1 Jan 11, 2019
0.3.0 Apr 6, 2018
0.1.0 Dec 28, 2015

#6 in #ipfs

Download history 1105/week @ 2021-07-04 2112/week @ 2021-07-11 2288/week @ 2021-07-18 2685/week @ 2021-07-25 3393/week @ 2021-08-01 2216/week @ 2021-08-08 5193/week @ 2021-08-15 7713/week @ 2021-08-22 10279/week @ 2021-08-29 10254/week @ 2021-09-05 11904/week @ 2021-09-12 12206/week @ 2021-09-19 14155/week @ 2021-09-26 13332/week @ 2021-10-03 13515/week @ 2021-10-10 13625/week @ 2021-10-17

1,136 downloads per month
Used in 49 crates (2 directly)

MIT license

54KB
1K 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), Quic);

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");

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

~3.5MB
~97K SLoC

T@`