2734 Commits

Author SHA1 Message Date
Thomas Eizinger
def4ac48ed
fix(ci): only push docker image if we have the necessary permissions
We run this workflow in several contexts: `pull_request`, `tags` and `push`. For the events that are not `pull_request`, this property won't be defined, i.e. be `undefined`. Negating that should yield `true` which is what we want: push the image for the `master` branch and on new tags that start with `libp2p-server-*`.

Pull-Request: #4502.
2023-09-13 23:46:08 +00:00
Thomas Eizinger
1fff308d19
feat(interop-tests): avoid re-building wasm-pack and wasm-opt
These two are currently always re-built on every run. We don't need `wasm-opt` if we build the WASM in debug mode and we can install `wasm-pack` by downloading it from a URL.

Pull-Request: #4497.
2023-09-13 10:04:28 +00:00
dependabot[bot]
34b37987ca
deps: bump Swatinem/rust-cache from 2.6.2 to 2.7.0
Pull-Request: #4498.
2023-09-13 09:15:41 +00:00
chirag-bgh
4ea42c99eb
refactor(server): remove spawning of 2nd tokio runtime
Closes #4448.

Pull-Request: #4454.
2023-09-13 02:45:50 +00:00
João Oliveira
411a0495c5
feat(upnp): add implementation based on IGD protocol
Implements UPnP via the IGD protocol. The usage of IGD is an implementation detail and is planned to be extended to support NATpnp.

Resolves: #3903.

Pull-Request: #4156.
2023-09-12 10:29:27 +00:00
sufferpurrityxd
b0c3da7f87
feat(swarm): log local peer id on swarm creation
Closes https://github.com/libp2p/rust-libp2p/issues/4394.

Pull-Request: #4439.
2023-09-12 10:09:27 +00:00
dependabot[bot]
581b1e42d0
deps: bump webrtc from 0.8.0 to 0.9.0
Pull-Request: #4475.
2023-09-12 09:30:16 +00:00
Max Inden
b8f47aa988
ci: use docker/metadata-action
Current approach is not robust to more complex branch names.

Related https://github.com/libp2p/rust-libp2p/pull/4311#discussion_r1303958188.

Pull-Request: #4421.
2023-09-12 05:54:29 +00:00
dependabot[bot]
92b5721ccb
deps: bump stun from 0.4.4 to 0.5.0
Pull-Request: #4482.
2023-09-12 05:34:12 +00:00
Max Inden
0e64d71196
fix(server): filter out /quic in favor of /quic-v1
Configuration files generated by Kubo <= v0.22 list both `/quic` and `/quic-v1` listen addresses with the same UDP port. Given that we enable draft-29, the two addresses are treated the same by rust-libp2p's QUIC implementation. Though calling `listen_on` with both results in an "Address already in use" error by the OS on the second call. To prevent this from happening filter out `/quic` addresses in favor of `/quic-v1`.

Pull-Request: #4467.
2023-09-12 03:03:38 +00:00
dependabot[bot]
d1d358ca43
deps: bump syn from 2.0.31 to 2.0.32
Pull-Request: #4473.
2023-09-12 00:53:23 +00:00
dependabot[bot]
ca9fdf8b0d
deps: bump curve25519-dalek from 4.0.0 to 4.1.0
Pull-Request: #4472.
2023-09-12 00:33:35 +00:00
dependabot[bot]
f798572e78
deps: bump lru from 0.11.0 to 0.11.1
Pull-Request: #4478.
2023-09-11 23:57:05 +00:00
dependabot[bot]
0df1a96e3c
deps: bump base64 from 0.21.3 to 0.21.4
Pull-Request: #4479.
2023-09-11 23:32:09 +00:00
Thomas Eizinger
240019f809
deps: update webpki to 0.22.1
A simple update to our lockfile to help fix #4375.

