File tree 7 files changed +74
-21
lines changed
7 files changed +74
-21
lines changed Original file line number Diff line number Diff line change 1
- # UNIC — Unicode Characters
1
+ # UNIC — Unicode Character Tools
2
2
3
3
[ ![ Crates.io] ( https://img.shields.io/crates/v/unic-char.svg )] ( https://crates.io/crates/unic-char )
4
4
[ ![ Documentation] ( https://docs.rs/unic-char/badge.svg )] ( https://docs.rs/unic-char/ )
Original file line number Diff line number Diff line change 11
11
#![ no_std]
12
12
#![ forbid( unsafe_code, unconditional_recursion, missing_docs) ]
13
13
14
- //! # UNIC - Unicode Characters - Character Property
14
+ //! # UNIC — Unicode Character Tools - Character Property
15
15
//!
16
16
//! A component of [`unic`: Unicode and Internationalization Crates for Rust](/unic/).
17
17
//!
28
28
#[ macro_use]
29
29
extern crate unic_char_range;
30
30
31
- /// UNIC component version.
32
- pub const PKG_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
33
-
34
- /// UNIC component name.
35
- pub const PKG_NAME : & str = env ! ( "CARGO_PKG_NAME" ) ;
36
-
37
- /// UNIC component description.
38
- pub const PKG_DESCRIPTION : & str = env ! ( "CARGO_PKG_DESCRIPTION" ) ;
39
-
40
31
// pub because is used in macros, called from macro call-site.
41
32
pub mod tables;
42
33
43
34
mod macros;
35
+ mod pkg_info;
44
36
mod property;
45
37
mod range_types;
46
38
@@ -56,3 +48,5 @@ pub use self::range_types::{
56
48
// Used in macros
57
49
#[ doc( hidden) ]
58
50
pub use core:: { fmt as __fmt, str as __str} ;
51
+
52
+ pub use pkg_info:: { PKG_DESCRIPTION , PKG_NAME , PKG_VERSION } ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The UNIC Project Developers.
2
+ //
3
+ // See the COPYRIGHT file at the top-level directory of this distribution.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ //! Package information
12
+
13
+ /// UNIC component version.
14
+ pub const PKG_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
15
+
16
+ /// UNIC component name.
17
+ pub const PKG_NAME : & str = env ! ( "CARGO_PKG_NAME" ) ;
18
+
19
+ /// UNIC component description.
20
+ pub const PKG_DESCRIPTION : & str = env ! ( "CARGO_PKG_DESCRIPTION" ) ;
Original file line number Diff line number Diff line change 15
15
#![ forbid( bad_style, missing_debug_implementations, unconditional_recursion) ]
16
16
#![ deny( missing_docs, unsafe_code, unused, future_incompatible) ]
17
17
18
- //! # Unic - Char - Range
18
+ //! # UNIC — Unicode Character Tools - Character Range
19
19
//!
20
20
//! A simple way to control iteration over a range of characters.
21
21
//!
52
52
#[ cfg( feature = "std" ) ]
53
53
extern crate core;
54
54
55
+ mod iter;
55
56
mod macros;
57
+ mod pkg_info;
56
58
mod range;
57
- mod iter;
58
59
mod step;
59
60
60
61
#[ cfg( feature = "fused" ) ]
@@ -65,3 +66,5 @@ mod iter_trusted_len;
65
66
66
67
pub use range:: CharRange ;
67
68
pub use iter:: CharIter ;
69
+
70
+ pub use pkg_info:: { PKG_DESCRIPTION , PKG_NAME , PKG_VERSION } ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The UNIC Project Developers.
2
+ //
3
+ // See the COPYRIGHT file at the top-level directory of this distribution.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ //! Package information
12
+
13
+ /// UNIC component version.
14
+ pub const PKG_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
15
+
16
+ /// UNIC component name.
17
+ pub const PKG_NAME : & str = env ! ( "CARGO_PKG_NAME" ) ;
18
+
19
+ /// UNIC component description.
20
+ pub const PKG_DESCRIPTION : & str = env ! ( "CARGO_PKG_DESCRIPTION" ) ;
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- //! # UNIC — Utilities
11
+ //! # UNIC — Unicode Character Tools
12
12
//!
13
13
//! A component of [`unic`: Unicode and Internationalization Crates for Rust](/unic/).
14
14
15
15
#![ forbid( missing_docs) ]
16
16
#![ deny( unsafe_code) ]
17
17
18
18
pub extern crate unic_char_property as property;
19
+ pub extern crate unic_char_range as range;
19
20
20
- /// UNIC component version.
21
- pub const PKG_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
21
+ mod pkg_info;
22
22
23
- /// UNIC component name.
24
- pub const PKG_NAME : & str = env ! ( "CARGO_PKG_NAME" ) ;
25
-
26
- /// UNIC component description.
27
- pub const PKG_DESCRIPTION : & str = env ! ( "CARGO_PKG_DESCRIPTION" ) ;
23
+ pub use pkg_info:: { PKG_DESCRIPTION , PKG_NAME , PKG_VERSION } ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The UNIC Project Developers.
2
+ //
3
+ // See the COPYRIGHT file at the top-level directory of this distribution.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ //! Package information
12
+
13
+ /// UNIC component version.
14
+ pub const PKG_VERSION : & str = env ! ( "CARGO_PKG_VERSION" ) ;
15
+
16
+ /// UNIC component name.
17
+ pub const PKG_NAME : & str = env ! ( "CARGO_PKG_NAME" ) ;
18
+
19
+ /// UNIC component description.
20
+ pub const PKG_DESCRIPTION : & str = env ! ( "CARGO_PKG_DESCRIPTION" ) ;
You can’t perform that action at this time.
0 commit comments