Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set links attribute #400

Merged
merged 1 commit into from
Mar 18, 2021
Merged

Set links attribute #400

merged 1 commit into from
Mar 18, 2021

Conversation

illicitonion
Copy link
Collaborator

This was added to rules_rust in
bazelbuild/rules_rust#480 and we started parsing
out the metadata in cargo_raze in #281 but didn't start populating it in
generated BUILD files.

This enables us to remove a hack in rules_rust where we try to infer the
correct value for the links attribute if it wasn't set, based on the
name, which in turn will allow us to remove the crate_name attribute
completely.

This was added to rules_rust in
bazelbuild/rules_rust#480 and we started parsing
out the metadata in cargo_raze in google#281 but didn't start populating it in
generated BUILD files.

This enables us to remove a hack in rules_rust where we try to infer the
correct value for the `links` attribute if it wasn't set, based on the
name, which in turn will allow us to remove the `crate_name` attribute
completely.
@acmcarther acmcarther merged commit 2ed7d14 into google:main Mar 18, 2021
wchargin added a commit to tensorflow/tensorboard that referenced this pull request Apr 15, 2021
Summary:
Upgrading past bazelbuild/rules_rust#643 requires upgrading `cargo-raze`
to pull in google/cargo-raze#400. Happily, the upgrade is easy, so let’s
get this out of the way.

The `cargo-raze` upgrade is needed to set `links = "openssl"` on the
build script for `openssl-sys`. All the other changes are cosmetic, just
modifying comments and reordering `load` statements. To verify:

```
git show -a | grep '^[-+]' | grep -v '^\(---\|+++\)' | sort -u
```

wchargin-branch: rules-rust-20210414
wchargin-source: b5810154f767bd1191691f9ac6dd8be032624e10
wchargin added a commit to tensorflow/tensorboard that referenced this pull request Apr 16, 2021
Summary:
Upgrading past bazelbuild/rules_rust#643 requires upgrading `cargo-raze`
to pull in google/cargo-raze#400. Happily, the upgrade is easy, so let’s
get this out of the way.

The `cargo-raze` upgrade is needed to set `links = "openssl"` on the
build script for `openssl-sys`. All the other changes are cosmetic, just
modifying comments and reordering `load` statements. To verify:

```
git show -a third_party/ | grep '^[-+]' | grep -v '^\(---\|+++\)' | sort -u
```

wchargin-branch: rules-rust-20210414
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.

None yet

2 participants