Pull-Request: #4483.
2023-09-11 20:53:38 +00:00
Mario Camou
ce8f38cc16
feat(misc/server): add libp2p-lookup to rust-libp2p-server
As mentioned in #4444, we need to include https://github.com/mxinden/libp2p-lookup/ in the image so that we can enable a healthcheck when it starts up.

Pull-Request: #4466.
2023-09-11 16:51:54 +00:00
dependabot[bot]
ae3cef14cb
deps: bump serde_json from 1.0.105 to 1.0.106
Pull-Request: #4481.
2023-09-11 14:13:30 +00:00
dependabot[bot]
3609423628
deps: bump trybuild from 1.0.83 to 1.0.84
Pull-Request: #4471.
2023-09-11 13:53:24 +00:00
dependabot[bot]
b08eb21794
deps: bump unsigned-varint from 0.7.1 to 0.7.2
Pull-Request: #4480.
2023-09-11 11:54:37 +00:00
dependabot[bot]
c5dc6d380d
deps: bump sysinfo from 0.29.9 to 0.29.10
Pull-Request: #4477.
2023-09-11 10:26:13 +00:00
dependabot[bot]
7a94dd820a
deps: bump bytes from 1.4.0 to 1.5.0
Pull-Request: #4476.
2023-09-11 09:36:26 +00:00
dependabot[bot]
ac57f8df7e
deps: bump multihash from 0.19.0 to 0.19.1
Pull-Request: #4474.
2023-09-11 08:59:07 +00:00
Darius Clark
cd32435d85
fix(ping): honor ping interval in case of errors
This PR adds a delay to ping connection handler after exceeding the failure rate to prevent opening a outbound stream right after an error.

Resolves #4410.

Pull-Request: #4423.
2023-09-09 09:37:25 +00:00
Thomas Eizinger
19be7747c0
deps: update cargo semver-checks to v0.23
See https://github.com/obi1kenobi/cargo-semver-checks/releases/tag/v0.23.0.

Pull-Request: #4469.
2023-09-08 09:04:52 +00:00
dependabot[bot]
c0bccf724e
deps: bump the trust-dns group with 2 updates
Pull-Request: #4441.
2023-09-06 17:50:18 +00:00
Yiannis Marangos
6715281d92
feat: implement Debug trait
Pull-Request: #4426.
2023-09-06 14:44:43 +00:00
dvorakchen
3f0074800e
docs: update code in tutorial and dcutr docs
When we moved our examples, the hole-punching docs were not updated for the new names of the binaries. We adjust them such that the tutorial works again.

Pull-Request: #4458.
2023-09-06 12:15:24 +00:00
chirag-bgh
94a136c722
fix(swarm): better error message for failed DialPeerConditions
Closes #4407.

Pull-Request: #4409.
2023-09-06 11:55:23 +00:00
Doug A
6f0895fee1
feat(interop-tests): add ability to run chromedriver tests on Windows
When running on Windows OS, the command needs the `.cmd` extension in order to work.

