Skip to content

Commit

Permalink
Prepare cairo-lang-macro for publishing
Browse files Browse the repository at this point in the history
commit-id:874f8bab
  • Loading branch information
maciektr committed Jul 31, 2024
1 parent 65e072f commit 8648eaf
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,22 @@ Releasing `scarb-ui` crate is also a semi-automated process.
5. Push it.
6. Run `cargo publish -p scarb-ui`.

## `cairo-lang-macro` release procedure

Releasing `cairo-lang-macro` crate is also a semi-automated process.

1. Make sure correct version is present in:
1. `plugins/cairo-lang-macro/Cargo.toml`
2. `Cargo.lock`
You will probably have to commit changes and then tag newly created commit.
2. Make sure all changes to crates `cairo-lang-macro-attributes`, `cairo-lang-macro-stable`, `scarb-stable-hasher` are
released to crates.io as well.
3. Make sure you create it on a green commit (CI is passing), this is not verified!
4. Run `cargo publish -p cairo-lang-macro --dry-run` to verify that everything is fine.
5. Create a tag on `main` named `cairo-lang-macro/vX.Y.Z`.
6. Push it.
7. Run `cargo publish -p cairo-lang-macro`.

[@software-mansion/scarb-maintainers]: https://github.com/orgs/software-mansion/teams/scarb-maintainers

[@maciektr]: https://github.com/maciektr
Expand Down
9 changes: 9 additions & 0 deletions plugins/cairo-lang-macro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

All notable changes to this project will be documented in this file.

## Unreleased

## 0.1.0 (2024-07-31)

- Initial release.
4 changes: 2 additions & 2 deletions plugins/cairo-lang-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ readme = "README.md"
repository.workspace = true

[dependencies]
cairo-lang-macro-attributes = { path = "../cairo-lang-macro-attributes" }
cairo-lang-macro-stable = { path = "../cairo-lang-macro-stable" }
cairo-lang-macro-attributes = "0.1"
cairo-lang-macro-stable = "1"
linkme.workspace = true

[dev-dependencies]
Expand Down
7 changes: 5 additions & 2 deletions plugins/cairo-lang-macro/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# cairo-lang-macro
# Cairo Lang Macro

Shared interface for Scarb procedural macros.
This crate exposes an API for writing Scarb procedural macros for Cairo language.
To learn more about Scarb procedural macros, please see the [Scarb documentation].

[Scarb documentation]: https://docs.swmansion.com/scarb/

0 comments on commit 8648eaf

Please sign in to comment.