pest_derive-2.7.4/Cargo.lock0000644000002067540000000000100113500ustar # This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "adler" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "ahash" version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if", "getrandom", "once_cell", "version_check", ] [[package]] name = "aho-corasick" version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea5d730647d4fadd988536d06fecce94b7b4f2a7efdae548f1cf4b63205518ab" dependencies = [ "memchr", ] [[package]] name = "anstream" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1f58811cfac344940f1a400b6e6231ce35171f614f26439e80f8c1465c5cc0c" dependencies = [ "anstyle", "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", "utf8parse", ] [[package]] name = "anstyle" version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b84bf0a05bbb2a83e5eb6fa36bb6e87baa08193c35ff52bbf6b38d8af2890e46" [[package]] name = "anstyle-parse" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" dependencies = [ "windows-sys 0.48.0", ] [[package]] name = "anstyle-wincon" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58f54d10c6dfa51283a066ceab3ec1ab78d13fae00aa49243a45e4571fb79dfd" dependencies = [ "anstyle", "windows-sys 0.48.0", ] [[package]] name = "anyhow" version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" [[package]] name = "arc-swap" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bddcadddf5e9015d310179a59bb28c4d4b9920ad0f11e8e14dbadf654890c9a6" [[package]] name = "arrayvec" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] name = "autocfg" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "base16ct" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base64" version = "0.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" [[package]] name = "base64ct" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bitflags" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" [[package]] name = "bitmaps" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2" dependencies = [ "typenum", ] [[package]] name = "block-buffer" version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ "generic-array", ] [[package]] name = "bstr" version = "1.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c2f7349907b712260e64b0afe2f84692af14a454be26187d9df565c7f69266a" dependencies = [ "memchr", "regex-automata", "serde", ] [[package]] name = "btoi" version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9dd6407f73a9b8b6162d8a2ef999fe6afd7cc15902ebf42c5cd296addf17e0ad" dependencies = [ "num-traits", ] [[package]] name = "bumpalo" version = "3.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" [[package]] name = "bytes" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" [[package]] name = "bytesize" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3e368af43e418a04d52505cf3dbc23dda4e3407ae2fa99fd0e4f308ce546acc" [[package]] name = "cargo" version = "0.72.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "171aca76a3199e771ea0b94ec260984ed9cba62af8e478142974dbaa594d583b" dependencies = [ "anyhow", "base64", "bytesize", "cargo-platform", "cargo-util", "clap", "crates-io", "curl", "curl-sys", "env_logger", "filetime", "flate2", "fwdansi", "git2", "git2-curl", "gix", "gix-features", "glob", "hex", "hmac", "home", "http-auth", "humantime", "ignore", "im-rc", "indexmap 1.9.3", "is-terminal", "itertools", "jobserver", "lazy_static", "lazycell", "libc", "libgit2-sys", "log", "memchr", "opener", "os_info", "pasetors", "pathdiff", "rand", "rustfix", "semver", "serde", "serde-value", "serde_ignored", "serde_json", "sha1", "shell-escape", "strip-ansi-escapes", "tar", "tempfile", "termcolor", "time", "toml", "toml_edit", "unicode-width", "unicode-xid", "url", "walkdir", "windows-sys 0.48.0", ] [[package]] name = "cargo-platform" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2cfa25e60aea747ec7e1124f238816749faa93759c6ff5b31f1ccdda137f4479" dependencies = [ "serde", ] [[package]] name = "cargo-util" version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd54c8b94a0c851d687924460637361c355afafa72d973fe8644499fbdee8fae" dependencies = [ "anyhow", "core-foundation", "filetime", "hex", "jobserver", "libc", "log", "miow", "same-file", "sha2", "shell-escape", "tempfile", "walkdir", "windows-sys 0.48.0", ] [[package]] name = "cc" version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" dependencies = [ "jobserver", "libc", ] [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "clap" version = "4.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "824956d0dca8334758a5b7f7e50518d66ea319330cbceedcf76905c2f6ab30e3" dependencies = [ "clap_builder", ] [[package]] name = "clap_builder" version = "4.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "122ec64120a49b4563ccaedcbea7818d069ed8e9aa6d829b82d8a4128936b2ab" dependencies = [ "anstream", "anstyle", "clap_lex", "strsim", "terminal_size", ] [[package]] name = "clap_lex" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd7cc57abe963c6d3b9d8be5b06ba7c8957a930305ca90304f24ef040aa6f961" [[package]] name = "clru" version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8191fa7302e03607ff0e237d4246cc043ff5b3cb9409d995172ba3bea16b807" [[package]] name = "colorchoice" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" [[package]] name = "const-oid" version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" [[package]] name = "core-foundation" version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" dependencies = [ "core-foundation-sys", "libc", ] [[package]] name = "core-foundation-sys" version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "cpufeatures" version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1" dependencies = [ "libc", ] [[package]] name = "crates-io" version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "876aa69b4afca5f2eb5e23daa3445930faf829bcb67075a20ffa884f11f8c57c" dependencies = [ "anyhow", "curl", "percent-encoding", "serde", "serde_json", "url", ] [[package]] name = "crc32fast" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" dependencies = [ "cfg-if", ] [[package]] name = "crossbeam-channel" version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" dependencies = [ "cfg-if", "crossbeam-utils", ] [[package]] name = "crossbeam-utils" version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" dependencies = [ "cfg-if", ] [[package]] name = "crypto-bigint" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "740fe28e594155f10cfc383984cbefd529d7396050557148f79cb0f621204124" dependencies = [ "generic-array", "rand_core", "subtle", "zeroize", ] [[package]] name = "crypto-common" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array", "typenum", ] [[package]] name = "ct-codecs" version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3b7eb4404b8195a9abb6356f4ac07d8ba267045c8d6d220ac4dc992e6cc75df" [[package]] name = "curl" version = "0.4.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "509bd11746c7ac09ebd19f0b17782eae80aadee26237658a6b4808afb5c11a22" dependencies = [ "curl-sys", "libc", "openssl-probe", "openssl-sys", "schannel", "socket2", "winapi", ] [[package]] name = "curl-sys" version = "0.4.66+curl-8.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70c44a72e830f0e40ad90dda8a6ab6ed6314d39776599a58a2e5e37fbc6db5b9" dependencies = [ "cc", "libc", "libnghttp2-sys", "libz-sys", "openssl-sys", "pkg-config", "vcpkg", "windows-sys 0.48.0", ] [[package]] name = "der" version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" dependencies = [ "const-oid", "pem-rfc7468", "zeroize", ] [[package]] name = "deranged" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2696e8a945f658fd14dc3b87242e6b80cd0f36ff04ea560fa39082368847946" [[package]] name = "digest" version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "const-oid", "crypto-common", "subtle", ] [[package]] name = "dunce" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" [[package]] name = "ecdsa" version = "0.16.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4b1e0c257a9e9f25f90ff76d7a68360ed497ee519c8e428d1825ef0000799d4" dependencies = [ "der", "digest", "elliptic-curve", "rfc6979", "signature", "spki", ] [[package]] name = "ed25519-compact" version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a3d382e8464107391c8706b4c14b087808ecb909f6c15c34114bc42e53a9e4c" dependencies = [ "getrandom", ] [[package]] name = "either" version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "elliptic-curve" version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "968405c8fdc9b3bf4df0a6638858cc0b52462836ab6b1c87377785dd09cf1c0b" dependencies = [ "base16ct", "crypto-bigint", "digest", "ff", "generic-array", "group", "hkdf", "pem-rfc7468", "pkcs8", "rand_core", "sec1", "subtle", "zeroize", ] [[package]] name = "env_logger" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" dependencies = [ "humantime", "is-terminal", "log", "regex", "termcolor", ] [[package]] name = "equivalent" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "136526188508e25c6fef639d7927dfb3e0e3084488bf202267829cf7fc23dbdd" dependencies = [ "errno-dragonfly", "libc", "windows-sys 0.48.0", ] [[package]] name = "errno-dragonfly" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" dependencies = [ "cc", "libc", ] [[package]] name = "faster-hex" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "239f7bfb930f820ab16a9cd95afc26f88264cf6905c960b340a615384aa3338a" dependencies = [ "serde", ] [[package]] name = "fastrand" version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "ff" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ "rand_core", "subtle", ] [[package]] name = "fiat-crypto" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0870c84016d4b481be5c9f323c24f65e31e901ae618f0e80f4308fb00de1d2d" [[package]] name = "filetime" version = "0.2.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0" dependencies = [ "cfg-if", "libc", "redox_syscall", "windows-sys 0.48.0", ] [[package]] name = "flate2" version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6c98ee8095e9d1dcbf2fcc6d95acccb90d1c81db1e44725c6a984b1dbdfb010" dependencies = [ "crc32fast", "libz-sys", "miniz_oxide", ] [[package]] name = "fnv" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "form_urlencoded" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" dependencies = [ "percent-encoding", ] [[package]] name = "fwdansi" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08c1f5787fe85505d1f7777268db5103d80a7a374d2316a7ce262e57baf8f208" dependencies = [ "memchr", "termcolor", ] [[package]] name = "generic-array" version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", "zeroize", ] [[package]] name = "getrandom" version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if", "js-sys", "libc", "wasi", "wasm-bindgen", ] [[package]] name = "git2" version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b989d6a7ca95a362cf2cfc5ad688b3a467be1f87e480b8dad07fee8c79b0044" dependencies = [ "bitflags 1.3.2", "libc", "libgit2-sys", "log", "openssl-probe", "openssl-sys", "url", ] [[package]] name = "git2-curl" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8f8b7432b72928cff76f69e59ed5327f94a52763731e71274960dee72fe5f8c" dependencies = [ "curl", "git2", "log", "url", ] [[package]] name = "gix" version = "0.44.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6bf41b61f7df395284f7a579c0fa1a7e012c5aede655174d4e91299ef1cac643" dependencies = [ "gix-actor", "gix-attributes", "gix-config", "gix-credentials", "gix-date", "gix-diff", "gix-discover", "gix-features", "gix-fs", "gix-glob", "gix-hash", "gix-hashtable", "gix-ignore", "gix-index", "gix-lock", "gix-mailmap", "gix-object", "gix-odb", "gix-pack", "gix-path", "gix-prompt", "gix-protocol", "gix-ref", "gix-refspec", "gix-revision", "gix-sec", "gix-tempfile", "gix-transport", "gix-traverse", "gix-url", "gix-utils", "gix-validate", "gix-worktree", "log", "once_cell", "prodash", "signal-hook", "smallvec", "thiserror", "unicode-normalization", ] [[package]] name = "gix-actor" version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "848efa0f1210cea8638f95691c82a46f98a74b9e3524f01d4955ebc25a8f84f3" dependencies = [ "bstr", "btoi", "gix-date", "itoa", "nom", "thiserror", ] [[package]] name = "gix-attributes" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3015baa01ad2122fbcaab7863c857a603eb7b7ec12ac8141207c42c6439805e2" dependencies = [ "bstr", "gix-glob", "gix-path", "gix-quote", "kstring", "log", "smallvec", "thiserror", "unicode-bom", ] [[package]] name = "gix-bitmap" version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ccab4bc576844ddb51b78d81b4a42d73e6229660fa614dfc3d3999c874d1959" dependencies = [ "thiserror", ] [[package]] name = "gix-chunk" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b42ea64420f7994000130328f3c7a2038f639120518870436d31b8bde704493" dependencies = [ "thiserror", ] [[package]] name = "gix-command" version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f28f654184b5f725c5737c7e4f466cbd8f0102ac352d5257eeab19647ee4256" dependencies = [ "bstr", ] [[package]] name = "gix-config" version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d252a0eddb6df74600d3d8872dc9fe98835a7da43110411d705b682f49d4ac1" dependencies = [ "bstr", "gix-config-value", "gix-features", "gix-glob", "gix-path", "gix-ref", "gix-sec", "log", "memchr", "nom", "once_cell", "smallvec", "thiserror", "unicode-bom", ] [[package]] name = "gix-config-value" version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e874f41437441c02991dcea76990b9058fadfc54b02ab4dd06ab2218af43897" dependencies = [ "bitflags 2.4.0", "bstr", "gix-path", "libc", "thiserror", ] [[package]] name = "gix-credentials" version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4874a4fc11ffa844a3c2b87a66957bda30a73b577ef1acf15ac34df5745de5ff" dependencies = [ "bstr", "gix-command", "gix-config-value", "gix-path", "gix-prompt", "gix-sec", "gix-url", "thiserror", ] [[package]] name = "gix-date" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc164145670e9130a60a21670d9b6f0f4f8de04e5dd256c51fa5a0340c625902" dependencies = [ "bstr", "itoa", "thiserror", "time", ] [[package]] name = "gix-diff" version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "644a0f2768bc42d7a69289ada80c9e15c589caefc6a315d2307202df83ed1186" dependencies = [ "gix-hash", "gix-object", "imara-diff", "thiserror", ] [[package]] name = "gix-discover" version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a6b61363e63e7cdaa3e6f96acb0257ebdb3d8883e21eba5930c99f07f0a5fc0" dependencies = [ "bstr", "dunce", "gix-hash", "gix-path", "gix-ref", "gix-sec", "thiserror", ] [[package]] name = "gix-features" version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf69b0f5c701cc3ae22d3204b671907668f6437ca88862d355eaf9bc47a4f897" dependencies = [ "bytes", "crc32fast", "crossbeam-channel", "flate2", "gix-hash", "libc", "once_cell", "parking_lot", "prodash", "sha1_smol", "thiserror", "walkdir", ] [[package]] name = "gix-fs" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b37a1832f691fdc09910bd267f9a2e413737c1f9ec68c6e31f9e802616278a9" dependencies = [ "gix-features", ] [[package]] name = "gix-glob" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c07c98204529ac3f24b34754540a852593d2a4c7349008df389240266627a72a" dependencies = [ "bitflags 2.4.0", "bstr", "gix-features", "gix-path", ] [[package]] name = "gix-hash" version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b422ff2ad9a0628baaad6da468cf05385bf3f5ab495ad5a33cce99b9f41092f" dependencies = [ "hex", "thiserror", ] [[package]] name = "gix-hashtable" version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "385f4ce6ecf3692d313ca3aa9bd3b3d8490de53368d6d94bedff3af8b6d9c58d" dependencies = [ "gix-hash", "hashbrown 0.14.0", "parking_lot", ] [[package]] name = "gix-ignore" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba205b6df563e2906768bb22834c82eb46c5fdfcd86ba2c347270bc8309a05b2" dependencies = [ "bstr", "gix-glob", "gix-path", "unicode-bom", ] [[package]] name = "gix-index" version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f39c1ccc8f1912cbbd5191efc28dbc5f0d0598042aa56bc09427b7c34efab3ba" dependencies = [ "bitflags 2.4.0", "bstr", "btoi", "filetime", "gix-bitmap", "gix-features", "gix-hash", "gix-lock", "gix-object", "gix-traverse", "itoa", "memmap2", "smallvec", "thiserror", ] [[package]] name = "gix-lock" version = "5.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c693d7f05730fa74a7c467150adc7cea393518410c65f0672f80226b8111555" dependencies = [ "gix-tempfile", "gix-utils", "thiserror", ] [[package]] name = "gix-mailmap" version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8856cec3bdc3610c06970d28b6cb20a0c6621621cf9a8ec48cbd23f2630f362" dependencies = [ "bstr", "gix-actor", "thiserror", ] [[package]] name = "gix-object" version = "0.29.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d96bd620fd08accdd37f70b2183cfa0b001b4f1c6ade8b7f6e15cb3d9e261ce" dependencies = [ "bstr", "btoi", "gix-actor", "gix-features", "gix-hash", "gix-validate", "hex", "itoa", "nom", "smallvec", "thiserror", ] [[package]] name = "gix-odb" version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bca2f324aa67672b6d0f2c0fa93f96eb6a7029d260e4c1df5dce3c015f5e5add" dependencies = [ "arc-swap", "gix-features", "gix-hash", "gix-object", "gix-pack", "gix-path", "gix-quote", "parking_lot", "tempfile", "thiserror", ] [[package]] name = "gix-pack" version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "164a515900a83257ae4aa80e741655bee7a2e39113fb535d7a5ac623b445ff20" dependencies = [ "clru", "gix-chunk", "gix-diff", "gix-features", "gix-hash", "gix-hashtable", "gix-object", "gix-path", "gix-tempfile", "gix-traverse", "memmap2", "parking_lot", "smallvec", "thiserror", ] [[package]] name = "gix-packetline" version = "0.16.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6df0b75361353e7c0a6d72d49617a37379a7a22cba4569ae33a7720a4c8755a" dependencies = [ "bstr", "faster-hex", "thiserror", ] [[package]] name = "gix-path" version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "18609c8cbec8508ea97c64938c33cd305b75dfc04a78d0c3b78b8b3fd618a77c" dependencies = [ "bstr", "gix-trace", "home", "once_cell", "thiserror", ] [[package]] name = "gix-prompt" version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c22decaf4a063ccae2b2108820c8630c01bd6756656df3fe464b32b8958a5ea" dependencies = [ "gix-command", "gix-config-value", "parking_lot", "rustix", "thiserror", ] [[package]] name = "gix-protocol" version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877e49417f1730f4dbc2f7d9a2ab0f8b2f49ef08f97270691403ecde3d961e3a" dependencies = [ "bstr", "btoi", "gix-credentials", "gix-features", "gix-hash", "gix-transport", "maybe-async", "nom", "thiserror", ] [[package]] name = "gix-quote" version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "475c86a97dd0127ba4465fbb239abac9ea10e68301470c9791a6dd5351cdc905" dependencies = [ "bstr", "btoi", "thiserror", ] [[package]] name = "gix-ref" version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e03989e9d49954368e1b526578230fc7189d1634acdfbe79e9ba1de717e15d5" dependencies = [ "gix-actor", "gix-features", "gix-fs", "gix-hash", "gix-lock", "gix-object", "gix-path", "gix-tempfile", "gix-validate", "memmap2", "nom", "thiserror", ] [[package]] name = "gix-refspec" version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a6ea733820df67e4cd7797deb12727905824d8f5b7c59d943c456d314475892" dependencies = [ "bstr", "gix-hash", "gix-revision", "gix-validate", "smallvec", "thiserror", ] [[package]] name = "gix-revision" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "810f35e9afeccca999d5d348b239f9c162353127d2e13ff3240e31b919e35476" dependencies = [ "bstr", "gix-date", "gix-hash", "gix-hashtable", "gix-object", "thiserror", ] [[package]] name = "gix-sec" version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9615cbd6b456898aeb942cd75e5810c382fbfc48dbbff2fa23ebd2d33dcbe9c7" dependencies = [ "bitflags 2.4.0", "gix-path", "libc", "windows", ] [[package]] name = "gix-tempfile" version = "5.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d71a0d32f34e71e86586124225caefd78dabc605d0486de580d717653addf182" dependencies = [ "gix-fs", "libc", "once_cell", "parking_lot", "signal-hook", "signal-hook-registry", "tempfile", ] [[package]] name = "gix-trace" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96b6d623a1152c3facb79067d6e2ecdae48130030cf27d6eb21109f13bd7b836" [[package]] name = "gix-transport" version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f01c2bf7b989c679695ef635fc7d9e80072e08101be4b53193c8e8b649900102" dependencies = [ "base64", "bstr", "curl", "gix-command", "gix-credentials", "gix-features", "gix-packetline", "gix-quote", "gix-sec", "gix-url", "thiserror", ] [[package]] name = "gix-traverse" version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a5be1e807f288c33bb005075111886cceb43ed8a167b3182a0f62c186e2a0dd1" dependencies = [ "gix-hash", "gix-hashtable", "gix-object", "thiserror", ] [[package]] name = "gix-url" version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfc77f89054297cc81491e31f1bab4027e554b5ef742a44bd7035db9a0f78b76" dependencies = [ "bstr", "gix-features", "gix-path", "home", "thiserror", "url", ] [[package]] name = "gix-utils" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b85d89dc728613e26e0ed952a19583744e7f5240fcd4aa30d6c824ffd8b52f0f" dependencies = [ "fastrand", ] [[package]] name = "gix-validate" version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba9b3737b2cef3dcd014633485f0034b0f1a931ee54aeb7d8f87f177f3c89040" dependencies = [ "bstr", "thiserror", ] [[package]] name = "gix-worktree" version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a69eaff0ae973a9d37c40f02ae5ae50fa726c8fc2fd3ab79d0a19eb61975aafa" dependencies = [ "bstr", "filetime", "gix-attributes", "gix-features", "gix-fs", "gix-glob", "gix-hash", "gix-ignore", "gix-index", "gix-object", "gix-path", "io-close", "thiserror", ] [[package]] name = "glob" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d" dependencies = [ "aho-corasick", "bstr", "fnv", "log", "regex", ] [[package]] name = "group" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", "rand_core", "subtle", ] [[package]] name = "hashbrown" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" [[package]] name = "hashbrown" version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" [[package]] name = "hermit-abi" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" [[package]] name = "hex" version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hkdf" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "791a029f6b9fc27657f6f188ec6e5e43f6911f6f878e0dc5501396e09809d437" dependencies = [ "hmac", ] [[package]] name = "hmac" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ "digest", ] [[package]] name = "home" version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5444c27eef6923071f7ebcc33e3444508466a76f7a2b93da00ed6e19f30c1ddb" dependencies = [ "windows-sys 0.48.0", ] [[package]] name = "http-auth" version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5430cacd7a1f9a02fbeb350dfc81a0e5ed42d81f3398cb0ba184017f85bdcfbc" dependencies = [ "memchr", ] [[package]] name = "humantime" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "idna" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" dependencies = [ "unicode-bidi", "unicode-normalization", ] [[package]] name = "ignore" version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbe7873dab538a9a44ad79ede1faf5f30d49f9a5c883ddbab48bce81b64b7492" dependencies = [ "globset", "lazy_static", "log", "memchr", "regex", "same-file", "thread_local", "walkdir", "winapi-util", ] [[package]] name = "im-rc" version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af1955a75fa080c677d3972822ec4bad316169ab1cfc6c257a942c2265dbe5fe" dependencies = [ "bitmaps", "rand_core", "rand_xoshiro", "sized-chunks", "typenum", "version_check", ] [[package]] name = "imara-diff" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e98c1d0ad70fc91b8b9654b1f33db55e59579d3b3de2bffdced0fdb810570cb8" dependencies = [ "ahash", "hashbrown 0.12.3", ] [[package]] name = "indexmap" version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown 0.12.3", ] [[package]] name = "indexmap" version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d" dependencies = [ "equivalent", "hashbrown 0.14.0", ] [[package]] name = "io-close" version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9cadcf447f06744f8ce713d2d6239bb5bde2c357a452397a9ed90c625da390bc" dependencies = [ "libc", "winapi", ] [[package]] name = "is-terminal" version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ "hermit-abi", "rustix", "windows-sys 0.48.0", ] [[package]] name = "itertools" version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" dependencies = [ "either", ] [[package]] name = "itoa" version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "jobserver" version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2" dependencies = [ "libc", ] [[package]] name = "js-sys" version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" dependencies = [ "wasm-bindgen", ] [[package]] name = "kstring" version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec3066350882a1cd6d950d055997f379ac37fd39f81cd4d8ed186032eb3c5747" dependencies = [ "static_assertions", ] [[package]] name = "lazy_static" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "lazycell" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" version = "0.2.148" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" [[package]] name = "libgit2-sys" version = "0.15.2+1.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a80df2e11fb4a61f4ba2ab42dbe7f74468da143f1a75c74e11dee7c813f694fa" dependencies = [ "cc", "libc", "libssh2-sys", "libz-sys", "openssl-sys", "pkg-config", ] [[package]] name = "libnghttp2-sys" version = "0.1.8+1.55.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fae956c192dadcdb5dace96db71fa0b827333cce7c7b38dc71446f024d8a340" dependencies = [ "cc", "libc", ] [[package]] name = "libssh2-sys" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dc8a030b787e2119a731f1951d6a773e2280c660f8ec4b0f5e1505a386e71ee" dependencies = [ "cc", "libc", "libz-sys", "openssl-sys", "pkg-config", "vcpkg", ] [[package]] name = "libz-sys" version = "1.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d97137b25e321a73eef1418d1d5d2eda4d77e12813f8e6dead84bc52c5870a7b" dependencies = [ "cc", "libc", "pkg-config", "vcpkg", ] [[package]] name = "linux-raw-sys" version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a9bad9f94746442c783ca431b22403b519cd7fbeed0533fdd6328b2f2212128" [[package]] name = "lock_api" version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16" dependencies = [ "autocfg", "scopeguard", ] [[package]] name = "log" version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "maybe-async" version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0f1b8c13cb1f814b634a96b2c725449fe7ed464a7b8781de8688be5ffbd3f305" dependencies = [ "proc-macro2", "quote", "syn 1.0.109", ] [[package]] name = "memchr" version = "2.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f232d6ef707e1956a43342693d2a31e72989554d58299d7a88738cc95b0d35c" [[package]] name = "memmap2" version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" dependencies = [ "libc", ] [[package]] name = "minimal-lexical" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" dependencies = [ "adler", ] [[package]] name = "miow" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52ffbca2f655e33c08be35d87278e5b18b89550a37dbd598c20db92f6a471123" dependencies = [ "windows-sys 0.42.0", ] [[package]] name = "nom" version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ "memchr", "minimal-lexical", ] [[package]] name = "num-traits" version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" dependencies = [ "autocfg", ] [[package]] name = "num_threads" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44" dependencies = [ "libc", ] [[package]] name = "once_cell" version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "opener" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "293c15678e37254c15bd2f092314abb4e51d7fdde05c2021279c12631b54f005" dependencies = [ "bstr", "winapi", ] [[package]] name = "openssl-probe" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" version = "0.9.93" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db4d56a4c0478783083cfafcc42493dd4a981d41669da64b4572a2a089b51b1d" dependencies = [ "cc", "libc", "pkg-config", "vcpkg", ] [[package]] name = "ordered-float" version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7940cf2ca942593318d07fcf2596cdca60a85c9e7fab408a5e21a4f9dcd40d87" dependencies = [ "num-traits", ] [[package]] name = "orion" version = "0.17.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7abdb10181903c8c4b016ba45d6d6d5af1a1e2a461aa4763a83b87f5df4695e5" dependencies = [ "fiat-crypto", "subtle", "zeroize", ] [[package]] name = "os_info" version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "006e42d5b888366f1880eda20371fedde764ed2213dc8496f49622fa0c99cd5e" dependencies = [ "log", "serde", "winapi", ] [[package]] name = "p384" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70786f51bcc69f6a4c0360e063a4cac5419ef7c5cd5b3c99ad70f3be5ba79209" dependencies = [ "ecdsa", "elliptic-curve", "primeorder", "sha2", ] [[package]] name = "parking_lot" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", "parking_lot_core", ] [[package]] name = "parking_lot_core" version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", "windows-targets", ] [[package]] name = "pasetors" version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba765699a309908d55950919a3445e9491453e89b2587b1b2abe4143a48894c0" dependencies = [ "ct-codecs", "ed25519-compact", "getrandom", "orion", "p384", "rand_core", "regex", "serde", "serde_json", "sha2", "subtle", "time", "zeroize", ] [[package]] name = "pathdiff" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" [[package]] name = "pem-rfc7468" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" dependencies = [ "base64ct", ] [[package]] name = "percent-encoding" version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pest" version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c022f1e7b65d6a24c0dbbd5fb344c66881bc01f3e5ae74a1c8100f2f985d98a4" dependencies = [ "memchr", "thiserror", "ucd-trie", ] [[package]] name = "pest_derive" version = "2.7.4" dependencies = [ "pest", "pest_generator", ] [[package]] name = "pest_generator" version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc9fc1b9e7057baba189b5c626e2d6f40681ae5b6eb064dc7c7834101ec8123a" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", "syn 2.0.37", ] [[package]] name = "pest_meta" version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1df74e9e7ec4053ceb980e7c0c8bd3594e977fde1af91daba9c928e8e8c6708d" dependencies = [ "cargo", "once_cell", "pest", "sha2", ] [[package]] name = "pkcs8" version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ "der", "spki", ] [[package]] name = "pkg-config" version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" [[package]] name = "ppv-lite86" version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "primeorder" version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c2fcef82c0ec6eefcc179b978446c399b3cdf73c392c35604e399eee6df1ee3" dependencies = [ "elliptic-curve", ] [[package]] name = "proc-macro2" version = "1.0.67" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328" dependencies = [ "unicode-ident", ] [[package]] name = "prodash" version = "23.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9516b775656bc3e8985e19cd4b8c0c0de045095074e453d2c0a513b5f978392d" dependencies = [ "parking_lot", ] [[package]] name = "quote" version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] [[package]] name = "rand" version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", "rand_chacha", "rand_core", ] [[package]] name = "rand_chacha" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", "rand_core", ] [[package]] name = "rand_core" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ "getrandom", ] [[package]] name = "rand_xoshiro" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" dependencies = [ "rand_core", ] [[package]] name = "redox_syscall" version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" dependencies = [ "bitflags 1.3.2", ] [[package]] name = "regex" version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "697061221ea1b4a94a624f67d0ae2bfe4e22b8a17b6a192afb11046542cc8c47" dependencies = [ "aho-corasick", "memchr", "regex-automata", "regex-syntax", ] [[package]] name = "regex-automata" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2f401f4955220693b56f8ec66ee9c78abffd8d1c4f23dc41a23839eb88f0795" dependencies = [ "aho-corasick", "memchr", "regex-syntax", ] [[package]] name = "regex-syntax" version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da" [[package]] name = "rfc6979" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ "hmac", "subtle", ] [[package]] name = "rustfix" version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ecd2853d9e26988467753bd9912c3a126f642d05d229a4b53f5752ee36c56481" dependencies = [ "anyhow", "log", "serde", "serde_json", ] [[package]] name = "rustix" version = "0.38.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "747c788e9ce8e92b12cd485c49ddf90723550b654b32508f979b71a7b1ecda4f" dependencies = [ "bitflags 2.4.0", "errno", "libc", "linux-raw-sys", "windows-sys 0.48.0", ] [[package]] name = "ryu" version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "same-file" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" dependencies = [ "winapi-util", ] [[package]] name = "schannel" version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" dependencies = [ "windows-sys 0.48.0", ] [[package]] name = "scopeguard" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "sec1" version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct", "der", "generic-array", "pkcs8", "subtle", "zeroize", ] [[package]] name = "semver" version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ad977052201c6de01a8ef2aa3378c4bd23217a056337d1d6da40468d267a4fb0" dependencies = [ "serde", ] [[package]] name = "serde" version = "1.0.188" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf9e0fcba69a370eed61bcf2b728575f726b50b55cba78064753d708ddc7549e" dependencies = [ "serde_derive", ] [[package]] name = "serde-value" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c" dependencies = [ "ordered-float", "serde", ] [[package]] name = "serde_derive" version = "1.0.188" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4eca7ac642d82aa35b60049a6eccb4be6be75e599bd2e9adb5f875a737654af2" dependencies = [ "proc-macro2", "quote", "syn 2.0.37", ] [[package]] name = "serde_ignored" version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "80c31d5c53fd39f208e770f5a20a0bb214dee2a8d0d8adba18e19ad95a482ca5" dependencies = [ "serde", ] [[package]] name = "serde_json" version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" dependencies = [ "itoa", "ryu", "serde", ] [[package]] name = "serde_spanned" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96426c9936fd7a0124915f9185ea1d20aa9445cc9821142f0a73bc9207a2e186" dependencies = [ "serde", ] [[package]] name = "sha1" version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ "cfg-if", "cpufeatures", "digest", ] [[package]] name = "sha1_smol" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012" [[package]] name = "sha2" version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" dependencies = [ "cfg-if", "cpufeatures", "digest", ] [[package]] name = "shell-escape" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "45bb67a18fa91266cc7807181f62f9178a6873bfad7dc788c42e6430db40184f" [[package]] name = "signal-hook" version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801" dependencies = [ "libc", "signal-hook-registry", ] [[package]] name = "signal-hook-registry" version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" dependencies = [ "libc", ] [[package]] name = "signature" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" dependencies = [ "digest", "rand_core", ] [[package]] name = "sized-chunks" version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e" dependencies = [ "bitmaps", "typenum", ] [[package]] name = "smallvec" version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a" [[package]] name = "socket2" version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" dependencies = [ "libc", "winapi", ] [[package]] name = "spki" version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a" dependencies = [ "base64ct", "der", ] [[package]] name = "static_assertions" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "strip-ansi-escapes" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "011cbb39cf7c1f62871aea3cc46e5817b0937b49e9447370c93cacbe93a766d8" dependencies = [ "vte", ] [[package]] name = "strsim" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "subtle" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "syn" version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "syn" version = "2.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7303ef2c05cd654186cb250d29049a24840ca25d2747c25c0381c8d9e2f582e8" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "tar" version = "0.4.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b16afcea1f22891c49a00c751c7b63b2233284064f11a200fc624137c51e2ddb" dependencies = [ "filetime", "libc", ] [[package]] name = "tempfile" version = "3.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" dependencies = [ "cfg-if", "fastrand", "redox_syscall", "rustix", "windows-sys 0.48.0", ] [[package]] name = "termcolor" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6093bad37da69aab9d123a8091e4be0aa4a03e4d601ec641c327398315f62b64" dependencies = [ "winapi-util", ] [[package]] name = "terminal_size" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" dependencies = [ "rustix", "windows-sys 0.48.0", ] [[package]] name = "thiserror" version = "1.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d6d7a740b8a666a7e828dd00da9c0dc290dff53154ea77ac109281de90589b7" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" version = "1.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49922ecae66cc8a249b77e68d1d0623c1b2c514f0060c27cdc68bd62a1219d35" dependencies = [ "proc-macro2", "quote", "syn 2.0.37", ] [[package]] name = "thread_local" version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" dependencies = [ "cfg-if", "once_cell", ] [[package]] name = "time" version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "426f806f4089c493dcac0d24c29c01e2c38baf8e30f1b716ee37e83d200b18fe" dependencies = [ "deranged", "itoa", "libc", "num_threads", "serde", "time-core", "time-macros", ] [[package]] name = "time-core" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20" dependencies = [ "time-core", ] [[package]] name = "tinyvec" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" dependencies = [ "tinyvec_macros", ] [[package]] name = "tinyvec_macros" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "toml" version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257" dependencies = [ "serde", "serde_spanned", "toml_datetime", "toml_edit", ] [[package]] name = "toml_datetime" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" dependencies = [ "serde", ] [[package]] name = "toml_edit" version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ "indexmap 2.0.0", "serde", "serde_spanned", "toml_datetime", "winnow", ] [[package]] name = "typenum" version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "ucd-trie" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" [[package]] name = "unicode-bidi" version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" [[package]] name = "unicode-bom" version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98e90c70c9f0d4d1ee6d0a7d04aa06cb9bbd53d8cfbdd62a0269a7c2eb640552" [[package]] name = "unicode-ident" version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" dependencies = [ "tinyvec", ] [[package]] name = "unicode-width" version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" [[package]] name = "unicode-xid" version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] name = "url" version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5" dependencies = [ "form_urlencoded", "idna", "percent-encoding", ] [[package]] name = "utf8parse" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "vcpkg" version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "version_check" version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "vte" version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6cbce692ab4ca2f1f3047fcf732430249c0e971bfdd2b234cf2c47ad93af5983" dependencies = [ "arrayvec", "utf8parse", "vte_generate_state_changes", ] [[package]] name = "vte_generate_state_changes" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d257817081c7dffcdbab24b9e62d2def62e2ff7d00b1c20062551e6cccc145ff" dependencies = [ "proc-macro2", "quote", ] [[package]] name = "walkdir" version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee" dependencies = [ "same-file", "winapi-util", ] [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" dependencies = [ "cfg-if", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", "syn 2.0.37", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-macro" version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" dependencies = [ "quote", "wasm-bindgen-macro-support", ] [[package]] name = "wasm-bindgen-macro-support" version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", "syn 2.0.37", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] name = "winapi" version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" dependencies = [ "winapi-i686-pc-windows-gnu", "winapi-x86_64-pc-windows-gnu", ] [[package]] name = "winapi-i686-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" dependencies = [ "winapi", ] [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows" version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" dependencies = [ "windows-targets", ] [[package]] name = "windows-sys" version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ "windows_aarch64_gnullvm 0.42.2", "windows_aarch64_msvc 0.42.2", "windows_i686_gnu 0.42.2", "windows_i686_msvc 0.42.2", "windows_x86_64_gnu 0.42.2", "windows_x86_64_gnullvm 0.42.2", "windows_x86_64_msvc 0.42.2", ] [[package]] name = "windows-sys" version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ "windows-targets", ] [[package]] name = "windows-targets" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ "windows_aarch64_gnullvm 0.48.5", "windows_aarch64_msvc 0.48.5", "windows_i686_gnu 0.48.5", "windows_i686_msvc 0.48.5", "windows_x86_64_gnu 0.48.5", "windows_x86_64_gnullvm 0.48.5", "windows_x86_64_msvc 0.48.5", ] [[package]] name = "windows_aarch64_gnullvm" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_msvc" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_i686_gnu" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_msvc" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_x86_64_gnu" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_msvc" version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "winnow" version = "0.5.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c2e3184b9c4e92ad5167ca73039d0c42476302ab603e2fec4487511f38ccefc" dependencies = [ "memchr", ] [[package]] name = "zeroize" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" pest_derive-2.7.4/Cargo.toml0000644000000024150000000000100113570ustar # 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.61" name = "pest_derive" version = "2.7.4" authors = ["Dragoș Tiselice "] description = "pest's derive macro" homepage = "https://pest.rs/" documentation = "https://docs.rs/pest" readme = "_README.md" keywords = [ "pest", "parser", "peg", "grammar", ] categories = ["parsing"] license = "MIT OR Apache-2.0" repository = "https://github.com/pest-parser/pest" [lib] name = "pest_derive" proc-macro = true [dependencies.pest] version = "2.7.4" default-features = false [dependencies.pest_generator] version = "2.7.4" default-features = false [features] default = ["std"] grammar-extras = ["pest_generator/grammar-extras"] not-bootstrap-in-src = ["pest_generator/not-bootstrap-in-src"] std = [ "pest/std", "pest_generator/std", ] pest_derive-2.7.4/Cargo.toml.orig000064400000000000000000000015551046102023000150440ustar 00000000000000[package] name = "pest_derive" description = "pest's derive macro" version = "2.7.4" edition = "2021" authors = ["Dragoș Tiselice "] homepage = "https://pest.rs/" repository = "https://github.com/pest-parser/pest" documentation = "https://docs.rs/pest" keywords = ["pest", "parser", "peg", "grammar"] categories = ["parsing"] license = "MIT OR Apache-2.0" readme = "_README.md" rust-version = "1.61" [lib] name = "pest_derive" proc-macro = true [features] default = ["std"] std = ["pest/std", "pest_generator/std"] not-bootstrap-in-src = ["pest_generator/not-bootstrap-in-src"] grammar-extras = ["pest_generator/grammar-extras"] [dependencies] # for tests, included transitively anyway pest = { path = "../pest", version = "2.7.4", default-features = false } pest_generator = { path = "../generator", version = "2.7.4", default-features = false } pest_derive-2.7.4/LICENSE-APACHE000064400000000000000000000251371046102023000141030ustar 00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. pest_derive-2.7.4/LICENSE-MIT000064400000000000000000000017771046102023000136170ustar 00000000000000Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. pest_derive-2.7.4/_README.md000064400000000000000000000175721046102023000136010ustar 00000000000000