Pull-Request: #4456.
2023-09-05 22:55:09 +00:00
dependabot[bot]
b108c6847c
deps: bump proc-macro-warning from 0.4.1 to 0.4.2
Pull-Request: #4435.
2023-09-05 13:35:19 +00:00
dependabot[bot]
45b34bcdaa
deps: bump rust-embed from 6.8.1 to 8.0.0
Pull-Request: #4399.
2023-09-05 13:15:10 +00:00
dependabot[bot]
20ffe27a69
deps: bump actions/checkout from 3 to 4
Pull-Request: #4451.
2023-09-05 11:53:45 +00:00
dependabot[bot]
423fb2fd50
deps: bump syn from 2.0.29 to 2.0.31
Pull-Request: #4443.
2023-09-04 11:49:09 +00:00
dependabot[bot]
0cc4881740
deps: bump thiserror from 1.0.44 to 1.0.48
Pull-Request: #4430.
2023-09-04 10:23:24 +00:00
Thomas Eizinger
88d9cb5e74
chore: merge cargo deny CI jos
Pull-Request: #4415.
2023-09-04 10:03:37 +00:00
dependabot[bot]
c1bccd5c1c
deps: bump base64 from 0.21.2 to 0.21.3
Pull-Request: #4401.
2023-09-04 09:43:13 +00:00
dependabot[bot]
4fccca11d3
deps: bump quote from 1.0.32 to 1.0.33
Pull-Request: #4360.
2023-09-04 09:20:36 +00:00
dependabot[bot]
4d2e898453
deps: bump sysinfo from 0.29.8 to 0.29.9
Pull-Request: #4428.
2023-09-04 08:56:38 +00:00
dependabot[bot]
42a6612e1e
deps: bump redis from 0.23.2 to 0.23.3
Pull-Request: #4436.
2023-09-04 08:21:58 +00:00
Thomas Eizinger
dc3de43fcb
ci: update clippy job to Rust 1.72
Pull-Request: #4414.
2023-09-04 08:00:46 +00:00
João Oliveira
50b8b637cf
deps: bump trust-dns-proto from 0.22.0 to 0.23.0
On https://github.com/libp2p/rust-libp2p/pull/3102 we left the `tokio-runtime` feature because of https://github.com/bluejekyll/trust-dns/issues/1830, meanwhile https://github.com/bluejekyll/trust-dns/pull/1831 was merged and `0.23.0` was released with it, so we no longer require the `tokio-runtime` feature.

Pull-Request: #4418.
2023-09-04 06:57:49 +00:00
dependabot[bot]
82e654c8a4
deps: bump regex from 1.9.3 to 1.9.5
Pull-Request: #4433.
2023-09-04 04:57:13 +00:00
dependabot[bot]
66cdcc6339
deps: bump url from 2.4.0 to 2.4.1
Pull-Request: #4431.
2023-09-04 01:50:24 +00:00
Thomas Eizinger
51425d524b
ci: replace home-grow cargo semver-checks action
This PR replaces our home-grown `cargo semver-checks` action with the official one: https://github.com/obi1kenobi/cargo-semver-checks-action/issues/47.

This action has support for cargo workspaces and will automatically check all crates that have `publish` set to `true`. This removes a big time component for our CI checks and introduces one that runs in parallel with all others. I hope to reduce the effective CI time through that, plus it means we need to maintain less code.

The official action would download the latest release of cargo-semver-checks. This might result in a non-reproducible CI. To avoid this, we retain the one-line download statement from our home-grown action.

Pull-Request: #3923.
2023-09-04 00:39:09 +00:00
dependabot[bot]
955da49f26
deps: bump tower-http from 0.4.3 to 0.4.4
Pull-Request: #4434.
2023-09-03 18:21:26 +00:00
dependabot[bot]
51ebaaf238
deps: bump rustls from 0.21.6 to 0.21.7
Pull-Request: #4429.
2023-09-03 13:20:58 +00:00
Thomas Eizinger
7fd785e087
ci: add dependency group for trust-dns deps
This should instruct dependabot to update all these dependencies in a single PR.

Pull-Request: #4413.
2023-09-03 12:40:48 +00:00
dependabot[bot]
b9028e8de1
deps: bump reqwest from 0.11.18 to 0.11.20
Pull-Request: #4405.
2023-09-01 00:42:19 +00:00
Thomas Eizinger
915c4ad6b4
ci: don't test for semver violation for libp2p-server binary crate
Pull-Request: #4416.
2023-08-31 12:04:35 +00:00
Max Inden
96213b37c6
fix(misc/server): adhere to --metrics-path and listen on 0.0.0.0:8888
This commit reverts the previous metrics behavior. Namely:

- adhering to --metrics-path flag
- listening on 0.0.0.0:8888 instead of 127.0.0.1:8080

Note that 8888 is the default IPFS debug (aka. metrics) port.

See https://github.com/mxinden/rust-libp2p-server/blob/master/src/metric_server.rs for previous behavior.

Pull-Request: #4392.
2023-08-30 14:39:07 +00:00