unic_ucd_bidi/lib.rs
1// Copyright 2015 The Servo Project 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#![no_std]
13#![warn(
14 bad_style,
15 missing_debug_implementations,
16 missing_docs,
17 unconditional_recursion
18)]
19#![forbid(unsafe_code)]
20
21//! # UNIC — UCD — Bidi
22//!
23//! A component of [`unic`: Unicode and Internationalization Crates for Rust](/unic/).
24//!
25//! Accessor for Bidirection character properties from Unicode Character Database (UCD)
26
27#[macro_use]
28extern crate unic_char_property;
29
30#[macro_use]
31extern crate unic_char_range;
32
33mod pkg_info;
34pub use crate::pkg_info::{PKG_DESCRIPTION, PKG_NAME, PKG_VERSION};
35
36pub mod bidi_class;
37pub use crate::bidi_class::{BidiClass, BidiClassCategory, CharBidiClass, StrBidiClass};
38
39pub mod bidi_control;
40pub use crate::bidi_control::{is_bidi_control, BidiControl};
41
42pub mod bidi_mirrored;
43pub use crate::bidi_mirrored::{is_bidi_mirrored, BidiMirrored};
44
45use unic_ucd_version::UnicodeVersion;
46
47/// The [Unicode version](https://www.unicode.org/versions/) of data
48pub const UNICODE_VERSION: UnicodeVersion = include!("../tables/unicode_version.rsv");