Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- master
# If we want to backport changes to an old release, push a branch
# eg v0.40.x and CI will run on it. PRs merging to such branches
# eg v0.40.x and CI will run on it. PRs merging to such branches
# will also trigger CI.
- v0.[0-9]+.x
pull_request:
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1

- name: Install
- name: Install
uses: actions/setup-node@v4
with:
# Node version 20 and higher seem to cause an issue with the JS example so stick to 19 for now.
Expand All @@ -230,7 +230,7 @@ jobs:
echo "Running Python FFI example..."
python3 src/main.py
echo "Python FFI example completed with exit code $?"

# Run the node version of the FFI code
echo "Installing Node.js dependencies..."
npm i
Expand Down Expand Up @@ -331,10 +331,10 @@ jobs:
matrix:
# Test each of these features in our integration tests:
feature:
- default
- reconnecting-rpc
- legacy-backend
- chainhead-backend
- default
- reconnecting-rpc
- legacy-backend
- chainhead-backend
steps:
- name: Checkout sources
uses: actions/checkout@v6
Expand Down Expand Up @@ -447,14 +447,14 @@ jobs:
name: "Flaky lightclient integration tests (${{ matrix.feature }})"
runs-on: parity-large
needs: [clippy, wasm_clippy, check, wasm_check, docs]
timeout-minutes: 10
timeout-minutes: 15
strategy:
matrix:
# Test each of the backends with the light client.
feature:
- default
- legacy-backend
- chainhead-backend
- default
- legacy-backend
- chainhead-backend
steps:
- name: Checkout sources
uses: actions/checkout@v6
Expand All @@ -471,8 +471,10 @@ jobs:

- name: Run crate tests
id: test
env:
RUST_LOG: "info,subxt=debug,integration_tests=trace"
run: |
if cargo test -p integration-tests --features light-client-rpc,${{ matrix.feature }}; then
if cargo test -p integration-tests --features light-client-rpc,${{ matrix.feature }} light_client -- --nocapture; then
echo "result=success" >> $GITHUB_OUTPUT
else
echo "result=failure" >> $GITHUB_OUTPUT
Expand Down
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resolver = "2"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2024"
version = "0.50.2"
rust-version = "1.85.0"
rust-version = "1.88.0"
license = "Apache-2.0 OR GPL-3.0"
repository = "https://github.com/paritytech/subxt"
documentation = "https://docs.rs/subxt"
Expand Down Expand Up @@ -126,8 +126,8 @@ hyper = "1"
http-body = "1"

# Light client support:
smoldot = { version = "1.1.0", default-features = false }
smoldot-light = { version = "1.1.0", default-features = false }
smoldot = { version = "2.1.0", default-features = false }
smoldot-light = { version = "1.3.1", default-features = false }
tokio-stream = "0.1.16"
futures-util = "0.3.31"
rand = "0.8.5"
Expand Down
6 changes: 3 additions & 3 deletions cli/src/commands/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ pub async fn run(opts: Opts, output: &mut impl std::io::Write) -> color_eyre::Re
Diff::Added(new) => writeln!(
output,
"{}",
format!(" + {}", &new.name).green()
format!(" + {}", new.name).green()
)?,
Diff::Removed(old) => writeln!(
output,
"{}",
format!(" - {}", &old.name).red()
format!(" - {}", old.name).red()
)?,
Diff::Changed { from, to: _ } => {
writeln!(
output,
"{}",
format!(" ~ {}", &from.name).yellow()
format!(" ~ {}", from.name).yellow()
)?;
}
}
Expand Down
75 changes: 50 additions & 25 deletions examples/ffi-example/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading