Skip to content

Publish to crates.io through trusted publishing #26

Closed

Description

@lmarkmann

cargo install dataseek should install both dataseek and dsk, and releases should publish without a registry token stored in the repository. Follow "Publishing to crates.io" in docs/reference/release.md.

  • Drop publish = false from Cargo.toml, and publish = false plus git_only = true from .github/release-plz.toml
  • Package metadata: readme, keywords, categories = ["command-line-utilities", "science"]
  • exclude tests, fixtures (764 KB), benches and docs from the package; check with cargo package --list
  • No public library API: src/lib.rs exposes only main(). Document the internals feature as unstable and for benches only, since crates.io users can turn it on
  • build.rs without a .git directory: the version already falls back to unknown, but rerun-if-changed=.git/HEAD on a missing path reruns the build script on every build
  • The first release is published by hand; crates.io allows a trusted publisher only for a crate that already exists
  • A crates.io trusted publisher for owner lmarkmann, repository dataseek, workflow release-plz.yml and environment crates-io. The release job gets id-token: write and that environment. No registry token is stored in repository secrets

Activity

  1. added
    enhancement
    on Oct 6, 2026
  2. lmarkmann commented on Oct 7, 2026

    @lmarkmann
    OwnerAuthor

    Done in #41: dataseek 0.8.0 is on crates.io, and the release job publishes through trusted publishing with no stored token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions