13 releases (breaking)

0.18.1 Nov 10, 2023
0.18.0 Jun 7, 2023
0.17.1 Mar 23, 2023
0.17.0 Dec 2, 2022
0.1.0 Dec 28, 2015

#33 in Network programming

Download history 66983/week @ 2023-12-11 62195/week @ 2023-12-18 34011/week @ 2023-12-25 52090/week @ 2024-01-01 67446/week @ 2024-01-08 78518/week @ 2024-01-15 75563/week @ 2024-01-22 74693/week @ 2024-01-29 77489/week @ 2024-02-05 79001/week @ 2024-02-12 81405/week @ 2024-02-19 79125/week @ 2024-02-26 73633/week @ 2024-03-04 83460/week @ 2024-03-11 85186/week @ 2024-03-18 82079/week @ 2024-03-25

328,379 downloads per month
Used in 378 crates (26 directly)

MIT license

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

~3.5–5MB
~115K SLoC