unic_ucd_block/lib.rs
1// Copyright 2012-2015 The Rust 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 - Block
22//!
23//! A component of [`unic`: Unicode and Internationalization Crates for Rust](/unic/).
24//!
25//! Accessor for code blocks from Unicode Character Database (UCD)
26
27#[macro_use]
28extern crate unic_char_range;
29
30mod block;
31pub use crate::block::{Block, BlockIter};
32
33mod pkg_info;
34pub use crate::pkg_info::{PKG_DESCRIPTION, PKG_NAME, PKG_VERSION};
35
36use unic_ucd_version::UnicodeVersion;
37
38/// The [Unicode version](https://www.unicode.org/versions/) of data
39pub const UNICODE_VERSION: UnicodeVersion = include!("../tables/unicode_version.rsv");