multiaddr implementation in rust
101
stars
272
commits
Rust
primary language
Jul 28, 2026
updated
multiaddr implementation in Rust.
First add this to your Cargo.toml
[dependencies]
multiaddr = "*"
then run cargo build.
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");
Captain: @dignifiedquire.
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.
MIT © 2015-2017 Friedel Ziegelmeyer
(top 30 of 44)
Rust
100.0%
multiaddr implementation in rust
101
stars
272
commits
Rust
primary language
Jul 28, 2026
updated
multiaddr implementation in Rust.
First add this to your Cargo.toml
[dependencies]
multiaddr = "*"
then run cargo build.
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");
Captain: @dignifiedquire.
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.
MIT © 2015-2017 Friedel Ziegelmeyer
(top 30 of 44)
Rust
100.0%