unic_idna_mapping/lib.rs
1// Copyright 2016 The rust-url developers.
2// Copyright 2017 The UNIC Project Developers.
3//
4// See the COPYRIGHT file at the top-level directory of this distribution.
5//
6// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9// option. This file may not be copied, modified, or distributed
10// except according to those terms.
11
12#![warn(
13 bad_style,
14 missing_debug_implementations,
15 missing_docs,
16 unconditional_recursion
17)]
18#![forbid(unsafe_code)]
19
20//! # UNIC — IDNA — IDNA Mapping Table
21//!
22//! Mapping each Unicode codepoint to an IDNA status.
23//!
24//! * <https://www.unicode.org/reports/tr46/#IDNA_Mapping_Table>
25
26#[macro_use]
27extern crate unic_char_range;
28
29mod mapping;
30
31use unic_ucd_version::UnicodeVersion;
32
33mod pkg_info;
34pub use crate::pkg_info::{PKG_DESCRIPTION, PKG_NAME, PKG_VERSION};
35
36pub use crate::mapping::Mapping;
37
38/// The version of [Unicode IDNA Compatibility Processing](https://www.unicode.org/reports/tr46/)
39pub const UNICODE_VERSION: UnicodeVersion = include!("../tables/unicode_version.rsv");