Skip to content

Add runfiles crate#3830

Open
dzbarsky wants to merge 1 commit intobazelbuild:mainfrom
dzbarsky:bazel-runfiles
Open

Add runfiles crate#3830
dzbarsky wants to merge 1 commit intobazelbuild:mainfrom
dzbarsky:bazel-runfiles

Conversation

@dzbarsky
Copy link
Contributor

@dzbarsky dzbarsky commented Jan 29, 2026

the runfiles crate on crates.io is 3 years old. This PR allows downstream users to depend on runfiles via a git override in their Cargo.toml, so they can build both with Cargo and bazel

closes #1592

Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

LGTM! Do you want to wire up CI publishing like we have in

- name: Publish to crates.io
run: cargo publish --token ${CRATES_TOKEN}
working-directory: ./crate_universe
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
?

Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

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

LGTM! Do you want to wire up CI publishing like we have in

- name: Publish to crates.io
run: cargo publish --token ${CRATES_TOKEN}
working-directory: ./crate_universe
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

?

I think if this gets added then the change looks good to me!

macro_rules! rlocation {
($r:expr, $path:expr) => {
$r.rlocation_from($path, env!("REPOSITORY_NAME"))
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

What are these changes?

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.

Pubish runfiles package to crates.io

3 participants