Skip to content

chore: upgrade dependencies and prepare 0.9.0-beta - #345

Merged
CherishCai merged 2 commits into
mainfrom
chore/upgrade-deps-latest
Dec 2, 2026
Merged

CherishCai merged 2 commits into
mainfrom
chore/upgrade-deps-latest

Conversation

@CherishCai

@CherishCai CherishCai commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Two reviewable commits: dependency wave + 0.9.0-beta release prep.

1. Dependency upgrades to latest majors

  • reqwest 0.12 → 0.13: .query() moved behind a crate feature, so features = ["query"] is required (used by the auth-by-http login). Behavioral note: with the tls feature, reqwest's default-tls is now rustls (aws-lc-rs) + rustls-platform-verifier instead of native-tls; tonic keeps tls-ring. Verified live: HTTPS handshake and query escaping behave as before with SDK-identical features; the dual rustls providers coexist without conflict.
  • base64 0.22 → 0.23 (optional, auth-by-aliyun): Engine/prelude::BASE64_STANDARD unchanged, padding semantics byte-identical. Also added the alloc feature explicitly — Engine::encode is alloc-gated and previously compiled only because reqwest happened to unify it in.
  • nacos-macro: syn 2 → 3, darling 0.23 → 0.24: darling 0.24 moved to syn 3, which broke standalone cargo build -p nacos-macro (syn2 full was no longer unified in). The macro's syn surface (ItemStruct, Field::parse_named, parse_quote) ports to syn 3 with zero code changes; both crates are bumped together so no duplicate syn tree is compiled inside the macro.
  • dev-deps: mockall 0.14 → 0.15 (0.15 diff is doc-only for the APIs we use), zino 0.43 → 0.46 (examples compile; zino-axum 0.20 still on axum 0.8, so the pinned axum = "0.8" stays unified).

2. Release prep: 0.9.0-beta

  • nacos-sdk 0.9.0-alpha → 0.9.0-beta; nacos-macro 0.4.0-alpha → 0.4.0-beta (manifest + dependency requirement)
  • CHANGELOG 0.9.0-alpha section retitled to 0.9.0-beta (includes the dependency wave entry: TLS backend switch and the effective MSRV rise to 1.88 via darling)
  • Publish tags after merge: nacos-macro-v0.4.0-beta first, then v0.9.0-beta (the two publish jobs are tag-gated and run independently)

Verification

  • cargo test --lib --bins --all-features: 272 passed / 2 ignored (baseline parity, before and after the version bump)
  • cargo clippy --all-features -- -D warnings, cargo clippy -p nacos-macro -- -D warnings, cargo fmt --check: clean
  • cargo check --all-features --all-targets and cargo build --features "default,tls": green
  • cargo test -p nacos-macro (standalone): compiles and passes with syn 3
  • External integration suite vs Nacos v2.5.4: it_config 18, it_auth 19, it_endpoint 26, it_cache 31 all pass; it_naming 34/35 — the single failure is test_register_persistent_instance due to a local container whose IP changed while its persisted jraft conf kept the old address ("did not find the Leader node"); the same failure reproduces on the pre-upgrade baseline via git stash, so it is an environment issue, not a regression.

Notes

  • No rust-version is declared in the manifests; the effective floor after this wave is 1.88 (proc-macro path via darling; reqwest needs 1.85). Happy to declare it explicitly in a follow-up if desired.
  • zino 0.46 (dev/examples-only) raises its own MSRV to 1.95; CI uses stable, so no impact today.

Co-authored-by: Qoder noreply@qoder.com

CherishCai and others added 2 commits December 2, 2026 01:18
reqwest 0.13 (query moved behind a crate feature; tls now rustls +
system trust store), base64 0.23 with explicit alloc, mockall 0.15 and
zino 0.46 (dev-only), and nacos-macro on syn 3 / darling 0.24, which
also fixes standalone nacos-macro builds that previously relied on
syn2 `full` being unified in from darling.

Co-authored-by: Qoder <noreply@qoder.com>
- nacos-sdk 0.9.0-alpha -> 0.9.0-beta, nacos-macro 0.4.0-alpha -> 0.4.0-beta
- retarget the macro dependency and move the changelog section to 0.9.0-beta

Co-authored-by: Qoder <noreply@qoder.com>
@CherishCai CherishCai changed the title chore: upgrade dependencies to latest majors chore: upgrade dependencies and prepare 0.9.0-beta Dec 2, 2026
@CherishCai
CherishCai merged commit 1bcd1a1 into main Dec 2, 2026
18 checks passed
@CherishCai
CherishCai deleted the chore/upgrade-deps-latest branch December 2, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant