unic-langid-macros-0.9.0/.cargo_vcs_info.json0000644000000001121365450466600146250ustar00{ "git": { "sha1": "0432f0414e443c3c6cda5da584205e41ac41ff2c" } } unic-langid-macros-0.9.0/Cargo.lock0000644000000040071365450466600126070ustar00# This file is automatically @generated by Cargo. # It is not intended for manual editing. [[package]] name = "proc-macro-hack" version = "0.5.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d659fe7c6d27f25e9d80a1a094c223f5246f6a6596453e09d7229bf42750b63" [[package]] name = "proc-macro2" version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8872cf6f48eee44265156c111456a700ab3483686b3f96df4cf5481c89157319" dependencies = [ "unicode-xid", ] [[package]] name = "quote" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c1f4b0efa5fc5e8ceb705136bfee52cfdb6a4e3509f770b478cd6ed434232a7" dependencies = [ "proc-macro2", ] [[package]] name = "syn" version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "410a7488c0a728c7ceb4ad59b9567eb4053d02e8cc7f5c0e0eeeb39518369213" dependencies = [ "proc-macro2", "quote", "unicode-xid", ] [[package]] name = "tinystr" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4bac79c4b51eda1b090b1edebfb667821bbb51f713855164dc7cec2cb8ac2ba3" [[package]] name = "unic-langid-impl" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a4a8eeaf0494862c1404c95ec2f4c33a2acff5076f64314b465e3ddae1b934d" dependencies = [ "tinystr", ] [[package]] name = "unic-langid-macros" version = "0.9.0" dependencies = [ "proc-macro-hack", "tinystr", "unic-langid-impl", "unic-langid-macros-impl", ] [[package]] name = "unic-langid-macros-impl" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29396ffd97e27574c3e01368b1a64267d3064969e4848e2e130ff668be9daa9f" dependencies = [ "proc-macro-hack", "quote", "syn", "unic-langid-impl", ] [[package]] name = "unicode-xid" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" unic-langid-macros-0.9.0/Cargo.toml0000644000000022071365450466600126320ustar00# 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-langid-macros" version = "0.9.0" authors = ["Manish Goregaokar ", "Zibi Braniecki "] include = ["src/**/*", "benches/*.rs", "Cargo.toml", "README.md"] description = "API for managing Unicode Language Identifiers" readme = "README.md" categories = ["internationalization"] license = "MIT/Apache-2.0" repository = "https://github.com/zbraniecki/unic-locale" [dependencies.proc-macro-hack] version = "0.5" [dependencies.tinystr] version = "0.3.2" [dependencies.unic-langid-impl] version = "0.9" [dependencies.unic-langid-macros-impl] version = "0.9" unic-langid-macros-0.9.0/Cargo.toml.orig010064400017500001731000000012201365450346500163110ustar0000000000000000[package] name = "unic-langid-macros" description = "API for managing Unicode Language Identifiers" version = "0.9.0" authors = ["Manish Goregaokar ", "Zibi Braniecki "] edition = "2018" readme = "README.md" repository = "https://github.com/zbraniecki/unic-locale" license = "MIT/Apache-2.0" categories = ["internationalization"] include = [ "src/**/*", "benches/*.rs", "Cargo.toml", "README.md" ] [dependencies] proc-macro-hack = "0.5" unic-langid-macros-impl = { version = "0.9", path = "../unic-langid-macros-impl" } unic-langid-impl = { version = "0.9", path = "../unic-langid-impl" } tinystr = "0.3.2" unic-langid-macros-0.9.0/README.md010064400017500001731000000001411356261012300146660ustar0000000000000000This is an internal macro declaration crate for `unic-langid`. Please use `unic-langid` instead. unic-langid-macros-0.9.0/src/lib.rs010064400017500001731000000006351365450333000153250ustar0000000000000000use proc_macro_hack::proc_macro_hack; pub use unic_langid_impl::{subtags, LanguageIdentifier}; #[proc_macro_hack] pub use unic_langid_macros_impl::langid; #[proc_macro_hack] pub use unic_langid_macros_impl::lang; #[proc_macro_hack] pub use unic_langid_macros_impl::script; #[proc_macro_hack] pub use unic_langid_macros_impl::region; #[proc_macro_hack] pub use unic_langid_macros_impl::variant_fn as variant;