Skip to content

Commit

Permalink
fix: change package name & export APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jan 8, 2024
1 parent 1a5a7ab commit b2a3795
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 17 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "intl-locale"
name = "unicode-locale-parser"
version = "0.1.0"
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# intl-locale
# unicode-locale-parser

This crate for [Unicode Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_locale_identifier) parser.

Expand Down
4 changes: 2 additions & 2 deletions benches/parse_language_id.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use intl_locale::parse_unicode_language_id;
use unicode_locale_parser::parse_language_id;

fn language_identifier_parser_bench(c: &mut Criterion) {
let strings = [
Expand Down Expand Up @@ -31,7 +31,7 @@ fn language_identifier_parser_bench(c: &mut Criterion) {
|b| {
b.iter(|| {
for s in strings {
let _ = parse_unicode_language_id(black_box(s));
let _ = parse_language_id(black_box(s));
}
})
},
Expand Down
4 changes: 2 additions & 2 deletions benches/parse_locale_id.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use intl_locale::parse_unicode_locale_id;
use unicode_locale_parser::parse_locale_id;

fn locale_identifier_parser_bench(c: &mut Criterion) {
let strings = [
Expand Down Expand Up @@ -31,7 +31,7 @@ fn locale_identifier_parser_bench(c: &mut Criterion) {
|b| {
b.iter(|| {
for s in strings {
let _ = parse_unicode_locale_id(black_box(s));
let _ = parse_locale_id(black_box(s));
}
})
},
Expand Down
10 changes: 6 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ pub use crate::extensions::pu::PuExtensions;
pub use crate::extensions::transformed::TransformedExtensions;
pub use crate::extensions::unicode_locale::UnicodeLocaleExtensions;
pub use crate::extensions::Extensions;
pub use crate::lang::{parse_unicode_language_id, UnicodeLanguageIdentifier};
pub use crate::locale::{parse_unicode_locale_id, UnicodeLocaleIdentifier};
pub use crate::measure::{parse_unicode_measure_unit, UnicodeMeasureUnit};
pub use crate::subdivision::{parse_unicode_subdivision_id, UnicodeSubdivisionIdentifier};
pub use crate::lang::{parse_unicode_language_id as parse_language_id, UnicodeLanguageIdentifier};
pub use crate::locale::{parse_unicode_locale_id as parse_locale_id, UnicodeLocaleIdentifier};
pub use crate::measure::{parse_unicode_measure_unit as parse_measure_unit, UnicodeMeasureUnit};
pub use crate::subdivision::{
parse_unicode_subdivision_id as parse_subdivision_id, UnicodeSubdivisionIdentifier,
};

0 comments on commit b2a3795

Please sign in to comment.