Skip to content

Conversation

@juan518munoz
Copy link
Contributor

Modify workspace to add CI jobs capable of releasing to crates.io when requested:

  • Two separate jobs, one for spawned-rt and another for spawned-concurrency.
  • Release version will be matched by package.version specified in toml.

override: true

- name: Publish Crate
run: cargo publish --package spawned-concurrency --token ${{ secrets.CRATES_IO_TOKEN }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to set a CRATES_IO_TOKEN

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@klaus993 please set the LambdaClass one here.

version = "0.1.0"
edition = "2021"
description = "Spawned Concurrency"
license = "MIT"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same license as we are using for the project repository.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can refer to the workspace components reliably by using version.workspace = true and the like. It's a good idea to do that for all but name and description.

license = "MIT"

[dependencies]
spawned-rt = { workspace = true }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to change, we need to import from crates.io instead of locally, as it's forbidden to publish with a workspace dependency.

@juan518munoz juan518munoz marked this pull request as ready for review July 15, 2025 17:59
Copy link
Collaborator

@ElFantasma ElFantasma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

rt/Cargo.toml Outdated
version = "0.1.0"
edition = "2021"
description = "Spawned Runtime"
version = { workspace = true }
Copy link
Contributor

@fedacking fedacking Jul 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a matter of taste, but I prefer this format

Suggested change
version = { workspace = true }
version.workspace = true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me too, didn't know it was possible, I've changed it

@juan518munoz juan518munoz merged commit 6322041 into main Jul 15, 2025
3 checks passed
@juan518munoz juan518munoz deleted the crate_release_workflows branch July 18, 2025 19:45
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.

5 participants