# 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" name = "rust-persian-tools" version = "1.1.4" include = [ "src/**/*.rs", "Cargo.toml", "LICENSE", "README.md", "Contributing.md", "logo.png", ] description = "Official Rust implementation of Persian Tools" homepage = "https://crates.io/crates/rust-persian-tools" readme = "README.md" keywords = [ "iran", "persian", "farsi", "tools", "text-processing", ] categories = [ "localization", "text-processing", "internationalization", "development-tools", "rust-patterns", ] license = "MIT" repository = "https://github.com/persian-tools/rust-persian-tools" [package.metadata.docs.rs] all-features = true [dependencies.chrono] version = "0.4.38" optional = true [dependencies.num] version = "0.4" optional = true [dependencies.num-derive] version = "0.4" optional = true [dependencies.num-traits] version = "0.2" optional = true [dependencies.serde] version = "1.0.199" features = ["derive"] optional = true [dependencies.thiserror] version = "1.0.59" optional = true [dependencies.urlencoding] version = "2.1.3" optional = true [dev-dependencies.serde_json] version = "1.0.116" [features] add-ordinal-suffix = [] arabic-chars = [] bill = [ "dep:num", "dep:num-derive", "dep:num-traits", "dep:thiserror", ] commas = [] default = ["full"] digits = [] extract-card-number = [] find-capital-by-province = ["persian-chars"] full = [ "add-ordinal-suffix", "commas", "digits", "find-capital-by-province", "persian-chars", "arabic-chars", "national-id", "remove-ordinal-suffix", "url-fix", "verity-card-number", "number-plate", "phone-number", "bill", "number-to-words", "get-bank-name-by-card-number", "extract-card-number", "time-diff", "get-place-by-iran-national-id", "half-space", "legal-id", "words-to-number", "sheba", ] get-bank-name-by-card-number = ["dep:thiserror"] get-place-by-iran-national-id = ["dep:thiserror"] half-space = [] legal-id = ["dep:thiserror"] national-id = ["dep:thiserror"] number-plate = [] number-to-words = [ "dep:thiserror", "commas", ] persian-chars = [] phone-number = ["dep:thiserror"] remove-ordinal-suffix = [] serde = ["dep:serde"] sheba = ["dep:thiserror"] time-diff = [ "dep:thiserror", "dep:chrono", "digits", ] url-fix = ["dep:urlencoding"] verity-card-number = ["dep:thiserror"] words-to-number = [ "dep:thiserror", "commas", "digits", "remove-ordinal-suffix", ]