forked from unicode-org/conformance
-
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.
Refactor Rust code and add 1.5 (unicode-org#360)
* Refactor Rust code and add 1.5 * Add 1.5 to run_config.json * cargo fmt * Add 1.5 to rust lint job * Change cargo-platform to a version supporting Rust 1.73
- Loading branch information
Showing
16 changed files
with
1,510 additions
and
155 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 |
---|---|---|
@@ -1,26 +1,8 @@ | ||
// Getting the version of ICU4X | ||
|
||
fn main() { | ||
let metadata = cargo_metadata::MetadataCommand::new().exec().unwrap(); | ||
for package in metadata.packages.iter() { | ||
if package.name == "icu" { | ||
println!( | ||
"cargo:rustc-env=CONFORMANCE_ICU4X_VERSION={}", | ||
package.version | ||
); | ||
} | ||
} | ||
|
||
// Get data version information from PackageMetadata | ||
// https://crates.io/crates/rustc_version_runtime | ||
// https://github.com/serde-rs/json | ||
#[path = "../common/print_icu4x_versions_1_3.rs"] | ||
mod print_icu4x_versions_1_3; | ||
|
||
println!( | ||
"cargo:rustc-env=CONFORMANCE_ICU_VERSION={}", | ||
icu_datagen::DatagenProvider::LATEST_TESTED_ICUEXPORT_TAG | ||
); | ||
println!( | ||
"cargo:rustc-env=CONFORMANCE_CLDR_VERSION={}", | ||
icu_datagen::DatagenProvider::LATEST_TESTED_CLDR_TAG | ||
); | ||
fn main() { | ||
print_icu4x_versions_1_3::print(); | ||
} |
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
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
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 |
---|---|---|
@@ -1 +1,8 @@ | ||
include!("../1.3/build.rs"); | ||
// Getting the version of ICU4X | ||
|
||
#[path = "../common/print_icu4x_versions_1_3.rs"] | ||
mod print_icu4x_versions_1_3; | ||
|
||
fn main() { | ||
print_icu4x_versions_1_3::print(); | ||
} |
Oops, something went wrong.