#multiaddr #ipfs #format

atm0s-sdn-multiaddr

Implementation of the multiaddr format

3 releases

0.1.2 Dec 11, 2023
0.1.1 Nov 23, 2023
0.1.0 Nov 17, 2023

#438 in Filesystem

Download history 22/week @ 2024-01-06 29/week @ 2024-01-13 10/week @ 2024-01-20 4/week @ 2024-01-27 10/week @ 2024-02-03 31/week @ 2024-02-10 65/week @ 2024-02-17 47/week @ 2024-02-24 32/week @ 2024-03-02 38/week @ 2024-03-09 48/week @ 2024-03-16 54/week @ 2024-03-23 54/week @ 2024-03-30 33/week @ 2024-04-06 48/week @ 2024-04-13 34/week @ 2024-04-20

181 downloads per month

MIT license

53KB
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), 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
~105K SLoC