Skip to content

ci: derive the rustler precompiled crate from the calling repository - #2834

Merged
zachdaniel merged 1 commit into
ash-project:mainfrom
shahryarjb:ci/parameterise-rustler-precompiled-build
Aug 4, 2026
Merged

ci: derive the rustler precompiled crate from the calling repository#2834
zachdaniel merged 1 commit into
ash-project:mainfrom
shahryarjb:ci/parameterise-rustler-precompiled-build

Conversation

@shahryarjb

@shahryarjb shahryarjb commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

build-release hardcoded igniter_js as the crate name and directory, so any other rustler_precompiled project calling this workflow built a crate it does not contain on a v* tag; rust-crate-dir did not help, as it is only read by rust-check.

The directory now reuses rust-crate-dir and falls back to native/<repository name>, and the crate name falls back to the repository name — igniter_js resolves to igniter_js and native/igniter_js exactly as before, so nothing changes for existing callers, and rust-project-name remains for a repository whose crate name differs from its own.

For: ash-project/igniter_css#38

The build-release job hardcoded igniter_js as the crate name and directory, so
every other rustler_precompiled project calling this workflow built the wrong
crate on a v* tag. rust-crate-dir did not help, as it was only read by
rust-check.

build-release now reuses rust-crate-dir for the crate directory, falling back to
native/<repository name>, and takes the crate name from the repository name.
igniter_js resolves to igniter_js and native/igniter_js exactly as before, and
any other project works without configuration.

rust-project-name is available for a repository whose crate name differs from
its own.
@zachdaniel

Copy link
Copy Markdown
Contributor

LGTM, its a draft though, still waiting on something?

@shahryarjb

Copy link
Copy Markdown
Contributor Author

Hi dear @zachdaniel , yes i am testing it in local and temporary repo to get 100% confirm

@shahryarjb
shahryarjb marked this pull request as ready for review August 3, 2026 19:12
@shahryarjb

Copy link
Copy Markdown
Contributor Author

@zachdaniel Thank you i think it is okey for now!

@zachdaniel
zachdaniel merged commit 19fbebf into ash-project:main Aug 4, 2026
51 checks passed
@zachdaniel

Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

jechol pushed a commit to jechol/ash that referenced this pull request Aug 15, 2026
…sh-project#2834)

The build-release job hardcoded igniter_js as the crate name and directory, so
every other rustler_precompiled project calling this workflow built the wrong
crate on a v* tag. rust-crate-dir did not help, as it was only read by
rust-check.

build-release now reuses rust-crate-dir for the crate directory, falling back to
native/<repository name>, and takes the crate name from the repository name.
igniter_js resolves to igniter_js and native/igniter_js exactly as before, and
any other project works without configuration.

rust-project-name is available for a repository whose crate name differs from
its own.
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.

2 participants