# pest. The Elegant Parser [![Join the chat at https://gitter.im/pest-parser/pest](https://badges.gitter.im/dragostis/pest.svg)](https://gitter.im/pest-parser/pest?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Book](https://img.shields.io/badge/book-WIP-4d76ae.svg)](https://pest.rs/book) [![Docs](https://docs.rs/pest/badge.svg)](https://docs.rs/pest) [![pest Continuous Integration](https://github.com/pest-parser/pest/actions/workflows/ci.yml/badge.svg)](https://github.com/pest-parser/pest/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/pest-parser/pest/branch/master/graph/badge.svg)](https://codecov.io/gh/pest-parser/pest) Rustc Version 1.61.0+ [![Crates.io](https://img.shields.io/crates/d/pest.svg)](https://crates.io/crates/pest) [![Crates.io](https://img.shields.io/crates/v/pest.svg)](https://crates.io/crates/pest) pest is a general purpose parser written in Rust with a focus on accessibility, correctness, and performance. It uses parsing expression grammars (or [PEG]) as input, which are similar in spirit to regular expressions, but which offer the enhanced expressivity needed to parse complex languages. [PEG]: https://en.wikipedia.org/wiki/Parsing_expression_grammar ## Getting started The recommended way to start parsing with pest is to read the official [book]. Other helpful resources: * API reference on [docs.rs] * play with grammars and share them on our [fiddle] * find previous common questions answered or ask questions on [GitHub Discussions] * leave feedback, ask questions, or greet us on [Gitter] or [Discord] [book]: https://pest.rs/book [docs.rs]: https://docs.rs/pest [fiddle]: https://pest.rs/#editor [Gitter]: https://gitter.im/pest-parser/pest [Discord]: https://discord.gg/XEGACtWpT2 [GitHub Discussions]: https://github.com/pest-parser/pest/discussions ## Example The following is an example of a grammar for a list of alphanumeric identifiers where all identifiers don't start with a digit: ```rust alpha = { 'a'..'z' | 'A'..'Z' } digit = { '0'..'9' } ident = { !digit ~ (alpha | digit)+ } ident_list = _{ ident ~ (" " ~ ident)* } // ^ // ident_list rule is silent which means it produces no tokens ``` Grammars are saved in separate .pest files which are never mixed with procedural code. This results in an always up-to-date formalization of a language that is easy to read and maintain. ## Meaningful error reporting Based on the grammar definition, the parser also includes automatic error reporting. For the example above, the input `"123"` will result in: ``` thread 'main' panicked at ' --> 1:1 | 1 | 123 | ^--- | = unexpected digit', src/main.rs:12 ``` while `"ab *"` will result in: ``` thread 'main' panicked at ' --> 1:1 | 1 | ab * | ^--- | = expected ident', src/main.rs:12 ``` These error messages can be obtained from their default `Display` implementation, e.g. `panic!("{}", parser_result.unwrap_err())` or `println!("{}", e)`. ## Pairs API The grammar can be used to derive a `Parser` implementation automatically. Parsing returns an iterator of nested token pairs: ```rust extern crate pest; #[macro_use] extern crate pest_derive; use pest::Parser; #[derive(Parser)] #[grammar = "ident.pest"] struct IdentParser; fn main() {    let pairs = IdentParser::parse(Rule::ident_list, "a1 b2").unwrap_or_else(|e| panic!("{}", e)); // Because ident_list is silent, the iterator will contain idents for pair in pairs { // A pair is a combination of the rule which matched and a span of input println!("Rule: {:?}", pair.as_rule()); println!("Span: {:?}", pair.as_span()); println!("Text: {}", pair.as_str()); // A pair can be converted to an iterator of the tokens which make it up: for inner_pair in pair.into_inner() { match inner_pair.as_rule() { Rule::alpha => println!("Letter: {}", inner_pair.as_str()), Rule::digit => println!("Digit: {}", inner_pair.as_str()), _ => unreachable!() }; } } } ``` This produces the following output: ``` Rule: ident Span: Span { start: 0, end: 2 } Text: a1 Letter: a Digit: 1 Rule: ident Span: Span { start: 3, end: 5 } Text: b2 Letter: b Digit: 2 ``` ### Defining multiple parsers in a single file The current automatic `Parser` derivation will produce the `Rule` enum which would have name conflicts if one tried to define multiple such structs that automatically derive `Parser`. One possible way around it is to put each parser struct in a separate namespace: ```rust mod a { #[derive(Parser)] #[grammar = "a.pest"] pub struct ParserA; } mod b { #[derive(Parser)] #[grammar = "b.pest"] pub struct ParserB; } ``` ## Other features * Precedence climbing * Input handling * Custom errors * Runs on stable Rust ## Projects using pest You can find more projects and ecosystem tools in the [awesome-pest](https://github.com/pest-parser/awesome-pest) repo. * [pest_meta](https://github.com/pest-parser/pest/blob/master/meta/src/grammar.pest) (bootstrapped) * [AshPaper](https://github.com/shnewto/ashpaper) * [brain](https://github.com/brain-lang/brain) * [cicada](https://github.com/mitnk/cicada) * [comrak](https://github.com/kivikakk/comrak) * [elastic-rs](https://github.com/cch123/elastic-rs) * [graphql-parser](https://github.com/Keats/graphql-parser) * [handlebars-rust](https://github.com/sunng87/handlebars-rust) * [hexdino](https://github.com/Luz/hexdino) * [Huia](https://gitlab.com/jimsy/huia/) * [insta](https://github.com/mitsuhiko/insta) * [jql](https://github.com/yamafaktory/jql) * [json5-rs](https://github.com/callum-oakley/json5-rs) * [mt940](https://github.com/svenstaro/mt940-rs) * [Myoxine](https://github.com/d3bate/myoxine) * [py_literal](https://github.com/jturner314/py_literal) * [rouler](https://github.com/jarcane/rouler) * [RuSh](https://github.com/lwandrebeck/RuSh) * [rs_pbrt](https://github.com/wahn/rs_pbrt) * [stache](https://github.com/dgraham/stache) * [tera](https://github.com/Keats/tera) * [ui_gen](https://github.com/emoon/ui_gen) * [ukhasnet-parser](https://github.com/adamgreig/ukhasnet-parser) * [ZoKrates](https://github.com/ZoKrates/ZoKrates) * [Vector](https://github.com/timberio/vector) * [AutoCorrect](https://github.com/huacnlee/autocorrect) * [yaml-peg](https://github.com/aofdev/yaml-peg) * [qubit](https://github.com/abhimanyu003/qubit) * [caith](https://github.com/Geobert/caith) (a dice roller crate) * [Melody](https://github.com/yoav-lavi/melody) * [json5-nodes](https://github.com/jlyonsmith/json5-nodes) * [prisma](https://github.com/prisma/prisma) ## Minimum Supported Rust Version (MSRV) This library should always compile with default features on **Rust 1.61.0**. ## no_std support The `pest` and `pest_derive` crates can be built without the Rust standard library and target embedded environments. To do so, you need to disable their default features. In your `Cargo.toml`, you can specify it as follows: ```toml [dependencies] # ... pest = { version = "2", default-features = false } pest_derive = { version = "2", default-features = false } ``` If you want to build these crates in the pest repository's workspace, you can pass the `--no-default-features` flag to `cargo` and specify these crates using the `--package` (`-p`) flag. For example: ```bash $ cargo build --target thumbv7em-none-eabihf --no-default-features -p pest $ cargo bootstrap $ cargo build --target thumbv7em-none-eabihf --no-default-features -p pest_derive ``` ## Special thanks A special round of applause goes to prof. Marius Minea for his guidance and all pest contributors, some of which being none other than my friends. pest_derive-2.7.4/examples/base.pest000064400000000000000000000001611046102023000155720ustar 00000000000000WHITESPACE = _{ " " | "\t" | NEWLINE } int = @{ (ASCII_NONZERO_DIGIT ~ ASCII_DIGIT+ | ASCII_DIGIT) }pest_derive-2.7.4/examples/calc.pest000064400000000000000000000010611046102023000155620ustar 00000000000000 program = { SOI ~ expr ~ EOI } expr = { prefix* ~ primary ~ postfix* ~ (infix ~ prefix* ~ primary ~ postfix* )* } infix = _{ add | sub | mul | div | pow } add = { "+" } // Addition sub = { "-" } // Subtraction mul = { "*" } // Multiplication div = { "/" } // Division pow = { "^" } // Exponentiation prefix = _{ neg } neg = { "-" } // Negation postfix = _{ fac } fac = { "!" } // Factorial primary = _{ int | "(" ~ expr ~ ")" }pest_derive-2.7.4/examples/calc.rs000064400000000000000000000066571046102023000152530ustar 00000000000000mod parser { use pest_derive::Parser; #[derive(Parser)] #[grammar = "../examples/base.pest"] #[grammar = "../examples/calc.pest"] pub struct Parser; } use parser::Rule; use pest::{ iterators::Pairs, pratt_parser::{Assoc::*, Op, PrattParser}, Parser, }; use std::io::{stdin, stdout, Write}; fn parse_to_str(pairs: Pairs, pratt: &PrattParser) -> String { pratt .map_primary(|primary| match primary.as_rule() { Rule::int => primary.as_str().to_owned(), Rule::expr => parse_to_str(primary.into_inner(), pratt), _ => unreachable!(), }) .map_prefix(|op, rhs| match op.as_rule() { Rule::neg => format!("(-{})", rhs), _ => unreachable!(), }) .map_postfix(|lhs, op| match op.as_rule() { Rule::fac => format!("({}!)", lhs), _ => unreachable!(), }) .map_infix(|lhs, op, rhs| match op.as_rule() { Rule::add => format!("({}+{})", lhs, rhs), Rule::sub => format!("({}-{})", lhs, rhs), Rule::mul => format!("({}*{})", lhs, rhs), Rule::div => format!("({}/{})", lhs, rhs), Rule::pow => format!("({}^{})", lhs, rhs), _ => unreachable!(), }) .parse(pairs) } fn parse_to_i32(pairs: Pairs, pratt: &PrattParser) -> i128 { pratt .map_primary(|primary| match primary.as_rule() { Rule::int => primary.as_str().parse().unwrap(), Rule::expr => parse_to_i32(primary.into_inner(), pratt), _ => unreachable!(), }) .map_prefix(|op, rhs| match op.as_rule() { Rule::neg => -rhs, _ => unreachable!(), }) .map_postfix(|lhs, op| match op.as_rule() { Rule::fac => (1..lhs + 1).product(), _ => unreachable!(), }) .map_infix(|lhs, op, rhs| match op.as_rule() { Rule::add => lhs + rhs, Rule::sub => lhs - rhs, Rule::mul => lhs * rhs, Rule::div => lhs / rhs, Rule::pow => (1..rhs + 1).map(|_| lhs).product(), _ => unreachable!(), }) .parse(pairs) } fn main() { let pratt = PrattParser::new() .op(Op::infix(Rule::add, Left) | Op::infix(Rule::sub, Left)) .op(Op::infix(Rule::mul, Left) | Op::infix(Rule::div, Left)) .op(Op::infix(Rule::pow, Right)) .op(Op::prefix(Rule::neg)) .op(Op::postfix(Rule::fac)); let stdin = stdin(); let mut stdout = stdout(); loop { let source = { print!("> "); let _ = stdout.flush(); let mut input = String::new(); let _ = stdin.read_line(&mut input); input.trim().to_string() }; let pairs = match parser::Parser::parse(Rule::program, &source) { Ok(mut parse_tree) => { parse_tree .next() .unwrap() .into_inner() // inner of program .next() .unwrap() .into_inner() // inner of expr } Err(err) => { println!("Failed parsing input: {:}", err); continue; } }; print!("{} => ", source); print!("{} => ", parse_to_str(pairs.clone(), &pratt)); println!("{}", parse_to_i32(pairs.clone(), &pratt)); } } pest_derive-2.7.4/examples/help-menu.pest000064400000000000000000000015651046102023000165630ustar 00000000000000WHITESPACE = _{ " " } Rew = ! { ( ASCII_DIGIT | ASCII_ALPHA_UPPER | "_" | "-" ) + } Lit = ! { ( ASCII_ALPHANUMERIC | "_" | "-" ) + } Word = _ { Rew | Lit } WordGroup = _ { Word ~ ( " " ~ Word ) * } // Argument groups are nonatomic; // "" ArgOptChoiceGroup = { ( "[" ~ Word + ~ ( "|" ~ ( Word | ArgChoiceGroup ) + ) * ~ "]" ) + } ArgReqChoiceGroup = { ( "<" ~ Word + ~ ( "|" ~ ( Word | ArgChoiceGroup ) + ) * ~ ">" ) + } ArgChoiceGroup = _ { ArgOptChoiceGroup | ArgReqChoiceGroup } Command = { ( WordGroup ) ~ ( ArgChoiceGroup ) * } HelpMenu = { SOI ~ ( Command ~ NEWLINE ) * ~ EOI } pest_derive-2.7.4/examples/help-menu.rs000064400000000000000000000013051046102023000162240ustar 00000000000000#[macro_use] extern crate pest_derive; extern crate pest; use pest::Parser; #[derive(Parser)] #[grammar = "../examples/help-menu.pest"] struct HelpMenuGrammar; const INPUT: &str = r"cli help cli positional-command [optional-single-argument] cli [choice | of | one | or | none | of | these | options] cli cli [nesting | ] "; fn main() { HelpMenuGrammar::parse(Rule::HelpMenu, INPUT) .expect("Error parsing file") .next() .expect("Infallible") .into_inner() .filter(|pair| Rule::Command == pair.as_rule()) .for_each(|pair| { println!("{:#?}", pair); }); } pest_derive-2.7.4/src/lib.rs000064400000000000000000000320021046102023000140470ustar 00000000000000// pest. The Elegant Parser // Copyright (c) 2018 Dragoș Tiselice // // Licensed under the Apache License, Version 2.0 // or the MIT // license , at your // option. All files in the project carrying such notice may not be copied, // modified, or distributed except according to those terms. #![doc( html_root_url = "https://docs.rs/pest_derive", html_logo_url = "https://raw.githubusercontent.com/pest-parser/pest/master/pest-logo.svg", html_favicon_url = "https://raw.githubusercontent.com/pest-parser/pest/master/pest-logo.svg" )] #![warn(missing_docs, rust_2018_idioms, unused_qualifications)] //! # pest. The Elegant Parser //! //! pest is a general purpose parser written in Rust with a focus on accessibility, correctness, //! and performance. It uses parsing expression grammars (or [PEG]) as input, which are similar in //! spirit to regular expressions, but which offer the enhanced expressivity needed to parse //! complex languages. //! //! [PEG]: https://en.wikipedia.org/wiki/Parsing_expression_grammar //! //! ## Getting started //! //! The recommended way to start parsing with pest is to read the official [book]. //! //! Other helpful resources: //! //! * API reference on [docs.rs] //! * play with grammars and share them on our [fiddle] //! * find previous common questions answered or ask questions on [GitHub Discussions] //! * leave feedback, ask questions, or greet us on [Gitter] or [Discord] //! //! [book]: https://pest.rs/book //! [docs.rs]: https://docs.rs/pest //! [fiddle]: https://pest.rs/#editor //! [Gitter]: https://gitter.im/pest-parser/pest //! [Discord]: https://discord.gg/XEGACtWpT2 //! [GitHub Discussions]: https://github.com/pest-parser/pest/discussions //! //! //! ## `.pest` files //! //! Grammar definitions reside in custom `.pest` files located in the `src` directory. Their path is //! relative to `src` and is specified between the `derive` attribute and empty `struct` that //! `Parser` will be derived on. //! //! ```ignore //! #[derive(Parser)] //! #[grammar = "path/to/my_grammar.pest"] // relative to src //! struct MyParser; //! ``` //! //! ## Inline grammars //! //! Grammars can also be inlined by using the `#[grammar_inline = "..."]` attribute. //! //! ## Grammar //! //! A grammar is a series of rules separated by whitespace, possibly containing comments. //! //! ### Comments //! //! Comments start with `//` and end at the end of the line. //! //! ```text //! // a comment //! ``` //! //! ### Rules //! //! Rules have the following form: //! //! ```ignore //! name = optional_modifier { expression } //! ``` //! //! The name of the rule is formed from alphanumeric characters or `_` with the condition that the //! first character is not a digit and is used to create token pairs. When the rule starts being //! parsed, the starting part of the token is being produced, with the ending part being produced //! when the rule finishes parsing. //! //! The following token pair notation `a(b(), c())` denotes the tokens: start `a`, start `b`, end //! `b`, start `c`, end `c`, end `a`. //! //! #### Modifiers //! //! Modifiers are optional and can be one of `_`, `@`, `$`, or `!`. These modifiers change the //! behavior of the rules. //! //! 1. Silent (`_`) //! //! Silent rules do not create token pairs during parsing, nor are they error-reported. //! //! ```ignore //! a = _{ "a" } //! b = { a ~ "b" } //! ``` //! //! Parsing `"ab"` produces the token pair `b()`. //! //! 2. Atomic (`@`) //! //! Atomic rules do not accept whitespace or comments within their expressions and have a //! cascading effect on any rule they call. I.e. rules that are not atomic but are called by atomic //! rules behave atomically. //! //! Any rules called by atomic rules do not generate token pairs. //! //! ```ignore //! a = { "a" } //! b = @{ a ~ "b" } //! //! WHITESPACE = _{ " " } //! ``` //! //! Parsing `"ab"` produces the token pair `b()`, while `"a b"` produces an error. //! //! 3. Compound-atomic (`$`) //! //! Compound-atomic are identical to atomic rules with the exception that rules called by them are //! not forbidden from generating token pairs. //! //! ```ignore //! a = { "a" } //! b = ${ a ~ "b" } //! //! WHITESPACE = _{ " " } //! ``` //! //! Parsing `"ab"` produces the token pairs `b(a())`, while `"a b"` produces an error. //! //! 4. Non-atomic (`!`) //! //! Non-atomic are identical to normal rules with the exception that they stop the cascading effect //! of atomic and compound-atomic rules. //! //! ```ignore //! a = { "a" } //! b = !{ a ~ "b" } //! c = @{ b } //! //! WHITESPACE = _{ " " } //! ``` //! //! Parsing both `"ab"` and `"a b"` produce the token pairs `c(a())`. //! //! #### Expressions //! //! Expressions can be either terminals or non-terminals. //! //! 1. Terminals //! //! | Terminal | Usage | //! |------------|----------------------------------------------------------------| //! | `"a"` | matches the exact string `"a"` | //! | `^"a"` | matches the exact string `"a"` case insensitively (ASCII only) | //! | `'a'..'z'` | matches one character between `'a'` and `'z'` | //! | `a` | matches rule `a` | //! //! Strings and characters follow //! [Rust's escape mechanisms](https://doc.rust-lang.org/reference/tokens.html#byte-escapes), while //! identifiers can contain alphanumeric characters and underscores (`_`), as long as they do not //! start with a digit. //! //! 2. Non-terminals //! //! | Non-terminal | Usage | //! |-----------------------|------------------------------------------------------------| //! | `(e)` | matches `e` | //! | `e1 ~ e2` | matches the sequence `e1` `e2` | //! | e1 \| e2 | matches either `e1` or `e2` | //! | `e*` | matches `e` zero or more times | //! | `e+` | matches `e` one or more times | //! | `e{n}` | matches `e` exactly `n` times | //! | `e{, n}` | matches `e` at most `n` times | //! | `e{n,}` | matches `e` at least `n` times | //! | `e{m, n}` | matches `e` between `m` and `n` times inclusively | //! | `e?` | optionally matches `e` | //! | `&e` | matches `e` without making progress | //! | `!e` | matches if `e` doesn't match without making progress | //! | `PUSH(e)` | matches `e` and pushes it's captured string down the stack | //! //! where `e`, `e1`, and `e2` are expressions. //! //! Matching is greedy, without backtracking. Note the difference in behavior for //! these two rules in matching identifiers that don't end in an underscore: //! //! ```ignore //! // input: ab_bb_b //! //! identifier = @{ "a" ~ ("b"|"_")* ~ "b" } //! // matches: a b_bb_b nothing -> error! //! //! identifier = @{ "a" ~ ("_"* ~ "b")* } //! // matches: a b, _bb, _b in three repetitions //! ``` //! //! Expressions can modify the stack only if they match the input. For example, //! if `e1` in the compound expression `e1 | e2` does not match the input, then //! it does not modify the stack, so `e2` sees the stack in the same state as //! `e1` did. Repetitions and optionals (`e*`, `e+`, `e{, n}`, `e{n,}`, //! `e{m,n}`, `e?`) can modify the stack each time `e` matches. The `!e` and `&e` //! expressions are a special case; they never modify the stack. //! Many languages have "keyword" tokens (e.g. if, for, while) as well as general //! tokens (e.g. identifier) that matches any word. In order to match a keyword, //! generally, you may need to restrict that is not immediately followed by another //! letter or digit (otherwise it would be matched as an identifier). //! //! ## Special rules //! //! Special rules can be called within the grammar. They are: //! //! * `WHITESPACE` - runs between rules and sub-rules //! * `COMMENT` - runs between rules and sub-rules //! * `ANY` - matches exactly one `char` //! * `SOI` - (start-of-input) matches only when a `Parser` is still at the starting position //! * `EOI` - (end-of-input) matches only when a `Parser` has reached its end //! * `POP` - pops a string from the stack and matches it //! * `POP_ALL` - pops the entire state of the stack and matches it //! * `PEEK` - peeks a string from the stack and matches it //! * `PEEK[a..b]` - peeks part of the stack and matches it //! * `PEEK_ALL` - peeks the entire state of the stack and matches it //! * `DROP` - drops the top of the stack (fails to match if the stack is empty) //! //! `WHITESPACE` and `COMMENT` should be defined manually if needed. All other rules cannot be //! overridden. //! //! ## `WHITESPACE` and `COMMENT` //! //! When defined, these rules get matched automatically in sequences (`~`) and repetitions //! (`*`, `+`) between expressions. Atomic rules and those rules called by atomic rules are exempt //! from this behavior. //! //! These rules should be defined so as to match one whitespace character and one comment only since //! they are run in repetitions. //! //! If both `WHITESPACE` and `COMMENT` are defined, this grammar: //! //! ```ignore //! a = { b ~ c } //! ``` //! //! is effectively transformed into this one behind the scenes: //! //! ```ignore //! a = { b ~ WHITESPACE* ~ (COMMENT ~ WHITESPACE*)* ~ c } //! ``` //! //! ## `PUSH`, `POP`, `DROP`, and `PEEK` //! //! `PUSH(e)` simply pushes the captured string of the expression `e` down a stack. This stack can //! then later be used to match grammar based on its content with `POP` and `PEEK`. //! //! `PEEK` always matches the string at the top of stack. So, if the stack contains `["b", "a"]` //! (`"a"` being on top), this grammar: //! //! ```ignore //! a = { PEEK } //! ``` //! //! is effectively transformed into at parse time: //! //! ```ignore //! a = { "a" } //! ``` //! //! `POP` works the same way with the exception that it pops the string off of the stack if the //! match worked. With the stack from above, if `POP` matches `"a"`, the stack will be mutated //! to `["b"]`. //! //! `DROP` makes it possible to remove the string at the top of the stack //! without matching it. If the stack is nonempty, `DROP` drops the top of the //! stack. If the stack is empty, then `DROP` fails to match. //! //! ### Advanced peeking //! //! `PEEK[start..end]` and `PEEK_ALL` allow to peek deeper into the stack. The syntax works exactly //! like Rust’s exclusive slice syntax. Additionally, negative indices can be used to indicate an //! offset from the top. If the end lies before or at the start, the expression matches (as does //! a `PEEK_ALL` on an empty stack). With the stack `["c", "b", "a"]` (`"a"` on top): //! //! ```ignore //! fill = PUSH("c") ~ PUSH("b") ~ PUSH("a") //! v = { PEEK_ALL } = { "a" ~ "b" ~ "c" } // top to bottom //! w = { PEEK[..] } = { "c" ~ "b" ~ "a" } // bottom to top //! x = { PEEK[1..2] } = { PEEK[1..-1] } = { "b" } //! y = { PEEK[..-2] } = { PEEK[0..1] } = { "a" } //! z = { PEEK[1..] } = { PEEK[-2..3] } = { "c" ~ "b" } //! n = { PEEK[2..-2] } = { PEEK[2..1] } = { "" } //! ``` //! //! For historical reasons, `PEEK_ALL` matches from top to bottom, while `PEEK[start..end]` matches //! from bottom to top. There is currently no syntax to match a slice of the stack top to bottom. //! //! ## `Rule` //! //! All rules defined or used in the grammar populate a generated `enum` called `Rule`. This //! implements `pest`'s `RuleType` and can be used throughout the API. //! //! ## `Built-in rules` //! //! Pest also comes with a number of built-in rules for convenience. They are: //! //! * `ASCII_DIGIT` - matches a numeric character from 0..9 //! * `ASCII_NONZERO_DIGIT` - matches a numeric character from 1..9 //! * `ASCII_BIN_DIGIT` - matches a numeric character from 0..1 //! * `ASCII_OCT_DIGIT` - matches a numeric character from 0..7 //! * `ASCII_HEX_DIGIT` - matches a numeric character from 0..9 or a..f or A..F //! * `ASCII_ALPHA_LOWER` - matches a character from a..z //! * `ASCII_ALPHA_UPPER` - matches a character from A..Z //! * `ASCII_ALPHA` - matches a character from a..z or A..Z //! * `ASCII_ALPHANUMERIC` - matches a character from a..z or A..Z or 0..9 //! * `ASCII` - matches a character from \x00..\x7f //! * `NEWLINE` - matches either "\n" or "\r\n" or "\r" use proc_macro::TokenStream; /// The main method that's called by the proc macro /// (a wrapper around `pest_generator::derive_parser`) #[proc_macro_derive(Parser, attributes(grammar, grammar_inline))] pub fn derive_parser(input: TokenStream) -> TokenStream { pest_generator::derive_parser(input.into(), true).into() } pest_derive-2.7.4/tests/grammar.pest000064400000000000000000000055471046102023000156470ustar 00000000000000// pest. The Elegant Parser // Copyright (c) 2018 Dragoș Tiselice // // Licensed under the Apache License, Version 2.0 // or the MIT // license , at your // option. All files in the project carrying such notice may not be copied, // modified, or distributed except according to those terms. string = { "abc" } insensitive = { ^"abc" } range = { '0'..'9' } ident = { string } pos_pred = { &string } neg_pred = { !string } double_neg_pred = { !!string } sequence = !{ string ~ string } sequence_compound = ${ string ~ string } sequence_atomic = @{ string ~ string } sequence_non_atomic = @{ sequence } sequence_atomic_compound = @{ sequence_compound } sequence_nested = { string ~ string } sequence_compound_nested = ${ sequence_nested } node_tag = { #string = string } choice = { string | range } choice_prefix = { | string | range } optional = { string? } repeat = { string* } repeat_atomic = @{ string* } repeat_once = { string+ } repeat_once_atomic = @{ string+ } repeat_min_max = { string{2, 3} } repeat_min_max_atomic = @{ string{2, 3} } repeat_exact = { string{2} } repeat_min = { string{2,} } repeat_min_atomic = @{ string{2,} } repeat_max = { string{, 2} } repeat_max_atomic = @{ string{, 2} } soi_at_start = { SOI ~ string } repeat_mutate_stack = { (PUSH('a'..'c') ~ ",")* ~ POP ~ POP ~ POP } repeat_mutate_stack_pop_all = { (PUSH('a'..'c') ~ ",")* ~ POP_ALL } will_fail = { repeat_mutate_stack_pop_all ~ "FAIL" } stack_resume_after_fail = { will_fail | repeat_mutate_stack_pop_all } peek_ = { PUSH(range) ~ PUSH(range) ~ PEEK ~ PEEK } peek_all = { PUSH(range) ~ PUSH(range) ~ PEEK_ALL } peek_slice_23 = { PUSH(range) ~ PUSH(range) ~ PUSH(range) ~ PUSH(range) ~ PUSH(range) ~ PEEK[1..-2] } pop_ = { PUSH(range) ~ PUSH(range) ~ POP ~ POP } pop_all = { PUSH(range) ~ PUSH(range) ~ POP_ALL } pop_fail = { PUSH(range) ~ !POP ~ range ~ POP } checkpoint_restore = ${ PUSH("") ~ (PUSH("a") ~ "b" ~ POP | DROP ~ "b" | POP ~ "a") ~ EOI } ascii_digits = { ASCII_DIGIT+ } ascii_nonzero_digits = { ASCII_NONZERO_DIGIT+ } ascii_bin_digits = { ASCII_BIN_DIGIT+ } ascii_oct_digits = { ASCII_OCT_DIGIT+ } ascii_hex_digits = { ASCII_HEX_DIGIT+ } ascii_alpha_lowers = { ASCII_ALPHA_LOWER+ } ascii_alpha_uppers = { ASCII_ALPHA_UPPER+ } ascii_alphas = { ASCII_ALPHA+ } ascii_alphanumerics = { ASCII_ALPHANUMERIC+ } asciis = { ASCII+ } newline = { NEWLINE+ } unicode = { XID_START ~ XID_CONTINUE* } SYMBOL = { "shadows builtin" } han = { HAN+ } hangul = { HANGUL+ } hiragana = { HIRAGANA+ } arabic = { ARABIC+ } emoji = { EMOJI+ } WHITESPACE = _{ " " } COMMENT = _{ "$"+ } // Line comment /* 1-line multiline comment */ /* N-line multiline comment */ /* // Line comment inside multiline /* (Multiline inside) multiline */ Invalid segment of grammar below (repeated rule) WHITESPACE = _{ "hi" } */ pest_derive-2.7.4/tests/grammar.rs000064400000000000000000000435531046102023000153170ustar 00000000000000// pest. The Elegant Parser // Copyright (c) 2018 Dragoș Tiselice // // Licensed under the Apache License, Version 2.0 // or the MIT // license , at your // option. All files in the project carrying such notice may not be copied, // modified, or distributed except according to those terms. #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; use alloc::{format, vec::Vec}; #[macro_use] extern crate pest; #[macro_use] extern crate pest_derive; #[derive(Parser)] #[grammar = "tests/grammar.pest"] struct GrammarParser; #[test] fn string() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::string, tokens: [ string(0, 3) ] }; } #[test] fn insensitive() { parses_to! { parser: GrammarParser, input: "aBC", rule: Rule::insensitive, tokens: [ insensitive(0, 3) ] }; } #[test] fn range() { parses_to! { parser: GrammarParser, input: "6", rule: Rule::range, tokens: [ range(0, 1) ] }; } #[test] fn ident() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::ident, tokens: [ ident(0, 3, [ string(0, 3) ]) ] }; } #[test] fn pos_pred() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::pos_pred, tokens: [ pos_pred(0, 0) ] }; } #[test] fn neg_pred() { parses_to! { parser: GrammarParser, input: "", rule: Rule::neg_pred, tokens: [ neg_pred(0, 0) ] }; } #[test] fn double_neg_pred() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::double_neg_pred, tokens: [ double_neg_pred(0, 0) ] }; } #[test] fn sequence() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::sequence, tokens: [ sequence(0, 9, [ string(0, 3), string(6, 9) ]) ] }; } #[test] fn sequence_compound() { parses_to! { parser: GrammarParser, input: "abcabc", rule: Rule::sequence_compound, tokens: [ sequence_compound(0, 6, [ string(0, 3), string(3, 6) ]) ] }; } #[test] fn sequence_atomic() { parses_to! { parser: GrammarParser, input: "abcabc", rule: Rule::sequence_atomic, tokens: [ sequence_atomic(0, 6) ] }; } #[test] fn sequence_non_atomic() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::sequence_non_atomic, tokens: [ sequence_non_atomic(0, 9, [ sequence(0, 9, [ string(0, 3), string(6, 9) ]) ]) ] }; } #[test] #[should_panic] fn sequence_atomic_space() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::sequence_atomic, tokens: [] }; } #[test] fn sequence_atomic_compound() { parses_to! { parser: GrammarParser, input: "abcabc", rule: Rule::sequence_atomic_compound, tokens: [ sequence_atomic_compound(0, 6, [ sequence_compound(0, 6, [ string(0, 3), string(3, 6) ]) ]) ] }; } #[test] fn sequence_compound_nested() { parses_to! { parser: GrammarParser, input: "abcabc", rule: Rule::sequence_compound_nested, tokens: [ sequence_compound_nested(0, 6, [ sequence_nested(0, 6, [ string(0, 3), string(3, 6) ]) ]) ] }; } #[test] #[should_panic] fn sequence_compound_nested_space() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::sequence_compound_nested, tokens: [] }; } #[test] fn choice_string() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::choice, tokens: [ choice(0, 3, [ string(0, 3) ]) ] }; } #[test] fn choice_range() { parses_to! { parser: GrammarParser, input: "0", rule: Rule::choice, tokens: [ choice(0, 1, [ range(0, 1) ]) ] }; } #[test] fn choice_prefix() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::choice_prefix, tokens: [ choice_prefix(0, 3, [ string(0, 3) ]) ] }; } #[test] fn node_tag() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::node_tag, tokens: [ node_tag(0, 3, [ string(0, 3) ]) ] }; } #[test] fn optional_string() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::optional, tokens: [ optional(0, 3, [ string(0, 3) ]) ] }; } #[test] fn optional_empty() { parses_to! { parser: GrammarParser, input: "", rule: Rule::optional, tokens: [ optional(0, 0) ] }; } #[test] fn repeat_empty() { parses_to! { parser: GrammarParser, input: "", rule: Rule::repeat, tokens: [ repeat(0, 0) ] }; } #[test] fn repeat_strings() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat, tokens: [ repeat(0, 9, [ string(0, 3), string(6, 9) ]) ] }; } #[test] fn repeat_atomic_empty() { parses_to! { parser: GrammarParser, input: "", rule: Rule::repeat_atomic, tokens: [ repeat_atomic(0, 0) ] }; } #[test] fn repeat_atomic_strings() { parses_to! { parser: GrammarParser, input: "abcabc", rule: Rule::repeat_atomic, tokens: [ repeat_atomic(0, 6) ] }; } #[test] #[should_panic] fn repeat_atomic_space() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_atomic, tokens: [] }; } #[test] #[should_panic] fn repeat_once_empty() { parses_to! { parser: GrammarParser, input: "", rule: Rule::repeat_once, tokens: [] }; } #[test] fn repeat_once_strings() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_once, tokens: [ repeat_once(0, 9, [ string(0, 3), string(6, 9) ]) ] }; } #[test] #[should_panic] fn repeat_once_atomic_empty() { parses_to! { parser: GrammarParser, input: "", rule: Rule::repeat_once_atomic, tokens: [] }; } #[test] fn repeat_once_atomic_strings() { parses_to! { parser: GrammarParser, input: "abcabc", rule: Rule::repeat_once_atomic, tokens: [ repeat_once_atomic(0, 6) ] }; } #[test] #[should_panic] fn repeat_once_atomic_space() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_once_atomic, tokens: [] }; } #[test] fn repeat_min_max_twice() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_min_max, tokens: [ repeat_min_max(0, 7, [ string(0, 3), string(4, 7) ]) ] }; } #[test] fn repeat_min_max_thrice() { parses_to! { parser: GrammarParser, input: "abc abc abc", rule: Rule::repeat_min_max, tokens: [ repeat_min_max(0, 11, [ string(0, 3), string(4, 7), string(8, 11) ]) ] }; } #[test] fn repeat_min_max_atomic_twice() { parses_to! { parser: GrammarParser, input: "abcabc", rule: Rule::repeat_min_max_atomic, tokens: [ repeat_min_max_atomic(0, 6) ] }; } #[test] fn repeat_min_max_atomic_thrice() { parses_to! { parser: GrammarParser, input: "abcabcabc", rule: Rule::repeat_min_max_atomic, tokens: [ repeat_min_max_atomic(0, 9) ] }; } #[test] #[should_panic] fn repeat_min_max_atomic_space() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_min_max_atomic, tokens: [] }; } #[test] fn repeat_exact() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_exact, tokens: [ repeat_exact(0, 7, [ string(0, 3), string(4, 7) ]) ] }; } #[test] #[should_panic] fn repeat_min_once() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::repeat_min, tokens: [] }; } #[test] fn repeat_min_twice() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_min, tokens: [ repeat_min(0, 7, [ string(0, 3), string(4, 7) ]) ] }; } #[test] fn repeat_min_thrice() { parses_to! { parser: GrammarParser, input: "abc abc abc", rule: Rule::repeat_min, tokens: [ repeat_min(0, 12, [ string(0, 3), string(4, 7), string(9, 12) ]) ] }; } #[test] #[should_panic] fn repeat_min_atomic_once() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::repeat_min_atomic, tokens: [] }; } #[test] fn repeat_min_atomic_twice() { parses_to! { parser: GrammarParser, input: "abcabc", rule: Rule::repeat_min_atomic, tokens: [ repeat_min_atomic(0, 6) ] }; } #[test] fn repeat_min_atomic_thrice() { parses_to! { parser: GrammarParser, input: "abcabcabc", rule: Rule::repeat_min_atomic, tokens: [ repeat_min_atomic(0, 9) ] }; } #[test] #[should_panic] fn repeat_min_atomic_space() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_min_atomic, tokens: [] }; } #[test] fn repeat_max_once() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::repeat_max, tokens: [ repeat_max(0, 3, [ string(0, 3) ]) ] }; } #[test] fn repeat_max_twice() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_max, tokens: [ repeat_max(0, 7, [ string(0, 3), string(4, 7) ]) ] }; } #[test] #[should_panic] fn repeat_max_thrice() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_max, tokens: [] }; } #[test] fn repeat_max_atomic_once() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::repeat_max_atomic, tokens: [ repeat_max_atomic(0, 3) ] }; } #[test] fn repeat_max_atomic_twice() { parses_to! { parser: GrammarParser, input: "abcabc", rule: Rule::repeat_max_atomic, tokens: [ repeat_max_atomic(0, 6) ] }; } #[test] #[should_panic] fn repeat_max_atomic_thrice() { parses_to! { parser: GrammarParser, input: "abcabcabc", rule: Rule::repeat_max_atomic, tokens: [] }; } #[test] #[should_panic] fn repeat_max_atomic_space() { parses_to! { parser: GrammarParser, input: "abc abc", rule: Rule::repeat_max_atomic, tokens: [] }; } #[test] fn repeat_comment() { parses_to! { parser: GrammarParser, input: "abc$$$ $$$abc", rule: Rule::repeat_once, tokens: [ repeat_once(0, 13, [ string(0, 3), string(10, 13) ]) ] }; } #[test] fn soi_at_start() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::soi_at_start, tokens: [ soi_at_start(0, 3, [ string(0, 3) ]) ] }; } #[test] fn peek() { parses_to! { parser: GrammarParser, input: "0111", rule: Rule::peek_, tokens: [ peek_(0, 4, [ range(0, 1), range(1, 2) ]) ] }; } #[test] fn peek_all() { parses_to! { parser: GrammarParser, input: "0110", rule: Rule::peek_all, tokens: [ peek_all(0, 4, [ range(0, 1), range(1, 2) ]) ] }; } #[test] fn peek_slice_23() { parses_to! { parser: GrammarParser, input: "0123412", rule: Rule::peek_slice_23, tokens: [ peek_slice_23(0, 7, [ range(0, 1), range(1, 2), range(2, 3), range(3, 4), range(4, 5), ]) ] }; } #[test] fn pop() { parses_to! { parser: GrammarParser, input: "0110", rule: Rule::pop_, tokens: [ pop_(0, 4, [ range(0, 1), range(1, 2) ]) ] }; } #[test] fn pop_all() { parses_to! { parser: GrammarParser, input: "0110", rule: Rule::pop_all, tokens: [ pop_all(0, 4, [ range(0, 1), range(1, 2) ]) ] }; } #[test] fn pop_fail() { parses_to! { parser: GrammarParser, input: "010", rule: Rule::pop_fail, tokens: [ pop_fail(0, 3, [ range(0, 1), range(1, 2) ]) ] }; } #[test] fn repeat_mutate_stack() { parses_to! { parser: GrammarParser, input: "a,b,c,cba", rule: Rule::repeat_mutate_stack, tokens: [ repeat_mutate_stack(0, 9) ] }; } #[test] fn stack_resume_after_fail() { parses_to! { parser: GrammarParser, input: "a,b,c,cba", rule: Rule::stack_resume_after_fail, tokens: [ stack_resume_after_fail(0, 9, [ repeat_mutate_stack_pop_all(0, 9) ]) ] }; } #[test] fn checkpoint_restore() { parses_to! { parser: GrammarParser, input: "a", rule: Rule::checkpoint_restore, tokens: [ checkpoint_restore(0, 1, [EOI(1, 1)]) ] }; } #[test] fn ascii_digits() { parses_to! { parser: GrammarParser, input: "6", rule: Rule::ascii_digits, tokens: [ ascii_digits(0, 1) ] }; } #[test] fn ascii_nonzero_digits() { parses_to! { parser: GrammarParser, input: "5", rule: Rule::ascii_nonzero_digits, tokens: [ ascii_nonzero_digits(0, 1) ] }; } #[test] fn ascii_bin_digits() { parses_to! { parser: GrammarParser, input: "1", rule: Rule::ascii_bin_digits, tokens: [ ascii_bin_digits(0, 1) ] }; } #[test] fn ascii_oct_digits() { parses_to! { parser: GrammarParser, input: "3", rule: Rule::ascii_oct_digits, tokens: [ ascii_oct_digits(0, 1) ] }; } #[test] fn ascii_hex_digits() { parses_to! { parser: GrammarParser, input: "6bC", rule: Rule::ascii_hex_digits, tokens: [ ascii_hex_digits(0, 3) ] }; } #[test] fn ascii_alpha_lowers() { parses_to! { parser: GrammarParser, input: "a", rule: Rule::ascii_alpha_lowers, tokens: [ ascii_alpha_lowers(0, 1) ] }; } #[test] fn ascii_alpha_uppers() { parses_to! { parser: GrammarParser, input: "K", rule: Rule::ascii_alpha_uppers, tokens: [ ascii_alpha_uppers(0, 1) ] }; } #[test] fn ascii_alphas() { parses_to! { parser: GrammarParser, input: "wF", rule: Rule::ascii_alphas, tokens: [ ascii_alphas(0, 2) ] }; } #[test] fn ascii_alphanumerics() { parses_to! { parser: GrammarParser, input: "4jU", rule: Rule::ascii_alphanumerics, tokens: [ ascii_alphanumerics(0, 3) ] }; } #[test] fn asciis() { parses_to! { parser: GrammarParser, input: "x02", rule: Rule::asciis, tokens: [ asciis(0, 3) ] }; } #[test] fn newline() { parses_to! { parser: GrammarParser, input: "\n\r\n\r", rule: Rule::newline, tokens: [ newline(0, 4) ] }; } #[test] fn unicode() { parses_to! { parser: GrammarParser, input: "نامهای", rule: Rule::unicode, tokens: [ unicode(0, 12) ] } } #[test] fn shadowing() { parses_to! { parser: GrammarParser, input: "shadows builtin", rule: Rule::SYMBOL, tokens: [ SYMBOL(0, 15) ] } } pest_derive-2.7.4/tests/grammar_inline.rs000064400000000000000000000014111046102023000166400ustar 00000000000000// Licensed under the Apache License, Version 2.0 // or the MIT // license , at your // option. All files in the project carrying such notice may not be copied, // modified, or distributed except according to those terms. #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; use alloc::{format, vec::Vec}; #[macro_use] extern crate pest; #[macro_use] extern crate pest_derive; #[derive(Parser)] #[grammar_inline = "string = { \"abc\" }"] struct GrammarParser; #[test] fn inline_string() { parses_to! { parser: GrammarParser, input: "abc", rule: Rule::string, tokens: [ string(0, 3) ] }; } pest_derive-2.7.4/tests/implicit.pest000064400000000000000000000006561046102023000160270ustar 00000000000000program = _{ SOI ~ implicit ~ EOI } implicit= ${ #head = or ~ #tail = (WHITESPACE+ ~ or)* } or = !{ #more_and = and ~ (or_op ~ and)+ | #one_and = and } and = { #more_comp = comp ~ (and_op ~ comp)+ | #one_comp = comp } comp = { #more_array = array ~ eq_op ~ array | #one_array = array } array = ${ term } term = _{ ASCII_ALPHANUMERIC+ } or_op = { "||" } and_op = { "&&" } eq_op = { "=" } WHITESPACE = _{ " " | "\t" | NEWLINE }pest_derive-2.7.4/tests/implicit.rs000064400000000000000000000027361046102023000155010ustar 00000000000000// Licensed under the Apache License, Version 2.0 // or the MIT // license , at your // option. All files in the project carrying such notice may not be copied, // modified, or distributed except according to those terms. #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; extern crate pest; extern crate pest_derive; #[cfg(feature = "grammar-extras")] use pest::Parser; use pest_derive::Parser; #[derive(Parser)] #[grammar = "../tests/implicit.pest"] struct TestImplicitParser; #[test] #[cfg(feature = "grammar-extras")] fn test_implicit_whitespace() { // this failed to parse due to a bug in the optimizer // see: https://github.com/pest-parser/pest/issues/762#issuecomment-1375374868 let successful_parse = TestImplicitParser::parse(Rule::program, "a a"); assert!(successful_parse.is_ok()); // dbg!(&successful_parse); let pairs = successful_parse.unwrap(); assert!(pairs.find_first_tagged("head").is_some()); assert!(pairs.find_first_tagged("tail").is_some()); assert!(pairs.find_first_tagged("more_and").is_none()); assert!(pairs.find_first_tagged("more_comp").is_none()); assert!(pairs.find_first_tagged("more_array").is_none()); assert_eq!(pairs.clone().find_tagged("one_and").count(), 2); assert_eq!(pairs.clone().find_tagged("one_comp").count(), 2); assert_eq!(pairs.find_tagged("one_array").count(), 2); } pest_derive-2.7.4/tests/lists.pest000064400000000000000000000013371046102023000153500ustar 00000000000000// pest. The Elegant Parser // Copyright (c) 2018 Dragoș Tiselice // // Licensed under the Apache License, Version 2.0 // or the MIT // license , at your // option. All files in the project carrying such notice may not be copied, // modified, or distributed except according to those terms. item = { (!"\n" ~ ANY)* } lists = _{ lines ~ EOI } lines = _{ top_first ~ ("\n" ~ top_continue)* } top_first = _{ "- " ~ item ~ ("\n" ~ children)? } top_continue = _{ PEEK_ALL ~ "- " ~ item ~ ("\n" ~ children)? } indentation = _{ (" " | "\t")+ } children = { PEEK_ALL ~ PUSH(indentation) ~ lines ~ DROP } pest_derive-2.7.4/tests/lists.rs000064400000000000000000000046701046102023000150240ustar 00000000000000// pest. The Elegant Parser // Copyright (c) 2018 Dragoș Tiselice // // Licensed under the Apache License, Version 2.0 // or the MIT // license , at your // option. All files in the project carrying such notice may not be copied, // modified, or distributed except according to those terms. #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; use alloc::{format, vec::Vec}; #[macro_use] extern crate pest; #[macro_use] extern crate pest_derive; #[derive(Parser)] #[grammar = "../tests/lists.pest"] struct ListsParser; #[test] fn item() { parses_to! { parser: ListsParser, input: "- a", rule: Rule::lists, tokens: [ item(2, 3) ] }; } #[test] fn items() { parses_to! { parser: ListsParser, input: "- a\n- b", rule: Rule::lists, tokens: [ item(2, 3), item(6, 7) ] }; } #[test] fn children() { parses_to! { parser: ListsParser, input: " - b", rule: Rule::children, tokens: [ children(0, 5, [ item(4, 5) ]) ] }; } #[test] fn nested_item() { parses_to! { parser: ListsParser, input: "- a\n - b", rule: Rule::lists, tokens: [ item(2, 3), children(4, 9, [ item(8, 9) ]) ] }; } #[test] fn nested_items() { parses_to! { parser: ListsParser, input: "- a\n - b\n - c", rule: Rule::lists, tokens: [ item(2, 3), children(4, 15, [ item(8, 9), item(14, 15) ]) ] }; } #[test] fn nested_two_levels() { parses_to! { parser: ListsParser, input: "- a\n - b\n - c", rule: Rule::lists, tokens: [ item(2, 3), children(4, 17, [ item(8, 9), children(10, 17, [ item(16, 17) ]) ]) ] }; } #[test] fn nested_then_not() { parses_to! { parser: ListsParser, input: "- a\n - b\n- c", rule: Rule::lists, tokens: [ item(2, 3), children(4, 9, [ item(8, 9) ]), item(12, 13) ] }; } pest_derive-2.7.4/tests/oneormore.pest000064400000000000000000000001771046102023000162200ustar 00000000000000WHITESPACE = _{ " " | "\r" | "\n" | "\t" } identifier = { (ASCII_ALPHA | "_")+ } assign = { identifier ~ "<-" ~ identifier } pest_derive-2.7.4/tests/oneormore.rs000064400000000000000000000015341046102023000156670ustar 00000000000000#![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; #[cfg(not(feature = "std"))] use alloc::{format, vec::Vec}; #[cfg(feature = "grammar-extras")] use pest::Parser; use pest_derive::Parser; #[derive(Parser)] #[grammar = "../tests/oneormore.pest"] pub struct OneOrMoreParser; #[test] #[cfg(feature = "grammar-extras")] pub fn test_one_or_more() { let result = OneOrMoreParser::parse(Rule::assign, "k <- b\n"); assert!(result.is_ok()); let mut pairs = result.unwrap(); let pair = pairs.next().unwrap(); assert_eq!(pair.as_rule(), Rule::assign); let mut inner = pair.into_inner(); let lhs = inner.next().unwrap(); assert_eq!(lhs.as_rule(), Rule::identifier); assert_eq!(lhs.as_str(), "k"); let rhs = inner.next().unwrap(); assert_eq!(rhs.as_rule(), Rule::identifier); assert_eq!(rhs.as_str(), "b"); } pest_derive-2.7.4/tests/reporting.pest000064400000000000000000000013561046102023000162240ustar 00000000000000// pest. The Elegant Parser // Copyright (c) 2018 Dragoș Tiselice // // Licensed under the Apache License, Version 2.0 // or the MIT // license , at your // option. All files in the project carrying such notice may not be copied, // modified, or distributed except according to those terms. a = { "a" } b = { "b" } c = { "c" } d = { ANY } choices = _{ a | b | c } choices_no_progress = { a | b | c } choices_a_progress = { a ~ a | b | c } choices_b_progress = { a | b ~ b | c } level1 = _{ level2 } level2 = _{ a | b | c } negative = _{ !d } negative_match = _{ !a ~ b } mixed = _{ !d | a } mixed_progress = _{ (!d | a | b) ~ a } pest_derive-2.7.4/tests/reporting.rs000064400000000000000000000051621046102023000156740ustar 00000000000000// pest. The Elegant Parser // Copyright (c) 2018 Dragoș Tiselice // // Licensed under the Apache License, Version 2.0 // or the MIT // license , at your // option. All files in the project carrying such notice may not be copied, // modified, or distributed except according to those terms. #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; use alloc::vec; #[macro_use] extern crate pest; #[macro_use] extern crate pest_derive; #[derive(Parser)] #[grammar = "../tests/reporting.pest"] struct ReportingParser; #[test] fn choices() { fails_with! { parser: ReportingParser, input: "x", rule: Rule::choices, positives: vec![Rule::a, Rule::b, Rule::c], negatives: vec![], pos: 0 }; } #[test] fn choices_no_progress() { fails_with! { parser: ReportingParser, input: "x", rule: Rule::choices_no_progress, positives: vec![Rule::choices_no_progress], negatives: vec![], pos: 0 }; } #[test] fn choices_a_progress() { fails_with! { parser: ReportingParser, input: "a", rule: Rule::choices_a_progress, positives: vec![Rule::a], negatives: vec![], pos: 1 }; } #[test] fn choices_b_progress() { fails_with! { parser: ReportingParser, input: "b", rule: Rule::choices_b_progress, positives: vec![Rule::b], negatives: vec![], pos: 1 }; } #[test] fn nested() { fails_with! { parser: ReportingParser, input: "x", rule: Rule::level1, positives: vec![Rule::a, Rule::b, Rule::c], negatives: vec![], pos: 0 }; } #[test] fn negative() { fails_with! { parser: ReportingParser, input: "x", rule: Rule::negative, positives: vec![], negatives: vec![Rule::d], pos: 0 }; } #[test] fn negative_match() { fails_with! { parser: ReportingParser, input: "x", rule: Rule::negative_match, positives: vec![Rule::b], negatives: vec![], pos: 0 }; } #[test] fn mixed() { fails_with! { parser: ReportingParser, input: "x", rule: Rule::mixed, positives: vec![Rule::a], negatives: vec![Rule::d], pos: 0 }; } #[test] fn mixed_progress() { fails_with! { parser: ReportingParser, input: "b", rule: Rule::mixed_progress, positives: vec![Rule::a], negatives: vec![], pos: 1 }; }