1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Detect possible security problems with Unicode usage according to
//! [Unicode Technical Standard #39](http://www.unicode.org/reports/tr39/)
//! rules.
//!
//! ```rust
//! extern crate unicode_security;
//!
//! use unicode_security::GeneralSecurityProfile;
//!
//! fn main() {
//! let ch = 'µ'; // U+00B5 MICRO SIGN
//! let allowed = 'µ'.identifier_allowed();
//! println!("{}", ch);
//! println!("The above char is {} in unicode identifiers.",
//! if allowed { "allowed" } else { "restricted" });
//! }
//! ```
//!
//! # features
//!
//! unicode-security supports a `no_std` feature. This eliminates dependence
//! on std, and instead uses equivalent functions from core.
//!
//! # crates.io
//!
//! You can use this package in your project by adding the following
//! to your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! unicode-security = "0.0.1"
//! ```
extern crate std;
extern crate test;
pub use UNICODE_VERSION;
pub use skeleton;
pub use GeneralSecurityProfile;
pub use is_potential_mixed_script_confusable_char;
pub use MixedScript;
pub use ;
pub