rust-multiaddr
rust-multiaddr copied to clipboard
multiaddr implementation in rust
Addresses #107. Re-export `libp2p_identity::PeerId` as it's used in a couple public interfaces. Patch version update to release, but requires a major version to revert.
There is `Multiaddr::ends_with`, but for matching addresses with/without P2P ending it would be convenient to have `Multiaddr::start_with` method as well.
While updating a project with dependencies on `multiaddr` and `multihash`, I noticed that `libp2p_identity::PeerId` isn't re-exported but is in two public interfaces: [MultiAddr::with_p2p](https://github.com/multiformats/rust-multiaddr/blob/38d3a5727164f2c2e60385c9fa2903f259c48758/src/lib.rs#L136) and [Protocol::P2p](https://github.com/multiformats/rust-multiaddr/blob/38d3a5727164f2c2e60385c9fa2903f259c48758/src/protocol.rs#L102). Any objections to a re-export...
Updates the requirements on [unsigned-varint](https://github.com/paritytech/unsigned-varint) to permit the latest version. Changelog Sourced from unsigned-varint's changelog. 0.8.0 - [2023-11-01] Update asynchronous-codec to 0.7 (#71) 0.7.2 [2023-09-XX] Update tokio-util to 0.7 (#59)...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. Release notes Sourced from codecov/codecov-action's releases. v4.0.0-beta.2 What's Changed not adding -n if empty to do-upload command by @dana-yaish in codecov/codecov-action#1085 4.0.0-beta.2 by @thomasrockhu-codecov...
According to the multiaddr spec, `/wss` is deprecated, see https://github.com/multiformats/multiaddr/blob/master/protocols.csv#L33. We should reflect this in the code such that downstream users can upgrade accordingly. I'd suggest we mark it as...
This PR allows two type conversions involving both `Multiaddr` and `SocketAddr`: - An infallible conversion from `SocketAddr` to `Multiaddr` - A fallible conversion from `Multiaddr` to `SocketAddr` (as the space...
Add support for `/ipcidr`. See specification added with https://github.com/multiformats/multiaddr/pull/129. Motivation is to specify address ranges to (a) not announce or (b) not dial in https://github.com/mxinden/rust-libp2p-server/ used as an IPFS bootstrap...
As discussed in https://github.com/multiformats/rust-multiaddr/issues/71, we should remove the `from_url` module to reduce the surface area of this crate's public API. Users are encouraged to implement the `from_url` functionality themselves and/or...
You can currently create invalid onion3 addresses: ```rust let mut b = [0u8; 35]; OsRng.fill_bytes(&mut b); let addr = multiaddr::Onion3Addr::from((b, 12345u16)); let invalid = multiaddr!(Onion3(addr)); ``` Resulting in these error...