# 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 are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.69" name = "json-gettext" version = "4.0.10" authors = ["Magic Len "] include = [ "src/**/*", "Cargo.toml", "README.md", "LICENSE", "examples/*", ] description = "A library for getting text from JSON usually for internationalization." homepage = "https://magiclen.org/json-gettext" readme = "README.md" keywords = [ "json", "i18n", "multi-language", "static", "rocket", ] categories = ["internationalization"] license = "MIT" repository = "https://github.com/magiclen/json-gettext" [[example]] name = "hello" required-features = ["rocket"] [[example]] name = "hello_language_region_pair" required-features = [ "rocket", "language_region_pair", "rocket-accept-language", ] [[example]] name = "hello_language" required-features = [ "rocket", "language", "rocket-accept-language", ] [[example]] name = "hello_region" required-features = [ "rocket", "region", "rocket-accept-language", ] [dependencies.manifest-dir-macros] version = "0.1.6" features = ["tuple"] [dependencies.regex] version = "1" [dependencies.rocket] version = "0.5" optional = true [dependencies.rocket-accept-language] version = "0.8" optional = true [dependencies.serde] version = "1" [dependencies.serde_json] version = "1" [dependencies.unic-langid] version = "0.9" features = ["macros"] optional = true [features] langid = ["unic-langid"] language = ["langid"] language_region_pair = ["langid"] region = ["langid"] rocketly = ["rocket"]