Commit 88219a3
cargo_env = ["CARGO_CRATE_NAME"]
Summary:
I need this for buckifying the next version of rustc after [rust-lang/rust#137834](rust-lang/rust#137834) *"rustc_fluent_macro: use CARGO_CRATE_NAME instead of CARGO_PKG_NAME"*
For a Cargo package like this:
```
[package]
name = "foo-bar"
[lib]
name = "baz-quux"
```
the CARGO_PKG_NAME is "foo-bar" (with hyphen) and the CARGO_CRATE_NAME is "baz_quux" (with underscore).
https://www.internalfb.com/code/fbsource/[b006779c8e495cf1b16de10324d20a1e61259cb9]/fbcode/common/rust/tools/reindeer/src/fixups.rs?lines=875-877%2C922
Reviewed By: diliop
Differential Revision: D73134016
fbshipit-source-id: 494b48d16ab0c3d18132c0a2d190962393453b381 parent a3a50e8 commit 88219a3
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
875 | 878 | | |
876 | 879 | | |
877 | 880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
0 commit comments