forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#137834 - lolbinarycat:rustc_fluent_macro-13…
…7815, r=BoxyUwU rustc_fluent_macro: use CARGO_CRATE_NAME instead of CARGO_PKG_NAME fixes rust-lang#137815
- Loading branch information
Showing
5 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[package] | ||
name = "some-name" | ||
version = "0.0.0" | ||
edition = "2024" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
some_name_whatever_message = hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use run_make_support::external_deps::cargo::cargo; | ||
|
||
// test to make sure that `rustc_fluent_macro` correctly handles | ||
// packages that have hyphens in their package name. | ||
|
||
fn main() { | ||
cargo().arg("build").arg("--manifest-path=./Cargo.toml").run(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#![feature(rustc_private)] | ||
|
||
extern crate rustc_driver; | ||
extern crate rustc_errors; | ||
extern crate rustc_fluent_macro; | ||
|
||
rustc_fluent_macro::fluent_messages!("../messages.ftl"); |