unic-ucd-version-0.9.0/Cargo.toml.orig010064400007650000024000000015541343664667500160510ustar0000000000000000[package] name = "unic-ucd-version" version = "0.9.0" edition = "2018" authors = ["The UNIC Project Developers"] repository = "https://github.com/open-i18n/rust-unic/" license = "MIT/Apache-2.0" description = "UNIC — Unicode Character Database — Version" keywords = ["text", "unicode", "version"] categories = ["internationalization", "text-processing", "parsing", "rendering"] # No tests/benches that depends on /data/ exclude = [] [dependencies] unic-common = { path = "../../common/", version = "0.9.0" } [badges] maintenance = { status = "actively-developed" } is-it-maintained-issue-resolution = { repository = "open-i18n/rust-unic" } is-it-maintained-open-issues = { repository = "open-i18n/rust-unic" } appveyor = { repository = "open-i18n/rust-unic", branch = "master", service = "github" } travis-ci = { repository = "open-i18n/rust-unic", branch = "master" } unic-ucd-version-0.9.0/Cargo.toml0000644000000024640000000000000122770ustar00# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g. crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "unic-ucd-version" version = "0.9.0" authors = ["The UNIC Project Developers"] exclude = [] description = "UNIC — Unicode Character Database — Version" keywords = ["text", "unicode", "version"] categories = ["internationalization", "text-processing", "parsing", "rendering"] license = "MIT/Apache-2.0" repository = "https://github.com/open-i18n/rust-unic/" [dependencies.unic-common] version = "0.9.0" [badges.appveyor] branch = "master" repository = "open-i18n/rust-unic" service = "github" [badges.is-it-maintained-issue-resolution] repository = "open-i18n/rust-unic" [badges.is-it-maintained-open-issues] repository = "open-i18n/rust-unic" [badges.maintenance] status = "actively-developed" [badges.travis-ci] branch = "master" repository = "open-i18n/rust-unic" unic-ucd-version-0.9.0/src/lib.rs010064400007650000024000000017061343520353600150440ustar0000000000000000// Copyright 2017 The UNIC Project Developers. // // See the COPYRIGHT file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. #![no_std] #![warn( bad_style, missing_debug_implementations, missing_docs, unconditional_recursion )] #![forbid(unsafe_code)] //! # UNIC — UCD — Core //! //! A component of [`unic`: Unicode and Internationalization Crates for Rust](/unic/). //! //! Core create indicating the version of Unicode Character Database. pub use unic_common::version::UnicodeVersion; mod pkg_info; pub use crate::pkg_info::{PKG_DESCRIPTION, PKG_NAME, PKG_VERSION}; mod unicode_version; pub use crate::unicode_version::UNICODE_VERSION; unic-ucd-version-0.9.0/src/pkg_info.rs010064400007650000024000000013121343520353600160630ustar0000000000000000// Copyright 2017 The UNIC Project Developers. // // See the COPYRIGHT file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. //! Package information /// UNIC component version. pub const PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); /// UNIC component name. pub const PKG_NAME: &str = env!("CARGO_PKG_NAME"); /// UNIC component description. pub const PKG_DESCRIPTION: &str = env!("CARGO_PKG_DESCRIPTION"); unic-ucd-version-0.9.0/src/unicode_version.rs010064400007650000024000000020511343520353600174630ustar0000000000000000// Copyright 2017 The UNIC Project Developers. // // See the COPYRIGHT file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. use unic_common::version::UnicodeVersion; /// The [Version of The Unicode Standard](https://www.unicode.org/versions/) of the Unicode /// Character Database in use. pub const UNICODE_VERSION: UnicodeVersion = include!("../tables/unicode_version.rsv"); #[cfg(test)] mod tests { use super::UNICODE_VERSION; #[test] fn validate_version_values() { assert!(UNICODE_VERSION.major > 0); // Current release schedule of Unicode is to have one Major version update each year, with // no Minor updates. We hard-code this internal policy while it stands. assert!(UNICODE_VERSION.minor == 0); } } unic-ucd-version-0.9.0/tables/unicode_version.rsv010064400007650000024000000002071343520353600203350ustar0000000000000000// WARNING: Auto-generated by the `unic-gen` crate. // WARNING: DO NOT EDIT MANUALLY! UnicodeVersion { major: 10, minor: 0, micro: 0 } unic-ucd-version-0.9.0/tests/basic_tests.rs010064400007650000024000000013201343520353600171440ustar0000000000000000// Copyright 2017 The UNIC Project Developers. // // See the COPYRIGHT file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. use unic_ucd_version::UnicodeVersion; #[test] fn test_display() { assert_eq!( format!( "Unicode {}", UnicodeVersion { major: 1, minor: 2, micro: 0, } ), "Unicode 1.2.0" ); } unic-ucd-version-0.9.0/.cargo_vcs_info.json0000644000000001120000000000000142650ustar00{ "git": { "sha1": "5878605364af97a3358368a6eaef02104af2e016" } }