Skip to content

Add CI, cargo-deny and publish to crates.io on release - #3

Merged
rafaga merged 2 commits into
masterfrom
ci-and-publish
Oct 1, 2026
Merged

rafaga merged 2 commits into
masterfrom
ci-and-publish

Conversation

@rafaga

@rafaga rafaga commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • CI: fmt, clippy, all-features check and tests on Linux/Windows/macOS, a ci-ok gate job and a coverage report (master only). Cargo.lock is not versioned (library), so no --locked. No wasm32 job: jsonwebtoken and rand need getrandom's browser backend there, which is a design decision for the crate, not a CI one.
  • Security: security.yml + deny.toml (cargo-deny, weekly and on dependency changes). RUSTSEC-2023-0071 (rsa via jsonwebtoken) is ignored: only public-key verification happens here, and there is no fixed release.
  • Release: release.yml checks that the tag matches the Cargo.toml version, dry-runs the package and publishes with crates.io trusted publishing, replacing the stored CARGO_TOKEN. Run by hand it only does the dry run.
  • Complexity: query split into two helpers; no function is above a cyclomatic complexity of 15 now (was 18).

One-time setup (crates.io)

Crate Settings > Trusted Publishing > add: owner rafaga, repository esi-openapi, workflow release.yml.

Test plan

  • fmt, clippy, all-features check, cargo test, cargo deny check and cargo publish --dry-run pass locally.
  • Workflows run green on GitHub.

🤖 Generated with Claude Code

rafaga and others added 2 commits September 30, 2026 19:03
CI runs fmt, clippy, the all-features check and the tests on Linux, Windows
and macOS, plus a ci-ok gate and a coverage report. Security runs cargo-deny
weekly and on dependency changes. Release checks the tag against Cargo.toml,
dry-runs the package and publishes with crates.io trusted publishing instead
of a stored token.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Moves the authentication check and the request headers into their own
helpers, bringing query below a cyclomatic complexity of 15 (was 18).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@rafaga
rafaga merged commit 134bc45 into master Oct 1, 2026
7 checks passed
@rafaga
rafaga deleted the ci-and-publish branch October 1, 2026 01:12
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