Skip to content

Commit 3d7bf8c

Browse files
authored
build(sdk): publish the SDKs to crates.io and npm with just release (#513)
Nothing in the repository was published, so an app outside it had to depend on `sourceorigin-auth` by git and build `@sourceorigin/auth` from a checkout, and the developer console's Rust snippet said so. Now `just release` publishes the SDKs from the maintainer's machine, the same way piqueld releases: no publishing workflow, no trusted publishing and no `release` environment. `just release` runs `cargo xtask release` (new, `tools/xtask`, shaped like piqueld's): 1. Checks that HEAD is the latest `origin/main` and that `v<version>` isn't tagged yet. From the second release on, it also runs `cargo semver-checks` against the previous `v*` tag, so a breaking change needs a version that allows it. 2. Publishes `sourceorigin-common`, `sourceorigin-crypto` and `sourceorigin-auth` with `cargo publish --workspace`, then `@sourceorigin/auth` with `npm publish` at its own version. Versions already on a registry are skipped, so a release that fails partway can simply be run again. 3. Tags `v<version>` and pushes the tag. 4. Creates the GitHub release with `gh release create`. Its notes list the published packages, then the PRs merged since the previous tag, grouped by title type: breaking changes, features, fixes, and everything else (#463). 5. Closes the `v<major>.<minor>` milestone. `just release --dry-run` runs the checks, `cargo publish --dry-run` and `npm publish --dry-run`, writes the notes to `target/release-notes-v<version>.md`, and prints the other steps as commands you can paste. `just publish` runs only step 2. A new `package` CI job runs `just publish --dry-run` on PRs that touch Rust or web files, and a new `msrv` job builds the published crates with Rust 1.88. I ran both dry runs locally. The release one ran with its `origin/main` check stubbed out, since this branch isn't `main`. All three crates packaged and built from their packages, and the notes came out grouped as intended. Other changes: - **`sourceorigin-crypto` is published too.** The SDK depends on it since #495, and #500 relicensed it Apache-2.0. Every other crate, and `xtask`, sets `publish = false`. `just publish` also refuses to publish any crate not under Apache-2.0. - **Versions.** The three crates share the workspace version and require each other at exactly that version (`=0.1.0` in `[workspace.dependencies]`). The SDK vector generator moved from `sourceorigin-common`'s tests to `sourceorigin-crypto`'s: it was common's only use of crypto, a test-only dependency back on a crate that depends on common, which would have kept common from publishing first. The vectors are unchanged, and `just sdk-vectors` now runs `-p sourceorigin-crypto`. - **Package metadata.** `rust-version = "1.88"`, the oldest toolchain installed here that builds them. Also READMEs, `LICENSE-APACHE` (a symlink, which Cargo packages as a file), keywords, categories, and docs.rs `all-features` with `doc_cfg` labels. - **The `sourceorigin-auth` crate docs** now open with a quick start that shows `examples/notes.rs`. - **npm.** `@sourceorigin/auth` is no longer private: `publishConfig.access = public`, a `prepack` build, and a `LICENSE` copy (npm skips symlinks). - **Developer console.** The Rust snippet depends on `version = "<the workspace version>"` instead of git. The console links docs.rs and npm, and names both SDKs on the home page and on a confidential app's page. - **Docs.** New `docs/dev/releasing.md`. Updated the install steps in the user guide, the agent skill and the READMEs, plus the architecture overview, the SDK design page, testing (recipes and CI jobs) and AGENTS.md. - **Changelogs.** The GitHub release notes are the changelog, and every package README links to them. There are no `CHANGELOG.md` files, since nothing would generate them without a release tool. ## Your checklist Do these once, in this order. Nothing here was published or registered by me. 1. **crates.io token.** Sign in at https://crates.io with GitHub, then go to **Account Settings** → **API Tokens** → **New Token**. Name it `sourceorigin release`, give it the scopes `publish-new` and `publish-update`, and limit it to the crates `sourceorigin-*`. Then save it for Cargo: ```sh cargo login ``` 2. **npm scope.** Create the `sourceorigin` organization (free, public packages) at https://www.npmjs.com/org/create, so `@sourceorigin` is yours. Then sign in and check: ```sh npm login npm whoami ``` 3. **Tools.** ```sh gh auth status just install-tools # adds cargo-semver-checks ``` 4. **Release 0.1.0**, once this PR and #506 are merged and the merge commit's CI has passed: ```sh git switch main && git pull just release --dry-run just release ``` npm may ask for a one-time password while publishing. The first `just release` publishes `0.1.0` of all three crates and the npm package, which claims the names. Checked today, `sourceorigin-common`, `sourceorigin-crypto`, `sourceorigin-auth` and `@sourceorigin/auth` are all still free. Then check the result, as `docs/dev/releasing.md` describes: ```sh cargo new /tmp/release-check && cd /tmp/release-check cargo add sourceorigin-auth --features axum && cargo build npm install @sourceorigin/auth ``` Closes #61 Proved by: `just publish --dry-run` (all three crates packaged and built from their packages, npm packed), `just release --dry-run` with only the `origin/main` check stubbed, both before the first release and against a fake earlier `v0.0.9` tag (semver-checks ran against it, notes covered only later commits and left out the unchanged npm package), and the Docker planner stage built locally. Reviewed with review-loop: 2 rounds with 2× GPT 6.1 Sol and Claude Opus 5.5. Verdict: approved > [!NOTE] > Written by Claude Opus 5.5 in Claude Code and reviewed by GPT 6.1 Sol and Claude Opus 5.5 (via T3 Code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Overview This change prepares the Rust and TypeScript SDKs for publication. It adds a maintainer-run release tool (`cargo xtask`), publish and release recipes, CI dry-run jobs, package metadata, and documentation. It does not publish anything yet. The diff changes 48 files, with 1,445 lines added and 76 removed. ## Release tooling (`tools/xtask`) - `tools/xtask/src/main.rs` adds the `cargo xtask` entry point with `publish` and `release` subcommands. It also adds `Workspace`, which: - Reads the Git checkout root and Cargo metadata. - Selects crates whose `publish` setting is absent or non-empty. - Errors if no crate is publishable or if selected crates have different versions. - Reads the npm package name and version from `packages/auth/package.json`. - Runs Cargo subprocesses from the workspace root with Cargo package environment variables removed. - `tools/xtask/src/publish.rs` adds `Publish`. It: - Checks that each published crate uses the exact `Apache-2.0` license. - Unless `allow_dirty` is set, rejects a dirty working tree. - Runs `cargo publish --locked --workspace`, skipping versions already on crates.io. - Publishes the npm package unless that version already exists. - In dry-run mode, skips registry checks and passes `--dry-run` to Cargo and npm. - Treats a registry lookup as "not found" only when stderr contains the expected marker. Other failures return errors. - `tools/xtask/src/release.rs` adds `Release`. It: - Finds the latest `v*` tag reachable from `HEAD`. - Requires `HEAD` to match fetched `origin/main`. - Rejects a version already tagged on origin. - Runs `cargo semver-checks` against the previous tag for published packages. Without a previous tag, it skips this check. - Runs the publish step. - Writes release notes that list published crates and the npm package. Notes also list first-parent commit subjects grouped by Conventional Commits type. - Creates and pushes an annotated version tag, creates a GitHub release, and closes the matching `v<major>.<minor>` milestone if it is open. - In dry-run mode, prints commands instead of running them. - Includes tests for grouping and formatting. - `tools/xtask/Cargo.toml` adds the package. Publishing is disabled and workspace lints are enabled. - `.cargo/config.toml` adds the `xtask` alias. ## Task runner and workflow - `justfile`: - Adds `cargo-semver-checks` to `install-tools`. - Adds `publish *ARGS` and `release *ARGS` recipes that forward arguments to `cargo xtask`. - Changes `sdk-vectors` to run the `sourceorigin-crypto` integration test instead of the `sourceorigin-common` test. - `.github/workflows/ci.yml`: - Adds `tools/**` to the Rust path filter. - Adds a `package` job that runs `just publish --dry-run` when Rust or web files change. - Adds an `msrv` job that installs the Rust version from the root `Cargo.toml` and checks the listed crates when Rust files change. - Adds both jobs to the `ci` job's dependencies and allowed-skipped list. - `deny.toml` adds a license exception for `PolyForm-Noncommercial-1.0.0` for the `xtask` crate. ## Workspace and crate metadata - `Cargo.toml`: - Adds `tools/xtask` as a workspace member. - Sets the homepage to `https://sourceorigin.dev`. - Sets the workspace MSRV to `1.88`. - Pins the `sourceorigin-common` and `sourceorigin-crypto` workspace dependencies to exactly `0.1.0`. Other local dependencies keep non-exact `0.1.0` requirements. - Documents that non-SDK crates are unpublished and that the published crates are released together. - `crates/auth-sdk` (`sourceorigin-auth`): - Adds homepage, `rust-version`, README path, keywords, categories, and docs.rs settings that build all features and pass `--cfg docsrs`. - Adds `LICENSE-APACHE` as a symbolic link to the root license. - Rewrites the README with an Axum sign-in example, token validation notes, and links. - Adds a Quick start section and a `docsrs`-conditional `doc_cfg` attribute to the crate docs. - `crates/common` (`sourceorigin-common`): - Inherits homepage and `rust-version`, adds README, keywords, and categories, and adds docs.rs settings. - Removes `sourceorigin-crypto` and `aws-lc-rs` from dev-dependencies. - Adds `LICENSE-APACHE` as a symbolic link and adds a README. - Enables `doc_cfg` under docs.rs. - `crates/crypto` (`sourceorigin-crypto`): - Adds the same metadata and docs.rs settings, plus README and `LICENSE-APACHE`. - Adds a crate-level `docsrs` `doc_cfg` attribute. - Its README describes the primitives, the `aws-lc-rs` dependency, the C compiler requirement, and the MSRV. - Its manifest does not set `publish = false`. The crate is part of the published set. - Private crates get `publish = false` and a PolyForm Noncommercial License note in their manifests: - `apps/auth-service` - `apps/web` - `crates/database` - `crates/telemetry` - `crates/ui` ## Developer console and web app - `crates/ui/src/developers.rs`: - The Rust SDK link points to docs.rs. - The example dependency uses `CARGO_PKG_VERSION` instead of a Git URL. - Adds a TypeScript SDK link and documents server use for Node, Bun, and Workers. - `apps/web/src/pages.rs` changes the homepage SDK feature text to name `sourceorigin-auth` and `@sourceorigin/auth`. ## npm package (`packages/auth`) - `package.json`: - Removes `"private": true` and sets public publish access. - Adds keywords and a documentation homepage. - Adds a `prepack` script that runs `tsc`. - Adds `LICENSE` (Apache License 2.0) and updates `README.md` to use `npm install @sourceorigin/auth`, add a release-changes link, and add a License section. ## Documentation - `docs/dev/releasing.md` (new): documents versioning, publish prerequisites, release steps, post-release checks, troubleshooting, dry-run commands, and recovery steps. It states that Rust crates share a workspace version and the npm package versions independently. - `docs/SUMMARY.md` links the new release guide. - `docs/dev/architecture/overview.md` and `docs/dev/architecture/sdk.md` describe which packages are published and add a Releases section. - `docs/dev/testing.md` adds the `just publish --dry-run --allow-dirty` recipe and the `package` and `msrv` CI jobs. - `docs/dev/contributing.md`, `docs/dev/extending/sdk-feature.md`, and `tests/sdk-vectors/README.md` point the SDK vector generator to `crates/crypto/tests/sdk_vectors.rs`. - `AGENTS.md` and `README.md` describe `tools/xtask`, `just publish`, `just release`, and the published packages. - User docs (`docs/user/...`) replace checkout-based install steps with `cargo add` and `npm install` commands. They also state the Rust 1.88 minimum and the C compiler requirement. ## Points to note - The raw summary does not describe the `allow-wildcard-paths` setting. The PR description and commit messages disagree about whether `cargo-deny` needs it. This summary does not resolve that conflict. - The PR description says the local release dry run stubbed the `origin/main` check. The code summary states that `Release` requires `HEAD` to match `origin/main`. The stub is not visible in this summary. - The PR description reports local dry runs, which the author ran. CI results and test results are not available in the supplied evidence. - The linked issue (`#61`) proposes a GitHub Actions release workflow with trusted publishing and a `release` environment. This change does not add that workflow. It adds a maintainer-run `just release` flow instead. The issue's workflow-based acceptance criteria are not met by this change. - The linked issue lists `sourceorigin-crypto` as private. This change publishes it. This difference is intentional according to the PR objectives. - Nothing is published yet. The first release is a manual maintainer action. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 6fb8c8a commit 3d7bf8c

49 files changed

Lines changed: 1474 additions & 76 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.cargo/config.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
# Checked SQLx queries compile from crates/database/.sqlx, so a DATABASE_URL in
33
# the shell never makes a build connect. `just db prepare` overrides it.
44
SQLX_OFFLINE = "true"
5+
6+
# `cargo xtask <task>` runs the workspace's development tasks (tools/xtask).
7+
[alias]
8+
xtask = "run --package xtask --"

‎.github/workflows/ci.yml‎

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
# rust -> unit and database tests against PostgreSQL with coverage, and
1010
# the SQLx query cache checked to match the migrated schema exactly
1111
# rust-lint -> Clippy, rustdoc with warnings denied, and the doc tests
12+
# package -> the SDKs packaged as `just publish` publishes them, each crate
13+
# built from its package, without uploading anything
14+
# msrv -> the published crates built with their oldest supported Rust
1215
# e2e -> the browser suite over HTTPS against the real binary and PostgreSQL,
1316
# with the admin dashboard on its own listener and host, sourceorigin.dev's
1417
# web server on its own host, Mailpit receiving auth's email, and
@@ -87,7 +90,7 @@ jobs:
8790
predicate-quantifier: every
8891
filters: |
8992
rust:
90-
- '{Cargo.toml,Cargo.lock,rust-toolchain.toml,clippy.toml,.cargo/**,justfile,just/**,apps/**,crates/**,tests/sdk-vectors/**,packages/auth/src/protocol.ts,docs/dev/security/audit-key.pub,.github/workflows/ci.yml}'
93+
- '{Cargo.toml,Cargo.lock,rust-toolchain.toml,clippy.toml,.cargo/**,justfile,just/**,apps/**,crates/**,tools/**,tests/sdk-vectors/**,packages/auth/src/protocol.ts,docs/dev/security/audit-key.pub,.github/workflows/ci.yml}'
9194
- '!**/*.md'
9295
reference:
9396
- 'docs/dev/operations/{cli-commands,variables/*}.md'
@@ -180,6 +183,45 @@ jobs:
180183
- run: just doc
181184
- run: just doc-test
182185

186+
# Everything `just publish` does except uploading: packages each crate and
187+
# builds it from its package, as `cargo install` and crates.io would, then
188+
# packs @sourceorigin/auth, whose `prepack` script builds it.
189+
package:
190+
name: package
191+
needs: changes
192+
if: needs.changes.outputs.rust == 'true' || needs.changes.outputs.web == 'true'
193+
runs-on: ubuntu-latest
194+
timeout-minutes: 30
195+
steps:
196+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
197+
- *install-just
198+
- *setup-pnpm
199+
- *setup-node
200+
- *rust-cache
201+
- run: just install
202+
- run: just publish --dry-run
203+
204+
# Builds the published crates with the oldest Rust their `rust-version`
205+
# promises. Warnings aren't errors here: lints differ between Rust versions,
206+
# and rust-lint lints with the pinned one.
207+
msrv:
208+
name: msrv
209+
needs: changes
210+
if: needs.changes.outputs.rust == 'true'
211+
runs-on: ubuntu-latest
212+
timeout-minutes: 20
213+
steps:
214+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
215+
# RUSTUP_TOOLCHAIN overrides rust-toolchain.toml for every later step,
216+
# the cache key included.
217+
- name: Install the oldest supported Rust
218+
run: |
219+
msrv=$(sed -n 's/^rust-version = "\(.*\)"$/\1/p' Cargo.toml)
220+
rustup toolchain install "$msrv" --profile minimal
221+
echo "RUSTUP_TOOLCHAIN=$msrv" >> "$GITHUB_ENV"
222+
- *rust-cache
223+
- run: cargo check --locked --all-features --package sourceorigin-common --package sourceorigin-crypto --package sourceorigin-auth
224+
183225
rust:
184226
name: rust
185227
needs: changes
@@ -397,6 +439,8 @@ jobs:
397439
- web
398440
- rust
399441
- rust-lint
442+
- package
443+
- msrv
400444
- e2e
401445
- docker
402446
- infra
@@ -406,5 +450,5 @@ jobs:
406450
steps:
407451
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
408452
with:
409-
allowed-skips: checks, web, rust, rust-lint, e2e, docker, infra
453+
allowed-skips: checks, web, rust, rust-lint, package, msrv, e2e, docker, infra
410454
jobs: ${{ toJSON(needs) }}

‎AGENTS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ This repository contains everything under the sourceorigin.dev domain:
1414
`telemetry` and `ui`.
1515
- `packages/auth`: the TypeScript SDK.
1616
- `infra/`: Dockerfiles and piqueld deployments.
17+
- `tools/xtask`: `cargo xtask`, which publishes the SDKs and releases a version
18+
(`just publish`, `just release`).
1719
- `tests/browser` (Playwright) and `tests/sdk-vectors` (cases every SDK passes).
1820
- `docs/`: the documentation book, a user guide and a contributor guide.
1921

‎Cargo.lock‎

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,20 @@ members = [
99
"crates/database",
1010
"crates/telemetry",
1111
"crates/ui",
12+
"tools/xtask",
1213
]
1314

1415
[workspace.package]
1516
edition = "2024"
1617
# Non-commercial by default. The SDK and the crates it depends on (auth-sdk,
17-
# common, crypto) override this with Apache-2.0, so any application can use them.
18+
# common, crypto) override this with Apache-2.0, so any application can use them;
19+
# every other crate sets `publish = false`. See docs/dev/releasing.md.
1820
license = "PolyForm-Noncommercial-1.0.0"
1921
repository = "https://github.com/sourceorigin-dev/sourceorigin"
22+
homepage = "https://sourceorigin.dev"
23+
# The oldest Rust the published crates build with, which the `msrv` CI job checks.
24+
rust-version = "1.88"
25+
# Every crate shares it, and the published ones are released together.
2026
version = "0.1.0"
2127

2228
[workspace.lints.rust]
@@ -42,15 +48,17 @@ self_named_module_files = "warn"
4248
[workspace.dependencies]
4349
# Local crates. Each names the workspace's version: cargo-deny (deny.toml)
4450
# denies a dependency with no version as a wildcard, and crates.io would refuse
45-
# to publish the SDK without one.
46-
sourceorigin-common = { version = "0.1.0", path = "crates/common" }
47-
sourceorigin-crypto = { version = "0.1.0", path = "crates/crypto" }
51+
# to publish the SDK without one. The published crates require each other at
52+
# exactly that version, since they are released together.
53+
sourceorigin-common = { version = "=0.1.0", path = "crates/common" }
54+
sourceorigin-crypto = { version = "=0.1.0", path = "crates/crypto" }
4855
sourceorigin-repository = { version = "0.1.0", path = "crates/database" }
4956
sourceorigin-telemetry = { version = "0.1.0", path = "crates/telemetry" }
5057
sourceorigin-auth = { version = "0.1.0", path = "crates/auth-sdk" }
5158
sourceorigin-ui = { version = "0.1.0", path = "crates/ui" }
5259

5360
# External crates
61+
anyhow = "1"
5462
async-trait = "0.1"
5563
axum = "0.8"
5664
base64 = "0.22"

‎README.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ by passkeys, for SourceOrigin's services and any app built on them.
1111
a private listener. Administrators manage accounts there, and invite people by
1212
email or with a link to pass on.
1313
- **sourceorigin.dev** is the homepage and policies.
14-
- **The SDKs**, `sourceorigin-auth` for Rust and `@sourceorigin/auth` for TypeScript, sign
15-
users in and validate auth's tokens.
14+
- **The SDKs**, [`sourceorigin-auth`](https://crates.io/crates/sourceorigin-auth) for
15+
Rust and [`@sourceorigin/auth`](https://www.npmjs.com/package/@sourceorigin/auth) for
16+
TypeScript, sign users in and validate auth's tokens. They are published to
17+
crates.io and npm, with `sourceorigin-common` and `sourceorigin-crypto`, which the
18+
Rust SDK depends on. Nothing else is published; see
19+
[releasing](docs/dev/releasing.md).
1620

1721
## Documentation
1822

@@ -39,6 +43,7 @@ See [getting started](docs/dev/getting-started.md) for the tools these need.
3943
| `packages/auth` | the TypeScript SDK |
4044
| `infra/` | Dockerfiles and piqueld deployments |
4145
| `tests/` | the browser tests and the cases every SDK passes |
46+
| `tools/xtask` | `cargo xtask`, which publishes the SDKs and releases a version |
4247
| `docs/` | the documentation book |
4348

4449
## Contact

‎apps/auth-service/Cargo.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ version.workspace = true
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true
7+
# Under the PolyForm Noncommercial License: never published.
8+
publish = false
79

810
[dependencies]
911
sourceorigin-common = { workspace = true, features = ["admin", "config", "email", "events", "similarity"] }

‎apps/web/Cargo.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ version.workspace = true
55
edition.workspace = true
66
license.workspace = true
77
repository.workspace = true
8+
# Under the PolyForm Noncommercial License: never published.
9+
publish = false
810

911
[dependencies]
1012
sourceorigin-common = { workspace = true, features = ["config"] }

‎apps/web/src/pages.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async fn home(links: HomeLinks<'_>) -> Result<impl View> {
9797
feature(title: "Sign in with a passkey", text: "Your passkey stays on your device or in your password manager. There is no password to steal or reuse. You can also link GitHub or Google to sign in.", label: "Sign in", href: links.sign_in)
9898
feature(title: "Your account, in your hands", text: "See and remove your passkeys, linked providers, email addresses, signed-in devices and the apps you allowed. Review your security history, download your data, or delete your account.", label: "Account settings", href: links.settings)
9999
feature(title: "For developers", text: "Register your app as an OpenID Connect client, so its users sign in with their Origin Account. Apps only get what their users approve.", label: "Developer console", href: links.developers)
100-
feature(title: "Open standards and SDKs", text: "Origin Auth speaks OpenID Connect and OAuth 2.0, so any standard library works. The Rust SDK, sourceorigin-auth, validates tokens and signs users in for you.", label: "Documentation", href: DOCUMENTATION)
100+
feature(title: "Open standards and SDKs", text: "Origin Auth speaks OpenID Connect and OAuth 2.0, so any standard library works. The Rust and TypeScript SDKs, sourceorigin-auth and @sourceorigin/auth, validate tokens and sign users in for you.", label: "Documentation", href: DOCUMENTATION)
101101
feature(title: "Public source", text: "All of SourceOrigin's code is public. Read exactly how your data is handled, report a problem, or contribute. You may use it for anything but commercial purposes, and the SDKs are free for any app under Apache 2.0.", label: "Source code", href: SOURCE, wide: true)
102102
</div>
103103
})

‎crates/auth-sdk/Cargo.toml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ version.workspace = true
55
edition.workspace = true
66
license = "Apache-2.0"
77
repository.workspace = true
8+
homepage.workspace = true
9+
rust-version.workspace = true
10+
readme = "README.md"
11+
keywords = ["oauth", "openid-connect", "jwt", "authentication", "axum"]
12+
categories = ["authentication", "web-programming"]
813

914
[features]
1015
# Extractors, layers and login routes for axum.
@@ -37,5 +42,10 @@ trybuild.workspace = true
3742
name = "notes"
3843
required-features = ["axum"]
3944

45+
[package.metadata.docs.rs]
46+
all-features = true
47+
# Labels feature-gated items with the features they need.
48+
rustdoc-args = ["--cfg", "docsrs"]
49+
4050
[lints]
4151
workspace = true

0 commit comments

Comments
 (0)