rlibphonenumber/lib.rs
1// Copyright (C) 2009 The Libphonenumber Authors
2// Copyright (C) 2025 Kashin Vladislav (Rust adaptation author)
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16/// This module is automatically generated from /resources/*.proto
17mod generated;
18mod interfaces;
19mod phonenumberutil;
20mod regex_based_matcher;
21pub(crate) mod regex_util;
22pub(crate) mod string_util;
23
24pub use generated::proto::phonemetadata;
25pub use generated::proto::phonenumber::PhoneNumber;
26pub use generated::proto::phonenumber::phone_number::CountryCodeSource;
27
28#[cfg(feature = "global_static")]
29mod phone_ext;
30#[cfg(feature = "global_static")]
31pub use crate::phonenumberutil::PHONE_NUMBER_UTIL;
32
33#[cfg(feature = "serde")]
34pub mod serde;
35
36pub use phonenumberutil::{enums::*, errors::*, phonenumberutil_public::PhoneNumberUtil};
37mod tests;