Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
cdc9638
chore: parameterise s3 build cache setup (#5586)
galargh Sep 13, 2024
a2a2816
fix(autonat): reject inbound dial request from peer if its not connec…
Eligioo Sep 13, 2024
fd4e1e1
chore(ci): only run interop tests on commits to master (#5604)
jxs Sep 20, 2024
c6cf7fe
fix(ci): address cargo-deny advisories (#5596)
jxs Sep 24, 2024
f3e0e55
chore(ci): address beta clippy lints (#5606)
jxs Sep 25, 2024
8ceadaa
fix(swarm): don't report `NewExternalAddrCandidate` if already confir…
stormshield-frb Sep 26, 2024
89d78dd
chore(autonat-v2): fix dial_back_to_non_libp2p test (#5621)
jxs Oct 4, 2024
b83dd95
chore: update interop test run condition (#5611)
guillaumemichel Oct 4, 2024
7669b16
deps: update metrics example dependencies (#5617)
jxs Oct 4, 2024
fcff3f8
refactor(examples): use tokio instead of async-std in relay-server (#…
P1R Oct 4, 2024
93ad28c
fix(server): removing dependency on libp2p-lookup (#5610)
guillaumemichel Oct 4, 2024
9a45db3
chore: update igd-next to 0.15.1 (#5625)
dariusc93 Oct 8, 2024
d3228ad
deps: bump Swatinem/rust-cache from 2.7.3 to 2.7.5 (#5633)
dependabot[bot] Oct 14, 2024
812a7cd
feat: make runtime features optional in swarm-test (#5551)
hanabi1224 Oct 15, 2024
524d7f1
chore: fix typo in comment (#5643)
AdventureSeeker987 Oct 22, 2024
9ed181b
deps(ci): update cargo-semver-checks (#5647)
jxs Oct 24, 2024
6cb116e
fix(swarm-test): set proper version (#5648)
jxs Oct 24, 2024
84c617f
feat(kad): add `Behavior::find_closest_local_peers()` (#5645)
nazar-pc Oct 24, 2024
c7e8129
feat(gossipsub): apply `max_transmit_size` to the published message (…
kalabukdima Oct 25, 2024
4e7ff3e
chore(ci): address clippy beta lints (#5649)
jxs Oct 26, 2024
9586071
feat: refactor distributed-key-value-store example (#5652)
kamuik16 Oct 29, 2024
8387749
chore: refactor ping tests (#5655)
kamuik16 Oct 30, 2024
d021ce2
fix(websocket): don't dial `/dnsaddr` addresses (#5613)
hmzdot Nov 5, 2024
5179d78
chore: fix some comments (#5661)
AdventureSeeker987 Nov 5, 2024
858a4cd
chore: identify::Config fields private (#5663)
kamuik16 Nov 6, 2024
a9b6799
chore(protocols): fix some typos in comment (#5665)
wangjingcun Nov 8, 2024
4192fc3
chore(ci): fix interop tests region, and run them again on each PR (#…
jxs Nov 8, 2024
0c34d9f
chore: deprecate `void` crate (#5676)
hanabi1224 Nov 14, 2024
8222461
chore: replace async-std with tokio in autonat tests (#5671)
kamuik16 Nov 18, 2024
0e9dcdd
chore: bump crate versions and update changelogs for #5676 (#5678)
hanabi1224 Nov 20, 2024
059742f
chore(ci): add a mergify batch queue for external PRs (#5668)
jxs Nov 21, 2024
13b9ea2
chore: refactor dcutr and gossipsub tests to use tokio instead
kamuik16 Nov 21, 2024
c3a21d1
chore(gossispsub): deprecate futures-ticker
jxs Nov 21, 2024
00588a5
chore: update FUNDING.json
paulhauner Nov 22, 2024
2371922
feat(gossipsub): introduce backpressure
jxs Nov 25, 2024
b057f91
chore(deps): upgrade `thiserror` to 2.0
hanabi1224 Nov 25, 2024
c9c44b1
fix: typos in documentation files
leopardracer Nov 26, 2024
0d890fd
fix(gossipsub): fix mesh/fanout inconsistencies
jxs Nov 27, 2024
930118e
fix(ci): Clippy Beta
hanabi1224 Nov 28, 2024
b187c14
chore: introduce rustfmt.toml
jxs Nov 28, 2024
d0590a7
feat(kad): make Distance private field public
maqi Dec 3, 2024
1c3e820
chore: fix some typos in comment
needsure Dec 6, 2024
78e6f08
fix(libp2p): expose builder phase error
drHuangMHT Dec 10, 2024
276ce84
feat(request-response): Add connection id to behaviour events
bastienfaivre Dec 10, 2024
bb9c369
chore(ci): update Rust stable version
elenaf9 Dec 11, 2024
1e9bb4c
chore(roadmap): fix typo
lfgtwo Dec 11, 2024
524afb4
chore(deps): upgrade uint to 0.10
hanabi1224 Dec 11, 2024
cda1470
fix: RUSTSEC-2024-0421 by upgrading idna
hanabi1224 Dec 11, 2024
99544c4
deps(metrics-example): update opentelemetry to 0.27
jxs Dec 12, 2024
3c1f856
fix: update Cargo.lock
jxs Dec 12, 2024
c4e4540
chore: add Unicode V3 license to deny.toml
jxs Dec 13, 2024
be28c96
chore(core): avoid unused props matching on connection.rs
sergey-melnychuk Dec 13, 2024
f4edafb
feat(swarm): set default for idle-connection-timeout to 10s (#4967)
thomaseizinger Dec 13, 2024
9f197c2
chore(deps): bump golang.org/x/crypto from 0.21.0 to 0.31.0 (#5736)
dependabot[bot] Dec 13, 2024
c8c1b80
fix(identify): validate public key from remote peer
jameshiew Dec 13, 2024
d7b66a7
deps(memory-connection-limits): update sysinfo to 0.33
jxs Dec 13, 2024
89af870
feat(SwarmBuilder): add with_connection_timeout method
stormshield-frb Dec 14, 2024
ebc01e6
chore(core): use `matches!` in connection.rs
xep-c-6yrpa Dec 14, 2024
577036a
chore: fix format with nightly
elenaf9 Dec 15, 2024
df85cff
chore(docs): fix typos in documentation
Pricstas Dec 15, 2024
54d7f21
chore(ci): check rustfmt with nightly toolchain
elenaf9 Dec 16, 2024
3be7104
fix(kad): improve memory allocation when iterating over kbuckets
stormshield-frb Dec 17, 2024
6a6fa12
chore(spellchecker): fix typos in comment
argentpapa Dec 17, 2024
503b136
chore: add SQD Network to notable users list
kalabukdima Dec 18, 2024
bd710df
feat(mdns): emit `ToSwarm::NewExternalAddrOfPeer` on discovery
hopinheimer Dec 23, 2024
cddb7d6
fix: multiple typos of different importance
crStiv Dec 23, 2024
7590ab2
chore(deps): remove unused deps
hanabi1224 Dec 24, 2024
c40338d
chore(mdns): revert version bump
elenaf9 Dec 24, 2024
69cf073
deps(quic): update quinn to 0.11.6
kalabukdima Dec 25, 2024
644d7d0
chore: introduce `libp2p-test-utils`
kamuik16 Dec 26, 2024
0ad6c9a
feat(gossipsub): implement gossipsub 1.2 beta
hopinheimer Dec 27, 2024
1ab4658
chore(deps): update Cargo.lock
hanabi1224 Dec 27, 2024
e1d02ca
feat(gossipsub): Allow setting a size threshold for IDONTWANT messages
hopinheimer Dec 29, 2024
5841277
chore(kad): revert version bump
elenaf9 Jan 2, 2025
a14776e
chore(autonat): revert version bump
elenaf9 Jan 2, 2025
f7f9e13
chore(server): revert version bump
elenaf9 Jan 2, 2025
2f9294c
chore(identify): revert version bump
elenaf9 Jan 2, 2025
fd3f7c4
chore(ci): add Zlib to deny.toml
jxs Jan 2, 2025
02040ff
chore(allow-block-list): revert version bump
elenaf9 Jan 2, 2025
40550dc
chore(kad): remove default constructor for ProtocolConfig
drHuangMHT Jan 3, 2025
7e3086d
feat: broadcasting `idontwant` for published messages
hopinheimer Jan 4, 2025
34ac476
fix(gossipsub): make sure we have fanout peers when publish
ackintosh Jan 6, 2025
f096394
feat(request-response): allow custom sizes for `json` and `cbor` codec
dariusc93 Jan 7, 2025
4a1122e
chore: update MSRV
jxs Jan 8, 2025
63c0731
chore: address clippy lints for Rust 1.85.0-beta
elenaf9 Jan 9, 2025
28387f2
deps: bump Swatinem/rust-cache from 2.7.5 to 2.7.7
dependabot[bot] Jan 9, 2025
4b4f197
refactor: mark {In, Out}boundOpenInfo as deprecated
drHuangMHT Jan 9, 2025
75b6dfe
chore(identify): fix changelog entry
elenaf9 Jan 9, 2025
40ddf7e
chore(ci): fix wasm tests
jxs Jan 9, 2025
b3fcca8
chore(swarm): append missing changelog
drHuangMHT Jan 10, 2025
a8b7e0e
ci(mergify): upgrade configuration to current format
mergify[bot] Jan 10, 2025
ba8da16
fix(tcp): make `TCP_NODELAY` actually the default
elenaf9 Jan 10, 2025
e6b02da
chore(ci): update mergify script
jxs Jan 10, 2025
ded5d96
chore(interop-tests): remove static linking flags for dependency builds
thomaseizinger Jan 10, 2025
1442ca0
deps(if-watch): update if-watch to v3.2.1
brenodt Jan 12, 2025
d57081f
chore(ci): update mergify script
jxs Jan 13, 2025
0177ddf
chore(test-utils): revert #5725
jxs Jan 13, 2025
4449024
fix: minor version bump packages affected by #5676
elenaf9 Jan 14, 2025
9d3688d
chore: prepare libp2p-webrtc-websys 0.4.0
jxs Jan 14, 2025
9698607
chore(*): prepare release
elenaf9 Jan 15, 2025
7c36d30
chore(ci): fix workspace version enforcing job
jxs Jan 16, 2025
cc8607c
refactor(gossipsub): remove duplicated call to `inbound_transform`
drHuangMHT Jan 16, 2025
0b44564
chore(ci): update tomlq
jxs Jan 21, 2025
68ea5b7
fix(relay/client): only try to forward handler events once
elenaf9 Jan 27, 2025
bd5a2f5
chore: introduce libp2p-webrtc-websys behind webrtc-websys feature flag.
dariusc93 Jan 27, 2025
fee8bf0
feat(ci): ensure exactly one version bump
elenaf9 Jan 27, 2025
3ce976d
fix: public cbor/json codec module
mosure Jan 28, 2025
5ac2e20
fix(gossipsub): Improve `max_messages_per_rpc` consistency
jxs Jan 29, 2025
c625951
chore: use tokio instead of async-std
kamuik16 Jan 29, 2025
3cd43bb
chore: remove @guillaumemichel from maintainers
guillaumemichel Jan 31, 2025
fef298b
chore: add Swarm NL to list of notable users
sacha-l Feb 1, 2025
40b729b
fix: update Cargo.lock
jxs Feb 3, 2025
cfa58f0
chore(quic): migrate tests from async-std to tokio
shiyasmohd Feb 3, 2025
70479f7
fix(swarm-derive): use full path for std result in derive macros
Slava2001 Feb 3, 2025
da8763c
fix(autonat): prevent infinity loop on wrong nonce
stormshield-frb Feb 5, 2025
c78de35
chore(identify): migrate tests from async-std to tokio
shiyasmohd Feb 5, 2025
9db2ea0
feat(connection-limit): allow specific peers to bypass limit
drHuangMHT Feb 5, 2025
79a1001
chore(ci): fix interop tests
jxs Feb 5, 2025
56691db
chore(kad): migrate tests from async-std to tokio
shiyasmohd Feb 5, 2025
5f0d3f2
chore: fix spelling mistakes using crate-ci/typos
elenaf9 Feb 8, 2025
a966f62
chore(floodsub): change naming conventions
dariusc93 Feb 12, 2025
34252f0
fix(swarm): un-deprecate ConnectionHandler::{In,Out}boundOpenInfo
jxs Feb 15, 2025
6f02843
fix: update Cargo.lock
jxs Feb 17, 2025
c34a77b
chore(metrics): remove example Grafana dashboard
jxs Feb 17, 2025
0d01a42
chore: address clippy lints for Rust 1.86.0-beta
elenaf9 Feb 20, 2025
b1afe88
chore(mplex): Changing naming convention
badgooooor Feb 20, 2025
ce3908f
chore(websocket): change name convention
shiyasmohd Feb 20, 2025
9e0e8be
chore(yamux): migrate tests from async-std to tokio
shiyasmohd Feb 20, 2025
1c9b3ca
deps(ci): bump cargo-semver-checks to v0.39.0
elenaf9 Feb 24, 2025
07072c2
fix(ci): handle pre-release version
elenaf9 Feb 25, 2025
8ac5b5a
docs(roadmap): clarify community-driven roadmap
mishmosh Feb 25, 2025
f22fec3
feat(swarm): separate errors for pending inbound and outbound connection
akaladarshi Feb 27, 2025
d41d6df
feat(libp2p): arch gates *-websys export and dependencies.
elijahhampton Feb 27, 2025
b29c2f6
feat(gossipsub): allow whitelisting topics for metrics
jxs Feb 27, 2025
e244b98
feat(relay): emit event when client connections are dropped
RolandSherwin Feb 27, 2025
8c8b3c3
refactor(upnp): use let-else in place of match condition
dariusc93 Feb 28, 2025
37aa175
docs(tutorial): fix libp2p ping tutorial connection timeout
pradovic Feb 28, 2025
9907a94
feat(identify): implement signedPeerRecord
drHuangMHT Mar 2, 2025
09fa853
feat(quic): deprecate QUIC draft-29 version support
tesol2y090 Mar 3, 2025
9228dc2
fix(identify): Remove peer from cache on `DialError::WrongPeerId` event
SaadTalaat Mar 3, 2025
73383b8
feat(peer-store): introduce libp2p-peer-store
drHuangMHT Mar 4, 2025
29efd0d
fix(gossipsub): respect already received IDONTWANT when handling IWANT
ackintosh Mar 4, 2025
9caa7f5
fix(gossipsub): forward to floodsub peers
turuslan Mar 7, 2025
2848039
chore: Add edition to workspace Cargo.toml and inherit workspace edition
dariusc93 Mar 7, 2025
2d7ce54
fix: rename InsufficientPeers to NoPeersSubscribedToTopic for clarity
Khwahish29 Mar 9, 2025
e99ab75
chore: fix RUSTSEC-2025-0009 in libp2p-tls and libp2p-websocket
hanabi1224 Mar 10, 2025
b685b63
refactor: replace the `once_cell` dependency with `std` equivalents
FalkWoldmann Mar 11, 2025
4df989c
fix(gossipsub): fix inconsistent publish to floodsub peers
turuslan Mar 12, 2025
3a9e204
docs(request-response): document default message size limits
wowinter13 Mar 13, 2025
3654685
docs(request-response): update docs about peer address management
wowinter13 Mar 13, 2025
1164fd3
fix(gossipsub): race condition for messages already on the network
AgeManning Mar 13, 2025
01de903
fix: deprecated #[clap] attributes with #[arg] and #[command]
lido333 Mar 13, 2025
be9d66c
chore(ci): update golang version for wasm tests
jxs Mar 13, 2025
b89c817
chore(deps): bump golang.org/x/net
dependabot[bot] Mar 13, 2025
72f6da9
chore(deps): bump github.com/quic-go/quic-go
dependabot[bot] Mar 14, 2025
88f7875
fix(misc): deprecated #[clap] attributes with #[arg] and #[command]
lido333 Mar 14, 2025
0e89f38
deps: bump Swatinem/rust-cache from 2.7.7 to 2.7.8
dependabot[bot] Mar 19, 2025
924321a
feat(rz): emit `NewExternalAddrOfPeer` when discovering peers
dariusc93 Mar 19, 2025
4ee0e07
chore: remove unreachable_patterns lint according to note
drHuangMHT Mar 20, 2025
81bb4e9
chore: update igd-next to 0.16.1
dariusc93 Mar 22, 2025
48275e9
chore(peer-store): use workspace edition
dariusc93 Mar 23, 2025
e1bba26
chore(ci): cargo deny, ignore RUSTSEC-2024-0436
jxs Mar 24, 2025
010388d
chore(examples): fix ipfs-kad example usage
kamuik16 Mar 25, 2025
3b72e75
chore(ci): allow triggering manually
nazar-pc Mar 25, 2025
f104b2f
chore(deps): bump webpki
hanabi1224 Mar 27, 2025
c98adda
chore: replace deprecated clap attributes
jxs Mar 27, 2025
240de9f
chore(deps): bump prometheus-client
hanabi1224 Mar 28, 2025
9f85d5c
fix(gossip): correct clippy warning
dariusc93 Mar 29, 2025
f4322c5
deps: update webrtc to 0.12.0
jxs Mar 31, 2025
da003b0
fix(gossipsub): change message to message_id in trace
hopinheimer Apr 5, 2025
a898a04
fix: update Cargo.lock
jxs Apr 5, 2025
1206fef
feat(gossipsub): implement message sizes per topic.
elijahhampton Apr 8, 2025
9c712d3
chore: address clippy lints for cargo 1.87.0-beta / clippy 0.1.87
elenaf9 Apr 9, 2025
0c2ea7c
chore(metrics): update version and CHANGELOG.md
jxs Apr 9, 2025
3875abb
refactor(kad): replace BTreeMap::remove(Iter::next_back) with pop_last
drHuangMHT Apr 10, 2025
12acde3
refactor: limit `FindNodeReq` responses to `K_VALUE` (#5971)
mickvandijke Apr 10, 2025
7677277
feat(peer-store): Remove addresses from peer store on dial failure
dknopik Apr 11, 2025
7153494
chore(ci): update Cargo.lock
jxs Apr 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
- type: textarea
attributes:
label: Summary
description: Please provide a short summary of the bug, along with any information you feel relevant to replicate the bug.
description: Please provide a short summary of the bug, along with any information you feel is relevant to replicate the bug.
validations:
required: true
- type: textarea
Expand All @@ -34,7 +34,7 @@ body:
- type: textarea
attributes:
label: Possible Solution
description: Suggest a fix/reason for the bug, or ideas how to implement the addition or change.
description: Suggest a fix/reason for the bug, or ideas on how to implement the addition or change.
validations:
required: false
- type: textarea
Expand All @@ -45,11 +45,11 @@ body:
required: false
- type: dropdown
attributes:
label: Would you like to work on fixing this bug ?
label: Would you like to work on fixing this bug?
description: Any contribution towards fixing the bug is greatly appreciated. We are more than happy to provide help on the process.
options:
- "Yes"
- "No"
- Maybe
validations:
required: true
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/enhancement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ body:
required: true
- type: dropdown
attributes:
label: Are you planning to do it yourself in a pull request ?
label: Are you planning to do it yourself in a pull request?
description: Any contribution is greatly appreciated. We are more than happy to provide help on the process.
options:
- "Yes"
- "No"
- Maybe
validations:
required: true
required: true
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ body:
required: false
- type: dropdown
attributes:
label: Are you planning to do it yourself in a pull request ?
label: Are you planning to do it yourself in a pull request?
description: Any contribution is greatly appreciated. We are more than happy to provide help on the process.
options:
- "Yes"
- "No"
- Maybe
validations:
required: true
required: true
74 changes: 38 additions & 36 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,30 @@
defaults:
actions:
queue:
method: squash
commit_message_template: |
{{ title }}

{{ body | get_section("## Description", "") }}

Pull-Request: #{{ number }}.

{{ body | get_section("## Attributions", "") }}

pull_request_rules:
- name: Ask to resolve conflict
conditions:
- conflict
- -author=dependabot[bot]
- or:
- -draft # Don't report conflicts on regular draft.
- and: # Do report conflicts on draft that are scheduled for the next major release.
- draft
- milestone~=v[0-9]\.[0-9]{2}
- -draft # Don't report conflicts on regular draft.
- and: # Do report conflicts on draft that are scheduled for the next major release.
- draft
- milestone~=v[0-9]\.[0-9]{2}
actions:
comment:
message: This pull request has merge conflicts. Could you please resolve them @{{author}}? 🙏

- name: Add to merge queue
conditions:
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
- label=send-it
- base=master
actions:
queue:

- name: Add approved dependabot PRs to merge queue
conditions:
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
- author=dependabot[bot]
- base=master
actions:
queue:
message: This pull request has merge conflicts. Could you please resolve them
@{{author}}? 🙏

- name: Remove reviews on updates after PR is queued for merging
conditions:
- base=master
- label=send-it
- author!=@libp2p/rust-libp2p-maintainers
- author!=dependabot[bot]
# Do not remove approvals if last commit was a merge of master into the branch, required for the PR to be merged.
- commits[-1].author!=@libp2p/rust-libp2p-maintainers
actions:
dismiss_reviews:
message: Approvals have been dismissed because the PR was updated after the `send-it` label was applied.
message: Approvals have been dismissed because the PR was updated after the
`send-it` label was applied.
changes_requested: false

- name: Approve trivial maintainer PRs
Expand All @@ -71,6 +46,33 @@ pull_request_rules:
review:
type: APPROVE

- name: Add approved dependabot PRs to merge queue
conditions:
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
- author=dependabot[bot]
- base=master
actions:
queue:

- name: Add send-it labeled PRs to merge queue
conditions:
# All branch protection rules are implicit: https://docs.mergify.com/conditions/#about-branch-protection
- base=master
- label=send-it
actions:
queue:

queue_rules:
- name: default
conditions: []
queue_conditions:
- base=master
merge_conditions: []
merge_method: squash
commit_message_template: |
{{ title }}

{{ body | get_section("## Description", "") }}

Pull-Request: #{{ number }}.

{{ body | get_section("## Attributions", "") }}
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This section will appear as the commit message after merging.
Please craft it accordingly.
For a quick primer on good commit messages, check out this blog post: https://cbea.ms/git-commit/

Please include any relevant issues in here, for example:
Please include any relevant issues here, for example:

Related https://github.com/libp2p/rust-libp2p/issues/ABCD.
Fixes https://github.com/libp2p/rust-libp2p/issues/XYZ.
Expand All @@ -15,7 +15,7 @@ Fixes https://github.com/libp2p/rust-libp2p/issues/XYZ.
## Notes & open questions

<!--
Any notes, remarks or open questions you have to make about the PR which don't need to go into the final commit message.
Any notes, remarks, or open questions you have to make about the PR that don't need to go into the final commit message.
-->

## Change checklist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cache-factory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
shared-key: stable-cache

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cargo-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: cargo audit
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
audit:
Expand Down
35 changes: 18 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
shared-key: stable-cache
save-if: false
Expand All @@ -67,17 +68,17 @@ jobs:

echo "CRATE_VERSION=$CRATE_VERSION" >> $GITHUB_ENV

- name: Enforce version in `workspace.dependencies` matches latest version
- name: Enforce version in `workspace.dependencies` matches the latest version
if: env.CRATE != 'libp2p'
run: |
SPECIFIED_VERSION=$(tq "workspace.dependencies.$CRATE.version" --file ./Cargo.toml)
SPECIFIED_VERSION=$(tq "workspace.dependencies.$CRATE.version" -r --file ./Cargo.toml)

echo "Package version: $CRATE_VERSION";
echo "Specified version: $SPECIFIED_VERSION";

test "$CRATE_VERSION" = "$SPECIFIED_VERSION" || test "=$CRATE_VERSION" = "$SPECIFIED_VERSION"

- name: Enforce version in CHANGELOG.md matches version in manifest
- name: Enforce version in CHANGELOG.md matches the version in manifest
run: |
MANIFEST_PATH=$(cargo metadata --format-version=1 --no-deps | jq -e -r '.packages[] | select(.name == "'"$CRATE"'") | .manifest_path')
DIR_TO_CRATE=$(dirname "$MANIFEST_PATH")
Expand Down Expand Up @@ -133,7 +134,7 @@ jobs:
os: ubuntu-latest
- target: "wasm32-unknown-emscripten"
os: ubuntu-latest
- target: "wasm32-wasi"
- target: "wasm32-wasip1"
os: ubuntu-latest
- target: "x86_64-apple-darwin"
os: macos-latest
Expand All @@ -149,7 +150,7 @@ jobs:

- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
key: ${{ matrix.target }}
save-if: ${{ github.ref == 'refs/heads/master' }}
Expand All @@ -174,7 +175,7 @@ jobs:

- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

Expand All @@ -195,7 +196,7 @@ jobs:

- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
key: ${{ matrix.features }}
save-if: ${{ github.ref == 'refs/heads/master' }}
Expand All @@ -212,7 +213,7 @@ jobs:

- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

Expand All @@ -225,7 +226,7 @@ jobs:
fail-fast: false
matrix:
rust-version: [
1.80.0, # current stable
1.83.0, # current stable
beta,
]
steps:
Expand All @@ -238,7 +239,7 @@ jobs:

- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

Expand All @@ -254,7 +255,7 @@ jobs:

- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

Expand All @@ -273,7 +274,7 @@ jobs:

- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
with:
shared-key: stable-cache
save-if: false
Expand Down Expand Up @@ -308,7 +309,7 @@ jobs:
RUSTFLAGS: ''
steps:
- uses: actions/checkout@v4
- run: wget -q -O- https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.33.0/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C ~/.cargo/bin
- run: wget -q -O- https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.39.0/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C ~/.cargo/bin
shell: bash
- uses: obi1kenobi/cargo-semver-checks-action@7272cc2caa468d3e009a2b0a9cc366839348237b # v2.6

Expand All @@ -317,7 +318,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt

Expand Down Expand Up @@ -365,7 +366,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8

- run: cargo install --version 0.10.0 pb-rs --locked

Expand All @@ -391,7 +392,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
- run: cargo metadata --locked --format-version=1 > /dev/null

cargo-deny:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- 'master'
tags:
- 'libp2p-server-**'
pull_request:

jobs:
server:
Expand Down Expand Up @@ -34,11 +33,6 @@ jobs:
with:
context: .
file: ./misc/server/Dockerfile
push: ${{ ! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} # Only push image if we have the required permissions, i.e. not running from a fork
cache-from: ${{ ! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' && type=s3,mode=max,bucket=libp2p-by-tf-aws-bootstrap,region=us-east-1,prefix=buildCache,name=rust-libp2p-server }}
cache-to: ${{ ! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' && type=s3,mode=max,bucket=libp2p-by-tf-aws-bootstrap,region=us-east-1,prefix=buildCache,name=rust-libp2p-server }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
env:
AWS_ACCESS_KEY_ID: ${{ vars.TEST_PLANS_BUILD_CACHE_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TEST_PLANS_BUILD_CACHE_KEY }}
Loading
Loading