Skip to content

Commit

Permalink
0.3.0 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Dec 23, 2024
1 parent a11ad62 commit 1cddb2f
Show file tree
Hide file tree
Showing 60 changed files with 375 additions and 347 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 50

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
10 changes: 5 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
features: "test,tokio,s2n,compression,metrics"
name: "quic-s2n"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
Expand All @@ -120,7 +120,7 @@ jobs:
working-directory: ${{ matrix.crate }}
continue-on-error: true
- name: Upload Coverage Report as Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.crate }}/cobertura.xml
Expand All @@ -129,15 +129,15 @@ jobs:
needs: coverage-report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download all coverage reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: reports/
- name: List contents of the reports directory
run: ls -a reports
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
directory: reports
fail_ci_if_error: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/loc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
loc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
run: |
Expand All @@ -42,7 +42,7 @@ jobs:
tokeit
- name: Upload loc to GitHub Gist
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.GIST_PAT}}
script: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ jobs:
# - windows-latest
runtime: [tokio, async-std, smol]
stream_layer: [tls, native-tls, tcp]
# TODO: remove this exlucde when figuring out why native-tls with smol leads to a user_data* unit tests failure
exclude:
- runtime: smol
stream_layer: native-tls
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
run: |
Expand Down Expand Up @@ -72,7 +76,7 @@ jobs:
working-directory: memberlist

- name: Cache Cargo registry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand Down
119 changes: 0 additions & 119 deletions .github/workflows/python.yml.bk

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/quinn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# - windows-latest
runtime: [tokio, async-std, smol]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
run: |
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
working-directory: memberlist

- name: Cache Cargo registry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/s2n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# - macos-latest,
# - windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
run: |
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
# working-directory: memberlist

- name: Cache Cargo registry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand Down
36 changes: 22 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ license = "MPL-2.0"
repository = "https://github.com/al8n/memberlist"
homepage = "https://github.com/al8n/memberlist"
readme = "README.md"
rust-version = "1.75.0"
rust-version = "1.81.0"
keywords = ["swim", "gossip", "service-discovery"]
categories = ["network-programming", "asynchronous"]

Expand All @@ -29,36 +29,44 @@ rustdoc-args = ["--cfg", "docsrs"]
auto_impl = "1"
atomic_refcell = "0.1"
agnostic-lite = { version = "0.3", features = ["time"] }
agnostic = "0.3.5"
agnostic = "0.4"
# agnostic-lite = { version = "0.3", features = ["time"], path = "../agnostic/lite" }
# agnostic = { version = "0.4", path = "../agnostic/agnostic" }
async-lock = "3"
async-channel = "2"
bytes = "1.5"
bytes = "1"
byteorder = "1"
derive_more = "0.99"
derive_more = { version = "1", features = ["full"] }
futures = "0.3"
indexmap = "2"
local-ip-address = "0.6"
metrics = "0.22"
nodecraft = { version = "0.3", features = [
metrics = "0.24"
nodecraft = { version = "0.4", features = [
"transformable",
"async",
"resolver",
"agnostic",
] }
# nodecraft = { version = "0.4", path = "../nodecraft", features = [
# "transformable",
# "async",
# "resolver",
# "agnostic",
# ] }
paste = "1"
pin-project = "1"
scopeguard = "1"
serde = { version = "1", features = ["derive", "rc"] }
humantime-serde = "1"
smallvec = "1"
smallvec-wrapper = { version = "0.1", features = ["const_new", "either"] }
smol_str = "0.2"
transformable = { version = "0.1.6", features = ["smol_str", "bytes"] }
thiserror = "1"
smallvec-wrapper = { version = "0.2", features = ["const_new", "either"] }
smol_str = "0.3"
transformable = { version = "0.2", features = ["smol_str03", "bytes1"] }
thiserror = "2"
tracing = "0.1"
viewit = "0.1.5"

memberlist-core = { version = "0.2", path = "core", default-features = false }
memberlist-net = { version = "0.2", path = "transports/net", default-features = false }
memberlist-types = { version = "0.2", path = "types", default-features = false }
memberlist-quic = { version = "0.2", path = "transports/quic", default-features = false }
memberlist-core = { version = "0.3", path = "core", default-features = false }
memberlist-net = { version = "0.3", path = "transports/net", default-features = false }
memberlist-types = { version = "0.3", path = "types", default-features = false }
memberlist-quic = { version = "0.3", path = "transports/quic", default-features = false }
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ For details on all of these extensions, please read Hashicorp's paper ["Lifeguar

```toml
[dependencies]
memberlist = "0.1"
memberlist = "0.3"
```

## Q & A
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ For details on all of these extensions, please read Hashicorp's paper ["Lifeguar

```toml
[dependencies]
memberlist = "0.1"
memberlist = "0.3"
```

## Q & A
Expand Down
10 changes: 5 additions & 5 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "memberlist-core"
version = "0.2.1"
version = "0.3.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
Expand Down Expand Up @@ -42,7 +42,7 @@ once_cell = "1.17"
rustix = { version = "0.38", features = ["system"] }

[target.'cfg(windows)'.dependencies]
hostname = "0.3"
hostname = "0.4"

[dependencies]
auto_impl.workspace = true
Expand All @@ -56,7 +56,7 @@ derive_more.workspace = true
either = "1"
futures.workspace = true
nodecraft.workspace = true
transformable = { workspace = true, features = ["bytes", "smol_str"] }
transformable = { workspace = true, features = ["bytes1", "smol_str03"] }
paste.workspace = true
parking_lot = "0.12"
pin-project.workspace = true
Expand Down Expand Up @@ -87,7 +87,7 @@ tracing-subscriber = { version = "0.3", optional = true, features = [
"env-filter",
"tracing-log",
] }
pnet = { version = "0.34", optional = true }
pnet = { version = "0.35", optional = true }


# metrics feature
Expand All @@ -98,7 +98,7 @@ tracing-subscriber = { version = "0.3", features = [
"env-filter",
"tracing-log",
] }
pnet = "0.34"
pnet = "0.35"
agnostic = { workspace = true, features = ["net", "tokio"] }
rand = "0.8"
tokio = { version = "1", features = ["full"] }
Expand Down
Loading

0 comments on commit 1cddb2f

Please sign in to comment.