├── .gitignore ├── rustfmt.toml ├── src ├── lib.rs ├── filter.lua ├── client.rs ├── server.rs ├── api.rs └── checkers.rs ├── doc ├── client.png ├── logo.webp ├── chrome_ext.png ├── screenshot1.png ├── screenshot2.png └── illustration.png ├── ltapiserv-rs.service ├── about.toml ├── Dockerfile ├── Makefile.toml ├── nfpm.yaml ├── tests ├── data │ ├── alice.json │ ├── alice2.txt │ ├── alice.txt │ └── alice2.json └── main.rs ├── checkalot.yaml ├── Cargo.toml ├── about.hbs ├── README.md ├── LICENSE └── Cargo.lock /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2021" 2 | -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod api; 2 | pub mod checkers; 3 | -------------------------------------------------------------------------------- /doc/client.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpg314/ltapiserv-rs/HEAD/doc/client.png -------------------------------------------------------------------------------- /doc/logo.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpg314/ltapiserv-rs/HEAD/doc/logo.webp -------------------------------------------------------------------------------- /doc/chrome_ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpg314/ltapiserv-rs/HEAD/doc/chrome_ext.png -------------------------------------------------------------------------------- /doc/screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpg314/ltapiserv-rs/HEAD/doc/screenshot1.png -------------------------------------------------------------------------------- /doc/screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpg314/ltapiserv-rs/HEAD/doc/screenshot2.png -------------------------------------------------------------------------------- /doc/illustration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cpg314/ltapiserv-rs/HEAD/doc/illustration.png -------------------------------------------------------------------------------- /src/filter.lua: -------------------------------------------------------------------------------- 1 | function CodeBlock(el) 2 | return "" 3 | end 4 | 5 | function Code(el) 6 | return "PLACEHOLDER" 7 | end 8 | -------------------------------------------------------------------------------- /ltapiserv-rs.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=ltapiserv-rs 3 | After=network.target 4 | StartLimitIntervalSec=0 5 | [Service] 6 | Type=simple 7 | Restart=on-failure 8 | RestartSec=20 9 | ExecStart=/usr/local/bin/ltapiserv-rs --port 8875 10 | 11 | [Install] 12 | WantedBy=default.target 13 | -------------------------------------------------------------------------------- /about.toml: -------------------------------------------------------------------------------- 1 | accepted = [ 2 | "Apache-2.0", 3 | "MIT", 4 | "BSD-2-Clause", 5 | "MPL-2.0", 6 | "CC0-1.0", 7 | "BSD-3-Clause", 8 | "Unicode-DFS-2016", 9 | "ISC", 10 | "OpenSSL" 11 | ] 12 | no-clearly-defined = true 13 | [ltapiserv-rs] 14 | accepted = ["GPL-3.0"] 15 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM bitnami/minideb:bookworm 2 | 3 | LABEL org.opencontainers.image.source=https://github.com/cpg314/ltapiserv-rs 4 | LABEL org.opencontainers.image.licenses=GPL-3.0-or-later 5 | 6 | COPY target-cross/x86_64-unknown-linux-gnu/release/ltapiserv-rs /usr/bin/ltapiserv-rs 7 | COPY target-cross/x86_64-unknown-linux-gnu/release/ltapi-client /usr/bin/ltapi-client 8 | 9 | EXPOSE 8875 10 | 11 | VOLUME /data 12 | 13 | ENTRYPOINT ["/usr/bin/ltapiserv-rs"] 14 | CMD ["--dictionary", "/data/dictionary.txt"] 15 | -------------------------------------------------------------------------------- /Makefile.toml: -------------------------------------------------------------------------------- 1 | extend = "common.toml" 2 | 3 | [config] 4 | load_script = "wget -nc https://raw.githubusercontent.com/cpg314/cargo-make-template/v0.1.3/common.toml" 5 | 6 | 7 | [tasks.cross] 8 | dependencies = ["create-archive"] 9 | 10 | [tasks.create-archive] 11 | condition = { files_not_exist = ["./en_US"] } 12 | script=''' 13 | set -exuo pipefail 14 | mkdir en_US 15 | wget -O- https://github.com/bminixhofer/nlprule/releases/download/0.6.4/en_tokenizer.bin.gz | gunzip -c > en_US/tokenizer.bin 16 | wget -O- https://github.com/bminixhofer/nlprule/releases/download/0.6.4/en_rules.bin.gz | gunzip -c > en_US/rules.bin 17 | wget https://github.com/reneklacan/symspell/raw/master/data/frequency_dictionary_en_82_765.txt -O en_US/frequency_dict.txt 18 | tar czf en_US.tar.gz en_US/* 19 | tar tvf en_US.tar.gz 20 | ''' 21 | -------------------------------------------------------------------------------- /nfpm.yaml: -------------------------------------------------------------------------------- 1 | name: "ltapiserv-rs" 2 | arch: "amd64" 3 | platform: "linux" 4 | version: "${CARGO_MAKE_PROJECT_VERSION}" 5 | release: "${RELEASE}" 6 | section: "default" 7 | priority: "extra" 8 | provides: 9 | - ltapiserv-rs 10 | - ltapi-client 11 | description: "Server implementation of the LanguageTool API for offline grammar and spell checking, based on nlprule and symspel. And a small graphical command-line client. " 12 | vendor: "cpg314" 13 | maintainer: "cpg314 <44120267+cpg314@users.noreply.github.com>" 14 | homepage: "https://github.com/cpg314/ltapiserv-rs" 15 | contents: 16 | - src: "./target-cross/$ARCH/release/ltapiserv-rs" 17 | dst: /usr/local/bin/ltapiserv-rs 18 | expand: true 19 | - src: "./target-cross/$ARCH/release/ltapi-client" 20 | dst: /usr/local/bin/ltapi-client 21 | expand: true 22 | - src: "./ltapiserv-rs.service" 23 | dst: /usr/lib/systemd/user/ltapiserv-rs.service 24 | -------------------------------------------------------------------------------- /tests/data/alice.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "message": "Interjections are usually punctuated.", 4 | "shortMessage": "", 5 | "offset": 141, 6 | "length": 2, 7 | "replacements": [ 8 | { 9 | "value": "Oh,", 10 | "shortDescription": null 11 | }, 12 | { 13 | "value": "Oh!", 14 | "shortDescription": null 15 | }, 16 | { 17 | "value": "Oh?", 18 | "shortDescription": null 19 | }, 20 | { 21 | "value": "Oh.", 22 | "shortDescription": null 23 | } 24 | ], 25 | "sentence": "", 26 | "contextForSureMatch": 0, 27 | "ignoreForIncompleteSentence": false, 28 | "type": { 29 | "typeName": "" 30 | }, 31 | "rule": { 32 | "id": "PUNCTUATION/INTERJECTIONS_PUNCTUATION/0", 33 | "subId": 0, 34 | "description": "", 35 | "issueType": "", 36 | "urls": null, 37 | "category": { 38 | "id": "", 39 | "name": "" 40 | }, 41 | "isPremium": false 42 | } 43 | } 44 | ] -------------------------------------------------------------------------------- /tests/main.rs: -------------------------------------------------------------------------------- 1 | static DATA: include_dir::Dir<'_> = include_dir::include_dir!("tests/data"); 2 | 3 | #[test] 4 | fn main() -> anyhow::Result<()> { 5 | let checkers = 6 | ltapiserv_rs::checkers::Checkers::from_archive_bytes(include_bytes!("../en_US.tar.gz"))?; 7 | 8 | for data in DATA.find("*.txt")?.filter_map(|d| d.as_file()) { 9 | let request = 10 | ltapiserv_rs::api::Request::new(data.contents_utf8().unwrap().into(), "en-US"); 11 | let suggestions = checkers.suggest(&request.annotations().unwrap()); 12 | let suggestions_expected: Vec = serde_json::from_slice( 13 | DATA.get_file(data.path().with_extension("json")) 14 | .unwrap() 15 | .contents(), 16 | )?; 17 | // std::fs::write( 18 | // Path::new("tests/data") 19 | // .join(data.path()) 20 | // .with_extension("json"), 21 | // serde_json::to_string_pretty(&suggestions)?, 22 | // )?; 23 | pretty_assertions::assert_eq!(suggestions, suggestions_expected); 24 | println!("{:#?}", suggestions); 25 | } 26 | 27 | Ok(()) 28 | } 29 | -------------------------------------------------------------------------------- /checkalot.yaml: -------------------------------------------------------------------------------- 1 | checks: 2 | - type: version 3 | version: ">=0.1.6" 4 | 5 | - type: command 6 | name: group-imports 7 | command: cargo group-imports 8 | version: ">=0.1.3" 9 | version_command: cargo group-imports --version 10 | fix_command: cargo group-imports --fix 11 | 12 | - type: command 13 | name: machete 14 | command: cargo-machete . 15 | fix_command: 16 | command: cargo-machete . --fix 17 | success_statuses: 18 | - 0 19 | - 1 20 | 21 | - type: command 22 | name: fmt 23 | command: cargo fmt --all -- --check 24 | fix_command: cargo fmt --all 25 | 26 | - type: command 27 | name: clippy 28 | command: cargo clippy --color always --release --workspace --no-deps --benches --tests --all-features -- -D warnings 29 | fix_command: cargo clippy --color always --release --workspace --no-deps --benches --tests --all-features --fix --allow-dirty --allow-staged -- -D warnings 30 | 31 | - type: command 32 | name: tests 33 | command: cargo nextest run -r 34 | 35 | - type: command 36 | name: doctest 37 | command: cargo test --doc --workspace -r 38 | 39 | - type: command 40 | name: typos 41 | command: typos src README.md 42 | fix_command: typos -w src README.md 43 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "ltapiserv-rs" 3 | version = "0.2.3" 4 | edition = "2021" 5 | license-file = "LICENSE" 6 | 7 | [[bin]] 8 | name = "ltapiserv-rs" 9 | path = "src/server.rs" 10 | 11 | [[bin]] 12 | name = "ltapi-client" 13 | path = "src/client.rs" 14 | required-features = ["client"] 15 | 16 | [dependencies] 17 | anyhow = "1.0.58" 18 | axum = { version = "0.7.5" } 19 | bincode = "1.3.3" 20 | blake3 = "1.3.1" 21 | clap = { version = "4.5.13", features = ["derive", "env", "wrap_help"] } 22 | dirs = "4.0.0" 23 | flate2 = "1.0.24" 24 | log = "0.4.17" 25 | nlprule = "0.6.4" 26 | regex = "1.6.0" 27 | serde = "1.0.139" 28 | serde_json = "1.0.82" 29 | symspell = { version = "0.4.3", features = ["serde"] } 30 | tar = "0.4.38" 31 | tempfile = "3.3.0" 32 | thiserror = "1.0.44" 33 | tokio = { version = "1", features = ["full"] } 34 | tower-http = {version = "0.5.2", features = ["cors"]} 35 | unidecode = "0.3.0" 36 | reqwest = { version = "0.11.18", optional = true, features = ["json", "rustls"], default-features = false } 37 | env_logger = "0.11.5" 38 | notify-debouncer-mini = "0.4.1" 39 | miette = { version = "7.2.0", features = ["fancy"], optional = true } 40 | itertools = "0.13.0" 41 | 42 | [features] 43 | default = ["client"] 44 | client = ["dep:miette", "dep:reqwest"] 45 | 46 | [profile.release] 47 | incremental = true 48 | lto = "off" 49 | 50 | [dev-dependencies] 51 | include_dir = { version = "0.7.4", features = ["glob"] } 52 | pretty_assertions = "1.4.0" 53 | -------------------------------------------------------------------------------- /tests/data/alice2.txt: -------------------------------------------------------------------------------- 1 | There was nothing so very remarkable in that; nor did Alice think it so verry much out of the way 2 | to hear the Rabbit say to itself, “Oh dear! Oh dear! I shall be late!” (when she thaught it over 3 | afterwards, it occured to her that she ought to have wonderd at this, but at the time it all 4 | seemed quite natural); but when the Rabbit actualy took a wach out of its waiscoat poket, and 5 | looked at it, and then huried on, Alice started to her feete, for it flashed accross her mind that 6 | she had never before seen a rabbit with ether a waiscoat poket, or a wach to take out of it, and 7 | burning with curiositie, she ran accross the feild after it, and fortunatly was just in time to see 8 | it pop down a large rabbit-hole under the the hedge. 9 | 10 | In another moment down whent Alice after it, never once consedering how in the world she was to get 11 | out agian. 12 | 13 | The rabbit-hole whent straight on like a tunnel for some way, and then dipped sudenly down, so 14 | sudenly that Alice had not a moment to think about stoping herself before she found herself 15 | falling down a very deep well. 16 | 17 | Eether the well was very deep, or she fell very slowly, for she had plenty of time as she whent down 18 | to look about her and to wonder what was going to hapen next. First, she tryed to look down and 19 | make out what she was comeing to but it was to dark to see anything; then she looked at the sides 20 | of the well, and notised that they were filled with cuboards and bookshelvs; here and there she 21 | saw maps and pictures hung uppon pegs. She toock down a jar from one of the shelvs as she passed; it 22 | was labeld “ORANGE MARMALADE”, but to her great dissapointment it was empty: she did not like to 23 | drop the jar for feer of killing sombody underneath, so managed to put it into one of the cuboards 24 | as she fell past it. 25 | -------------------------------------------------------------------------------- /tests/data/alice.txt: -------------------------------------------------------------------------------- 1 | There was nothing so very remarkable in that; nor did Alice think it so very much out of the way 2 | to hear the Rabbit say to itself, “Oh dear! Oh dear! I shall be late!” (when she thought it over 3 | afterwards, it occurred to her that she ought to have wondered at this, but at the time it all 4 | seemed quite natural); but when the Rabbit actually took a watch out of its waistcoat pocket, and 5 | looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that 6 | she had never before seen a rabbit with either a waistcoat-pocket, or a watch to take out of it, and 7 | burning with curiosity, she ran across the field after it, and fortunately was just in time to see 8 | it pop down a large rabbit-hole under the hedge. 9 | 10 | In another moment down went Alice after it, never once considering how in the world she was to get 11 | out again. 12 | 13 | The rabbit-hole went straight on like a tunnel for some way, and then dipped suddenly down, so 14 | suddenly that Alice had not a moment to think about stopping herself before she found herself 15 | falling down a very deep well. 16 | 17 | Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down 18 | to look about her and to wonder what was going to happen next. First, she tried to look down and 19 | make out what she was coming to, but it was too dark to see anything; then she looked at the sides 20 | of the well, and noticed that they were filled with cupboards and bookshelves; here and there she 21 | saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it 22 | was labelled “ORANGE MARMALADE”, but to her great disappointment it was empty: she did not like to 23 | drop the jar for fear of killing somebody underneath, so managed to put it into one of the cupboards 24 | as she fell past it. 25 | -------------------------------------------------------------------------------- /about.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 36 | 37 | 38 | 39 |
40 |
41 |

Third Party Licenses

42 |

This page lists the licenses of the projects used in ltapiserv-rs.

43 |
44 | 45 |

Overview of licenses:

46 | 51 | 52 |

LanguageTool rules

53 |

The nlprule binaries (*.bin) are derived from LanguageTool v5.2 and licensed under the LGPLv2.1 license.

54 | 55 |

All license text:

56 | 70 |
71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /src/client.rs: -------------------------------------------------------------------------------- 1 | use std::path::PathBuf; 2 | 3 | use anyhow::Context; 4 | use clap::Parser; 5 | use itertools::Itertools; 6 | use log::*; 7 | 8 | use ltapiserv_rs::api::{Request, Response}; 9 | 10 | /// Run text through a LanguageTool server and display the results. 11 | #[derive(Parser)] 12 | struct Flags { 13 | /// Filename; if not provided, will read from stdin. 14 | filename: Option, 15 | #[clap(long, short, default_value = "en-US")] 16 | language: String, 17 | /// Server base URL (e.g. http://localhost:8875) 18 | #[clap(long, short, env = "LTAPI_SERVER")] 19 | server: reqwest::Url, 20 | /// JSON output 21 | #[clap(long)] 22 | json: bool, 23 | /// Number of suggestions to display 24 | #[clap(long, default_value_t = 3)] 25 | suggestions: usize, 26 | /// Convert to plaintext with pandoc, removing code blocks. Line numbers are not preserved. 27 | #[clap(long, requires = "filename")] 28 | pandoc: bool, 29 | } 30 | 31 | #[tokio::main] 32 | async fn main() -> anyhow::Result<()> { 33 | if let Err(err) = main_impl().await { 34 | error!("{}", err); 35 | std::process::exit(1); 36 | } 37 | Ok(()) 38 | } 39 | async fn main_impl() -> anyhow::Result<()> { 40 | let args = Flags::parse(); 41 | 42 | env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")) 43 | .filter_module("nlprule", LevelFilter::Error) 44 | .init(); 45 | 46 | let text = if let Some(filename) = &args.filename { 47 | if args.pandoc { 48 | info!("Converting to plain text with pandoc"); 49 | let filter = tempfile::NamedTempFile::new()?; 50 | std::fs::write(filter.path(), include_str!("filter.lua"))?; 51 | let out = std::process::Command::new("pandoc") 52 | .arg(filename) 53 | .args(["--to", "plain", "--lua-filter"]) 54 | .arg(filter.path()) 55 | .stdout(std::process::Stdio::piped()) 56 | .output() 57 | .context("pandoc not found")?; 58 | anyhow::ensure!(out.status.success(), "pandoc did not execute successfully"); 59 | String::from_utf8_lossy(&out.stdout).to_string() 60 | } else { 61 | std::fs::read_to_string(filename) 62 | .with_context(|| format!("Could not open {:?}", filename))? 63 | } 64 | } else { 65 | info!("Reading from stdin",); 66 | std::io::read_to_string(std::io::stdin())? 67 | }; 68 | debug!("Text to process: {}", text); 69 | 70 | // Request and read results 71 | let endpoint = args.server.join("v2/check")?; 72 | info!("Sending request to {}", endpoint); 73 | let start = std::time::Instant::now(); 74 | let client = reqwest::Client::new(); 75 | let request = Request::new(text.clone(), &args.language); 76 | let resp: Response = client 77 | .post(endpoint) 78 | .form(&request) 79 | .send() 80 | .await? 81 | .error_for_status()? 82 | .json() 83 | .await?; 84 | info!("Received response in {:?}", start.elapsed()); 85 | 86 | let n_errors = resp.matches.len(); 87 | if args.json { 88 | println!("{}", serde_json::to_string_pretty(&resp)?); 89 | } else { 90 | // Report errors 91 | if resp.matches.is_empty() { 92 | info!("No errors found"); 93 | return Ok(()); 94 | } 95 | let text = std::sync::Arc::new(text); 96 | for m in resp.matches { 97 | // Get the byte offsets for miette 98 | let start = text.char_indices().nth(m.offset).unwrap().0; 99 | let end = text.char_indices().nth(m.offset + m.length).unwrap().0; 100 | let report = miette::miette!( 101 | severity = if m.rule.is_spelling() { 102 | miette::Severity::Warning 103 | } else { 104 | miette::Severity::Advice 105 | }, 106 | labels = vec![miette::LabeledSpan::at( 107 | start..end, 108 | m.replacements 109 | .into_iter() 110 | .take(args.suggestions) 111 | .map(|r| r.value) 112 | .join(" / ") 113 | ),], 114 | // code = m.rule.id, 115 | "{}", 116 | m.message, 117 | ) 118 | .with_source_code(text.clone()); 119 | println!("{:?}", report); 120 | } 121 | } 122 | info!("Found {} potential errors", n_errors); 123 | if n_errors > 0 { 124 | std::process::exit(1); 125 | } 126 | 127 | Ok(()) 128 | } 129 | -------------------------------------------------------------------------------- /src/server.rs: -------------------------------------------------------------------------------- 1 | use std::path::{Path, PathBuf}; 2 | use std::sync::Arc; 3 | 4 | use axum::extract::{Extension, Form, Json}; 5 | use axum::response::IntoResponse; 6 | use clap::Parser; 7 | use log::*; 8 | use tokio::sync::RwLock; 9 | 10 | use ltapiserv_rs::api; 11 | use ltapiserv_rs::checkers::Checkers; 12 | 13 | fn dictionary() -> String { 14 | dirs::data_dir() 15 | .map(|d| d.join("ltapiserv-rs").join("dictionary.txt")) 16 | .and_then(|d| d.to_str().map(String::from)) 17 | .unwrap_or_default() 18 | } 19 | 20 | /// Alternative API server for LanguageTool 21 | #[derive(Parser)] 22 | #[clap(version)] 23 | struct Flags { 24 | /// Path to a .tar.gz data archive. If not provided, the data will be loaded from the binary. 25 | #[clap(long)] 26 | archive: Option, 27 | /// Path to custom dictionary 28 | #[clap(long, default_value_t = dictionary())] 29 | dictionary: String, 30 | #[clap(long, default_value_t = 8875)] 31 | port: u16, 32 | /// Verbose logging 33 | #[clap(long, short)] 34 | debug: bool, 35 | #[clap(long, default_value_t = 50_000)] 36 | max_query_size: usize, 37 | } 38 | 39 | #[derive(thiserror::Error, Debug)] 40 | pub enum Error { 41 | #[error("Unsupported language (supports {supports}, got {request})")] 42 | UnsupportedLanguage { supports: String, request: String }, 43 | #[error("Missing text in request: {0:?}")] 44 | MissingAnnotations(anyhow::Error), 45 | #[error("Query too large ({0} > {1})")] 46 | QueryTooLarge(usize, usize), 47 | } 48 | 49 | impl IntoResponse for Error { 50 | fn into_response(self) -> axum::response::Response { 51 | error!("{}", self.to_string()); 52 | (axum::http::StatusCode::BAD_REQUEST, self.to_string()).into_response() 53 | } 54 | } 55 | 56 | type CheckersExt = Extension>>; 57 | 58 | /// Main endpoint. 59 | async fn check( 60 | Extension(checkers): CheckersExt, 61 | Extension(args): Extension>, 62 | Form(request): Form, 63 | ) -> Result, Error> { 64 | let start = std::time::Instant::now(); 65 | info!("Received query"); 66 | debug!("Query {:#?}", request); 67 | let checkers = checkers.read_owned().await; 68 | if request.language() != checkers.language { 69 | return Err(Error::UnsupportedLanguage { 70 | request: request.language().to_string(), 71 | supports: checkers.language.to_string(), 72 | }); 73 | } 74 | let annotations = request.annotations().map_err(Error::MissingAnnotations)?; 75 | let text_length = annotations.text_len(); 76 | if text_length > args.max_query_size { 77 | return Err(Error::QueryTooLarge(text_length, args.max_query_size)); 78 | } 79 | 80 | // Process in a task 81 | let resp: api::Response = tokio::task::spawn_blocking(move || api::Response { 82 | matches: checkers.suggest(&annotations), 83 | language: checkers.language.clone().into(), 84 | }) 85 | .await 86 | .unwrap(); 87 | 88 | let elapsed_ms = start.elapsed().as_millis(); 89 | info!( 90 | "Served query with {} chars in {} ms ({:.1} chars/s) with {} suggestions", 91 | text_length, 92 | elapsed_ms, 93 | text_length as f32 / (elapsed_ms as f32 / 1000.0), 94 | resp.matches.len() 95 | ); 96 | Ok(resp.into()) 97 | } 98 | 99 | #[tokio::main] 100 | async fn main() -> anyhow::Result<()> { 101 | if let Err(err) = main_impl().await { 102 | error!("{}", err); 103 | std::process::exit(1); 104 | } 105 | Ok(()) 106 | } 107 | 108 | async fn main_impl() -> anyhow::Result<()> { 109 | let args = Flags::parse(); 110 | 111 | env_logger::Builder::from_env(env_logger::Env::default().default_filter_or(if args.debug { 112 | "debug" 113 | } else { 114 | "info" 115 | })) 116 | .filter_module("nlprule", LevelFilter::Error) 117 | .init(); 118 | 119 | // Setup checkers 120 | let start = std::time::Instant::now(); 121 | info!("Initializing, version {}...", env!("CARGO_PKG_VERSION")); 122 | let mut checkers = if let Some(archive) = &args.archive { 123 | Checkers::from_archive(archive)? 124 | } else { 125 | Checkers::from_archive_bytes(include_bytes!("../en_US.tar.gz"))? 126 | }; 127 | 128 | // Add dictionary 129 | checkers.add_dictionary(Path::new(&args.dictionary))?; 130 | 131 | info!( 132 | "Done initializing {} checkers in {:?}", 133 | checkers.language, 134 | start.elapsed() 135 | ); 136 | let checkers = Arc::new(RwLock::new(checkers)); 137 | 138 | // Dictionary reloading task 139 | let checkers2 = checkers.clone(); 140 | let dictionary = PathBuf::from(&args.dictionary); 141 | let (tx, rx) = std::sync::mpsc::channel(); 142 | let mut debouncer = 143 | notify_debouncer_mini::new_debouncer(std::time::Duration::from_millis(500), tx)?; 144 | debouncer.watcher().watch( 145 | &dictionary, 146 | notify_debouncer_mini::notify::RecursiveMode::NonRecursive, 147 | )?; 148 | tokio::task::spawn(async move { 149 | loop { 150 | rx.recv().unwrap().unwrap(); 151 | info!("Reloading dictionary (file changed on disk)"); 152 | let mut checkers = checkers2.write().await; 153 | checkers.clear_dictionary(); 154 | if let Err(e) = checkers.add_dictionary(&dictionary) { 155 | error!("Failed reloading dictionary: {}", e); 156 | } 157 | } 158 | }); 159 | 160 | // Setup Axum 161 | let addr = std::net::SocketAddr::new( 162 | std::net::IpAddr::V4(std::net::Ipv4Addr::new(0, 0, 0, 0)), 163 | args.port, 164 | ); 165 | let app = axum::Router::new() 166 | .route("/check", axum::routing::post(check)) 167 | .route("/v2/check", axum::routing::post(check)) 168 | .layer(tower_http::cors::CorsLayer::new().allow_origin(tower_http::cors::Any)) 169 | .layer(axum::extract::Extension(checkers)) 170 | .layer(axum::extract::Extension(Arc::new(args))); 171 | info!("Serving on http://{}", addr); 172 | let listener = tokio::net::TcpListener::bind(addr).await?; 173 | axum::serve(listener, app.into_make_service()).await?; 174 | 175 | Ok(()) 176 | } 177 | -------------------------------------------------------------------------------- /src/api.rs: -------------------------------------------------------------------------------- 1 | /// Languagetool HTTP API 2 | /// Inspired from https://languagetool.org/http-api/, which however doesn't seem to match exactly 3 | /// what the server returns. 4 | use anyhow::Context; 5 | use serde::{Deserialize, Serialize}; 6 | 7 | #[derive(Serialize, Deserialize, Debug, Clone)] 8 | pub struct Language { 9 | name: String, 10 | code: String, 11 | } 12 | impl Language { 13 | pub fn from_code(code: &str) -> Self { 14 | Self { 15 | code: code.replace('_', "-"), 16 | name: "".into(), 17 | } 18 | } 19 | } 20 | impl std::fmt::Display for Language { 21 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { 22 | write!(f, "{}", self.code) 23 | } 24 | } 25 | 26 | impl PartialEq for Language { 27 | fn eq(&self, other: &Self) -> bool { 28 | self.code.to_lowercase() == other.code.to_lowercase() 29 | } 30 | } 31 | 32 | impl Default for Language { 33 | fn default() -> Self { 34 | Self { 35 | name: "English".into(), 36 | code: "en-US".into(), 37 | } 38 | } 39 | } 40 | 41 | #[cfg(test)] 42 | mod test { 43 | use super::*; 44 | #[test] 45 | fn language() { 46 | let l = Language::from_code("EN_US"); 47 | assert_eq!(l, Language::default()); 48 | } 49 | } 50 | 51 | #[derive(Debug, Deserialize)] 52 | #[serde(untagged)] 53 | #[serde(rename_all = "camelCase")] 54 | pub enum AnnotationElement { 55 | Text { 56 | text: String, 57 | }, 58 | Markup { 59 | markup: String, 60 | // Interpret the markup as this string for analysis. 61 | // E.g. "\n\n" when `markup` is `

` 62 | interpret_as: Option, 63 | }, 64 | } 65 | 66 | impl AnnotationElement { 67 | pub fn text(&self) -> &str { 68 | match self { 69 | AnnotationElement::Text { text } => text, 70 | // All whitespace markup should really be handled as what it is to preserve context... 71 | AnnotationElement::Markup { markup, .. } 72 | if !markup.is_empty() && markup.trim().is_empty() => 73 | { 74 | markup 75 | } 76 | AnnotationElement::Markup { interpret_as, .. } => interpret_as.as_deref().unwrap_or(""), 77 | } 78 | } 79 | } 80 | 81 | #[derive(Debug, Deserialize)] 82 | pub struct Annotations { 83 | pub annotation: Vec, 84 | } 85 | 86 | #[derive(Debug, Deserialize)] 87 | #[serde(untagged)] 88 | pub enum Data { 89 | Text { text: String }, 90 | Annotations(Annotations), 91 | } 92 | 93 | impl Annotations { 94 | /// Obtains the text behind the annotations, removing markup 95 | pub fn text(&self) -> String { 96 | self.annotation 97 | .iter() 98 | .map(|v| v.text().to_owned()) 99 | .reduce(|mut acc, v| { 100 | acc.push_str(&v); 101 | acc 102 | }) 103 | .unwrap_or_default() 104 | } 105 | 106 | /// Obtains the length of the text contained in the annotations 107 | pub fn text_len(&self) -> usize { 108 | self.annotation 109 | .iter() 110 | .map(|v| match v { 111 | AnnotationElement::Text { text } => text.len(), 112 | // All whitespace markup should really be handled as what it is to preserve context... 113 | AnnotationElement::Markup { markup, .. } 114 | if !markup.is_empty() && markup.trim().is_empty() => 115 | { 116 | markup.len() 117 | } 118 | AnnotationElement::Markup { interpret_as, .. } => { 119 | interpret_as.as_deref().unwrap_or("").len() 120 | } 121 | }) 122 | .sum() 123 | } 124 | 125 | /// Translate a textual span into the span of the text containing markup 126 | pub fn translate_span(&self, start: usize, end: usize) -> (usize, usize) { 127 | let mut text_offset = 0; 128 | let mut markup_offset = 0; 129 | 130 | let mut mapped_start: Option = None; 131 | let mut mapped_end: Option = None; 132 | 133 | for annotation in &self.annotation { 134 | let (fragment_text_len, fragment_markup_len) = match annotation { 135 | AnnotationElement::Text { text } => (text.len(), text.len()), 136 | AnnotationElement::Markup { markup, .. } 137 | if !markup.is_empty() && markup.trim().is_empty() => 138 | { 139 | (markup.len(), markup.len()) 140 | } 141 | AnnotationElement::Markup { 142 | markup, 143 | interpret_as, 144 | } => (interpret_as.as_deref().unwrap_or("").len(), markup.len()), 145 | }; 146 | 147 | let try_set_if_none = |mapped: &mut Option, original: usize| { 148 | if mapped.is_none() 149 | && (original >= text_offset) 150 | && (original < text_offset + fragment_text_len) 151 | { 152 | *mapped = Some(markup_offset + (original - text_offset)); 153 | } 154 | }; 155 | try_set_if_none(&mut mapped_start, start); 156 | try_set_if_none(&mut mapped_end, end); 157 | 158 | text_offset += fragment_text_len; 159 | markup_offset += fragment_markup_len; 160 | } 161 | ( 162 | mapped_start.unwrap_or(0), 163 | mapped_end.unwrap_or(markup_offset), 164 | ) 165 | } 166 | } 167 | 168 | /// API request. Either text or data need to be provided 169 | #[derive(Debug, Serialize, Deserialize)] 170 | pub struct Request { 171 | text: Option, 172 | data: Option, 173 | language: String, 174 | } 175 | 176 | impl Request { 177 | pub fn new>(text: String, language: S) -> Self { 178 | Self { 179 | text: Some(text), 180 | data: None, 181 | language: language.into(), 182 | } 183 | } 184 | pub fn language(&self) -> Language { 185 | if self.language == "auto" { 186 | return Default::default(); 187 | } 188 | Language { 189 | code: self.language.clone(), 190 | name: "".into(), 191 | } 192 | } 193 | 194 | pub fn annotations(&self) -> anyhow::Result { 195 | if let Some(text) = &self.text { 196 | Ok(Annotations { 197 | annotation: vec![AnnotationElement::Text { 198 | text: text.to_string(), 199 | }], 200 | }) 201 | } else if let Some(data) = &self.data { 202 | let data: Data = serde_json::from_str(data) 203 | .with_context(|| format!("Unexpected json contents in `data`: {:?}", data))?; 204 | 205 | Ok(match data { 206 | Data::Annotations(annotations) => annotations, 207 | Data::Text { text } => Annotations { 208 | annotation: vec![AnnotationElement::Text { text }], 209 | }, 210 | }) 211 | } else { 212 | Err(anyhow::anyhow!("Neither `text` nor `data` are valid")) 213 | } 214 | } 215 | } 216 | #[derive(Serialize, Deserialize, Debug)] 217 | pub struct Response { 218 | pub matches: Vec, 219 | pub language: LanguageResponse, 220 | } 221 | #[derive(Serialize, Deserialize, Debug)] 222 | #[serde(rename_all = "camelCase")] 223 | pub struct LanguageResponse { 224 | #[serde(flatten)] 225 | language: Language, 226 | detected_language: Language, 227 | } 228 | impl From for LanguageResponse { 229 | fn from(source: Language) -> Self { 230 | Self { 231 | language: source.clone(), 232 | detected_language: source, 233 | } 234 | } 235 | } 236 | 237 | #[derive(Serialize, Deserialize, Default, PartialEq, Debug)] 238 | #[serde(rename_all = "camelCase")] 239 | pub struct MatchType { 240 | pub type_name: String, 241 | } 242 | 243 | #[derive(Serialize, Deserialize, Default, PartialEq, Debug)] 244 | #[serde(rename_all = "camelCase")] 245 | pub struct RuleCategory { 246 | id: String, 247 | name: String, 248 | } 249 | #[derive(Serialize, Deserialize, Default, PartialEq, Debug)] 250 | #[serde(rename_all = "camelCase")] 251 | pub struct Rule { 252 | pub id: String, 253 | sub_id: usize, 254 | description: String, 255 | issue_type: String, 256 | urls: Option>, 257 | category: RuleCategory, 258 | is_premium: bool, 259 | } 260 | impl Rule { 261 | pub fn is_spelling(&self) -> bool { 262 | self.id == "MORFOLOGIK_RULE" 263 | } 264 | pub fn spelling() -> Self { 265 | Self { 266 | // This will get rendered by the browser extension as a spelling error 267 | id: "MORFOLOGIK_RULE".into(), 268 | ..Default::default() 269 | } 270 | } 271 | pub fn style() -> Self { 272 | Self { 273 | // This will get rendered by the browser extension as a style hint 274 | issue_type: "style".into(), 275 | ..Default::default() 276 | } 277 | } 278 | pub fn duplication() -> Self { 279 | Self { 280 | issue_type: "duplication".into(), 281 | ..Default::default() 282 | } 283 | } 284 | 285 | pub fn from_id(id: String) -> Self { 286 | Self { 287 | id, 288 | ..Default::default() 289 | } 290 | } 291 | } 292 | 293 | #[derive(Serialize, Deserialize, Default, PartialEq, Debug)] 294 | #[serde(rename_all = "camelCase")] 295 | pub struct Replacement { 296 | pub value: String, 297 | short_description: Option, 298 | } 299 | impl From<&nlprule::types::Token<'_>> for Replacement { 300 | fn from(token: &nlprule::types::Token) -> Self { 301 | Self { 302 | value: token.word().as_str().to_string(), 303 | short_description: None, 304 | } 305 | } 306 | } 307 | impl From for Replacement { 308 | fn from(value: String) -> Self { 309 | Self { 310 | value, 311 | short_description: None, 312 | } 313 | } 314 | } 315 | 316 | #[derive(Serialize, Deserialize, Default, PartialEq, Debug)] 317 | #[serde(rename_all = "camelCase")] 318 | pub struct Match { 319 | pub message: String, 320 | pub short_message: String, 321 | pub offset: usize, 322 | pub length: usize, 323 | pub replacements: Vec, 324 | pub sentence: String, 325 | pub context_for_sure_match: usize, 326 | pub ignore_for_incomplete_sentence: bool, 327 | pub r#type: MatchType, 328 | pub rule: Rule, 329 | } 330 | 331 | impl Match { 332 | /// Remove likely false positives 333 | pub fn filter(&self) -> bool { 334 | let rule = &self.rule.id; 335 | [ 336 | "TYPOGRAPHY/EN_QUOTES", 337 | // This triggers on lists 338 | "PUNCTUATION/DASH_RULE", 339 | ] 340 | .iter() 341 | .all(|r| !rule.starts_with(r)) 342 | } 343 | } 344 | -------------------------------------------------------------------------------- /src/checkers.rs: -------------------------------------------------------------------------------- 1 | use std::collections::HashSet; 2 | /// LanguageTool rules (using [`nlprule`]) and spell checking (using [`symspell`]) 3 | use std::fmt::Write; 4 | use std::path::Path; 5 | 6 | use anyhow::Context; 7 | use bincode::Options; 8 | use log::*; 9 | use serde::{Deserialize, Serialize}; 10 | 11 | use crate::api; 12 | 13 | /// Maximum edit distance for Symspell lookups 14 | const MAX_EDIT_DISTANCE: usize = 3; 15 | 16 | /// Convert an nlprule suggestion to an [`api::Match`] 17 | fn suggestion_to_match( 18 | source: nlprule::types::Suggestion, 19 | annotation: &api::Annotations, 20 | ) -> api::Match { 21 | debug!("Grammar: {:#?}", source); 22 | 23 | let (start, end) = 24 | annotation.translate_span(source.span().start().char, source.span().end().char); 25 | 26 | api::Match { 27 | message: source.message().into(), 28 | replacements: source 29 | .replacements() 30 | .iter() 31 | .map(|r| r.clone().into()) 32 | .collect(), 33 | offset: start, 34 | length: end - start, 35 | rule: api::Rule::from_id(source.source().into()), 36 | ..Default::default() 37 | } 38 | } 39 | 40 | #[derive(Serialize, Deserialize)] 41 | pub struct Checkers { 42 | tokenizer: nlprule::Tokenizer, 43 | rules: nlprule::Rules, 44 | spelling: symspell::SymSpell, 45 | custom_dictionary: HashSet, 46 | pub language: api::Language, 47 | } 48 | impl Checkers { 49 | /// Initialize from a tar.gz archive containing a {language_code}/ folder with: 50 | /// 51 | /// - [`nlprule`] data: rules.bin, tokenizer.bin 52 | /// - Dictionary for [`symspell`]: frequency_dict.txt 53 | pub fn from_archive(archive: &Path) -> anyhow::Result { 54 | Self::from_archive_bytes(&std::fs::read(archive)?) 55 | } 56 | /// Initialize from a folder containing the files documented in [`Checkers::from_archive`]. 57 | pub fn from_folder(folder: &Path, language: api::Language) -> anyhow::Result { 58 | let rules = folder.join("rules.bin"); 59 | let tokenizer = folder.join("tokenizer.bin"); 60 | let dictionary = folder.join("frequency_dict.txt"); 61 | for f in [&rules, &tokenizer, &dictionary] { 62 | anyhow::ensure!(f.exists(), "{:?} not found", f.file_name().unwrap()); 63 | } 64 | let mut spelling = symspell::SymSpellBuilder::::default() 65 | .max_dictionary_edit_distance(MAX_EDIT_DISTANCE as i64) 66 | .build()?; 67 | spelling.load_dictionary(dictionary.to_str().unwrap(), 0, 1, " "); 68 | Ok(Self { 69 | tokenizer: nlprule::Tokenizer::new(tokenizer)?, 70 | rules: nlprule::Rules::new(rules)?, 71 | custom_dictionary: Default::default(), 72 | spelling, 73 | language, 74 | }) 75 | } 76 | pub fn clear_dictionary(&mut self) { 77 | debug!("Clearing custom dictionary"); 78 | self.custom_dictionary.clear(); 79 | } 80 | /// Add a custom dictionary (one word per line) 81 | pub fn add_dictionary(&mut self, filename: impl AsRef) -> anyhow::Result<()> { 82 | let filename = filename.as_ref(); 83 | std::fs::create_dir_all( 84 | filename 85 | .parent() 86 | .context("Invalid dictionary path (should be a filename)")?, 87 | )?; 88 | if !filename.is_file() { 89 | std::fs::write(filename, "") 90 | .with_context(|| format!("Failed to initialize dictionary at {:?}", filename))?; 91 | } else { 92 | self.custom_dictionary.extend( 93 | std::fs::read_to_string(filename)? 94 | .lines() 95 | .flat_map(|l| l.split_ascii_whitespace()) 96 | .map(str::to_ascii_lowercase), 97 | ); 98 | } 99 | info!( 100 | "Added dictionary {:?}, currently {} custom words", 101 | filename, 102 | self.custom_dictionary.len() 103 | ); 104 | Ok(()) 105 | } 106 | fn from_archive_bytes_impl(archive: &[u8]) -> anyhow::Result { 107 | info!("Subsequent initializations will be significantly faster."); 108 | // Unpack 109 | let archive = flate2::read::GzDecoder::new(archive); 110 | let mut archive = tar::Archive::new(archive); 111 | let tempdir = tempfile::tempdir()?; 112 | archive.unpack(tempdir.path())?; 113 | 114 | let language_ident = regex::Regex::new(r"^[a-z]+_[A-Z]+$").unwrap(); 115 | let folders: Vec<_> = std::fs::read_dir(tempdir.path())? 116 | .filter_map(|e| e.ok()) 117 | .filter(|e| e.file_type().map_or(false, |t| t.is_dir())) 118 | .filter(|e| { 119 | e.file_name() 120 | .to_str() 121 | .map_or(false, |filename| language_ident.is_match(filename)) 122 | }) 123 | .collect(); 124 | let folder = match folders.first() { 125 | None => { 126 | anyhow::bail!("Found no language folders"); 127 | } 128 | Some(_) if folders.len() > 1 => { 129 | anyhow::bail!("Found more than one language folder: {:?}", folders); 130 | } 131 | Some(f) => f.path(), 132 | }; 133 | let language = api::Language::from_code(folder.file_name().unwrap().to_str().unwrap()); 134 | Self::from_folder(&folder, language) 135 | } 136 | /// Initialize from tar.gz archive bytes with caching. 137 | pub fn from_archive_bytes(archive: &[u8]) -> anyhow::Result { 138 | // Try to read from cache 139 | let hash = blake3::hash(archive).to_hex(); 140 | let cache = dirs::cache_dir() 141 | .ok_or_else(|| anyhow::anyhow!("Failed to create cache directory."))? 142 | .join(env!("CARGO_PKG_NAME")); 143 | std::fs::create_dir_all(&cache)?; 144 | let cache = cache.join(hash.as_str()); 145 | info!("Data path is {:?}", cache); 146 | 147 | if cache.exists() { 148 | debug!("Reading from cache at {}", cache.display()); 149 | match bincode::DefaultOptions::new() 150 | .with_fixint_encoding() 151 | .allow_trailing_bytes() 152 | .with_limit(200_000_000) 153 | .deserialize_from(std::io::BufReader::new(std::fs::File::open(&cache)?)) 154 | { 155 | Ok(x) => { 156 | return Ok(x); 157 | } 158 | Err(e) => { 159 | warn!( 160 | "Reading from cache at {} failed ({}), opening again", 161 | cache.display(), 162 | e 163 | ); 164 | } 165 | } 166 | } 167 | // Cache did not exist or failed parsing 168 | let out = Self::from_archive_bytes_impl(archive)?; 169 | debug!("Saving to cache"); 170 | bincode::serialize_into( 171 | std::io::BufWriter::new(std::fs::File::create(&cache)?), 172 | &out, 173 | )?; 174 | debug!("Saved to cache at {}", cache.display()); 175 | Ok(out) 176 | } 177 | /// Compute suggestions on a text 178 | pub fn suggest(&self, annotations: &api::Annotations) -> Vec { 179 | let mut suggestions = Vec::new(); 180 | 181 | let text = annotations.text(); 182 | for sentence in self.tokenizer.pipe(&text) { 183 | debug!("Processing sentence {:#?}", sentence); 184 | 185 | // Grammar suggestions from nlprule 186 | suggestions.extend( 187 | self.rules 188 | .apply(&sentence) 189 | .into_iter() 190 | .map(|s| suggestion_to_match(s, annotations)) 191 | .filter(api::Match::filter), 192 | ); 193 | // Spelling and repetitions, processing the sentence token by token. 194 | let tokens = sentence.tokens(); 195 | for (i, token) in tokens.iter().enumerate() { 196 | let word = token.word(); 197 | let word_str = unidecode::unidecode(word.as_str()); 198 | 199 | let next_token = tokens.get(i + 1); 200 | if !word_str.chars().all(char::is_alphabetic) { 201 | continue; 202 | } 203 | 204 | // Repetitions 205 | if let Some((start, end)) = 206 | next_token.filter(|t| t.word() == token.word()).map(|t| { 207 | annotations.translate_span(token.span().start().char, t.span().end().char) 208 | }) 209 | { 210 | suggestions.push(api::Match { 211 | rule: api::Rule::duplication(), 212 | message: "Possible typo: you repeated a word".into(), 213 | replacements: vec![token.into()], 214 | offset: start, 215 | length: end - start, 216 | ..Default::default() 217 | }) 218 | } 219 | 220 | let word_str_lowercase = word_str.to_lowercase(); 221 | // Spelling 222 | if !(self.custom_dictionary.contains(&word_str_lowercase) 223 | || self.custom_dictionary.contains(word_str_lowercase.trim_end_matches('s')) 224 | ) 225 | // Skip short words 226 | && word_str.chars().count() >= 3 227 | // Skips all-caps words that are likely acronyms 228 | && !word_str.chars().all(|x| x.is_uppercase()) 229 | // Skip if next character is an apostrophe (contraction/possession) for now 230 | && next_token 231 | .map_or(true, |c| c.word().as_str() != "'" && c.word().as_str() != "’") 232 | { 233 | let mut results = self.spelling.lookup( 234 | &word_str_lowercase, 235 | symspell::Verbosity::Closest, 236 | MAX_EDIT_DISTANCE as i64, 237 | ); 238 | if results.len() == 1 && results[0].distance == 0 { 239 | // Exists in dictionary 240 | continue; 241 | } 242 | // Take 5 best results 243 | results.reverse(); 244 | results.truncate(5); 245 | debug!("Spelling: '{}' -> {:?}", word_str, results); 246 | let mut message = "Possible spelling mistake.".to_string(); 247 | if let Some(result) = results.first() { 248 | write!(message, " Did you mean '{}'?", result.term).unwrap(); 249 | } 250 | // TODO: Restore case 251 | let (start, end) = annotations 252 | .translate_span(token.span().start().char, token.span().end().char); 253 | suggestions.push(api::Match { 254 | message, 255 | rule: api::Rule::spelling(), 256 | replacements: results 257 | .into_iter() 258 | .map(|result| result.term.into()) 259 | .collect(), 260 | offset: start, 261 | length: end - start, 262 | ..Default::default() 263 | }); 264 | } 265 | } 266 | } 267 | debug!("{:#?}", suggestions); 268 | suggestions 269 | } 270 | } 271 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![ltapiserv-rs](doc/logo.webp) 2 | 3 | This provides a **lightweight alternative backend implementation** of the LanguageTool API for **offline grammar and spell checking**, based on: 4 | 5 | - [nlprule](https://github.com/bminixhofer/nlprule) for grammar and style checking, using the [LanguageTool rules](https://github.com/languagetool-org/languagetool). 6 | - [symspell](https://github.com/reneklacan/symspell) for spell-checking. 7 | 8 | A simple command-line client, `ltapi-client`, is also provided, displaying results graphically with [miette](https://docs.rs/miette/latest/miette/). 9 | 10 | ## Quick start 11 | 12 | 1. [Install the server](#installation), which is a single binary with no dependencies, which can be run as a systemd service. Debian/Ubuntu and Arch packages are provided. Alternatively, a Docker image is available. 13 | 2. [Configure your client](#usage-clients) (browser, editor, `ltapi-client`, ...) to use the local server. 14 | 15 | ## Screenshots 16 | 17 | ![Illustration](doc/illustration.png) \ 18 | _Using the `ltapiserv-rs` server with the official LanguageTool browser extension._ 19 | 20 | ![Command line interface](doc/client.png) 21 | _Output from the client CLI_ 22 | 23 | ## Background 24 | 25 | ## LanguageTool 26 | 27 | [LanguageTool](https://languagetool.org/) is an open-source alternative to [Grammarly](https://www.grammarly.com/) for natural language linting (spelling, grammar, style), with a [large set of rules](https://community.languagetool.org/). Multiple clients exist for its API, bringing functionalities to [Firefox](https://addons.mozilla.org/firefox/addon/languagetool/), [Chrome](https://chrome.google.com/webstore/detail/grammar-and-spell-checker/oldceeleldhonbafppcapldpdifcinji?utm_source=lt-homepage&utm_medium=referral), [LibreOffice](https://languagetool.org/libre-office), [Thunderbird](https://languagetool.org/thunderbird), [emacs](https://github.com/emacs-languagetool/flycheck-languagetool), and many more. 28 | 29 | ### Self-hosting LanguageTool 30 | 31 | While most users access LanguageTool through the official hosted server (with a free or paid plan), the Java API server can be [hosted locally](https://dev.languagetool.org/http-server), which can be particularly desirable for privacy reasons (e.g. when editing confidential documents). 32 | 33 | Even though the browser extensions are unfortunately [closed-source](https://forum.languagetool.org/t/license-and-source-code-for-firefox-add-on/3851), they still allow custom servers to be specified. 34 | 35 | ### Lightweight LanguageTool API server 36 | 37 | [Benjamin Minixhofer](https://bmin.ai/) wrote a Rust crate, [`nlprule`](https://github.com/bminixhofer/nlprule), that is able to parse and then apply LanguageTool rules noticeably faster than the original Java implementation (see [this benchmark](https://github.com/bminixhofer/nlprule)). More complex rules written in Java are not supported and spellchecking is not implemented, but nevertheless roughly 85% of the LanguageTool grammar rules (as of 2021) are available. 38 | 39 | Using `nlprule` and [`symspell`](https://crates.io/crates/symspell) (for spell-checking), we can implement a simple LanguageTool API server in Rust that can then be called from a variety of contexts using LanguageTool clients. 40 | 41 | The code and binaries can be found on . 42 | See the `README` there for the configuration as a `systemd` service as well as the setup of the clients. 43 | 44 | ### Comparison with the Java server 45 | 46 | Running [H.G. Wells' War of the Worlds](https://en.wikipedia.org/wiki/The_War_of_the_Worlds) (~6k lines and 62k words) through the two servers, using [hyperfine](https://github.com/sharkdp/hyperfine) and [httpie](https://httpie.io/docs/cli), we get: 47 | 48 | ```console 49 | $ docker pull erikvl87/languagetool 50 | $ docker run --rm -p 8010:8010 erikvl87/languagetool 51 | http://localhost:{port}/v2/check language=en-us text=@wells.txt' 52 | $ for port in 8875 8010; do http --form POST http://localhost:$port/v2/check \ 53 | language=en-us text=@wells.txt | jq ".matches|length"; done 54 | 1490 55 | 1045 56 | $ hyperfine -L port 8875,8010 --runs 10 'http --ignore-stdin --meta --form POST \ 57 | http://localhost:{port}/v2/check language=en-us text=@wells.txt' 58 | ``` 59 | 60 | The additional false positives in `ltapiserv-rs` seem to come mostly from the spell-checking. 61 | 62 | | Command | Mean [s] | Min [s] | Max [s] | Relative | 63 | | :------------- | -------------: | ------: | ------: | ----------: | 64 | | `ltapiserv-rs` | 16.002 ± 0.629 | 15.566 | 17.745 | 1.00 | 65 | | `java` | 30.594 ± 2.372 | 29.569 | 37.296 | 1.91 ± 0.17 | 66 | 67 | With only a paragraph (to simulate something close to the normal use of LanguageTool, say in emails): 68 | 69 | | Command | Mean [ms] | Min [ms] | Max [ms] | Relative | 70 | | :------------- | ----------: | -------: | -------: | -------: | 71 | | `ltapiserv-rs` | 379.7 ± 9.3 | 362.6 | 393.4 | 1.00 | 72 | 73 | ## Installation 74 | 75 | Any of the following methods will make a server available at http://localhost:8875 76 | 77 | By default, the custom dictionary is located in `~/.local/share/ltapiserv-rs/dictionary.txt`. A different path can be passed via the `--dictionary` option. The contents are automatically reloaded on file change. 78 | 79 | ### Docker 80 | 81 | ```console 82 | $ docker run -d --name ltapiserv-rs -p 8875:8875 -v ~/.local/share/ltapiserv-rs:/data ghcr.io/cpg314/ltapiserv-rs:0.2.2 83 | $ docker logs -f ltapiserv-rs 84 | ``` 85 | 86 | ### Debian/Ubuntu and Arch packages 87 | 88 | Packages are available from the [releases page](https://github.com/cpg314/ltapiserv-rs/releases), containing the server and `ltapi-client`. They will install a `systemd` service definition in `/usr/lib/systemd/user/ltapiserv-rs.service`, which can be enabled with: 89 | 90 | ```console 91 | $ systemctl --user enable --now ltapiserv-rs 92 | $ # Check status 93 | $ systemctl --user status ltapiserv-rs 94 | $ # Check logs 95 | $ journalctl --user -u ltapiserv-rs -f 96 | $ # After updating: 97 | $ systemctl --user restart ltapiserv-rs 98 | ``` 99 | 100 | ### tar.gz archive 101 | 102 | For other distributions, standalone binaries are also available from the [releases page](https://github.com/cpg314/ltapiserv-rs/releases). 103 | 104 | ```console 105 | $ sudo cp ltapiserv-rs /usr/local/bin 106 | $ sudo chmod +x /usr/local/bin/ltapiserv-rs 107 | $ ln -s $(pwd)/ltapiserv-rs.service ~/.config/systemd/user/ltapiserv-rs.service 108 | $ systemctl --user daemon-reload && systemctl --user enable --now ltapiserv-rs 109 | $ systemctl --user status ltapiserv-rs 110 | $ # After updating: 111 | $ systemctl --user restart ltapiserv-rs 112 | ``` 113 | 114 | See the above remark about the custom dictionary. 115 | 116 | ## Usage / clients 117 | 118 | The following clients have been tested. The server should be compatible with others, but there might be idiosyncrasies; don't hesitate to send a PR. 119 | 120 | ### Browser extensions 121 | 122 | Install the official LanguageTool browser extension (e.g. for [Chrome](https://languagetool.org/chrome) or [Firefox](https://languagetool.org/firefox)) and configure it to use your local server: 123 | 124 | ![Chrome extension settings](doc/chrome_ext.png) 125 | 126 | ### Command line client 127 | 128 | A command line client, `ltapi-client`, is also included in this project. 129 | 130 | ``` 131 | Run text through a LanguageTool server and display the results 132 | 133 | Usage: ltapi-client [OPTIONS] --server [FILENAME] 134 | 135 | Arguments: 136 | [FILENAME] Filename; if not provided, will read from stdin 137 | 138 | Options: 139 | -l, --language [default: en-US] 140 | -s, --server Server base URL [env: LTAPI_SERVER=http://localhost:8875] 141 | --json JSON output 142 | --suggestions Number of suggestions to display [default: 3] 143 | --pandoc Convert to plaintext with pandoc, removing code blocks. Line numbers are not preserved. 144 | -h, --help Print help 145 | ``` 146 | 147 | - The return code will be `1` if any error is detected. The server address can be configured through the `LTAPI_SERVER` environment variable. 148 | - If `pandoc` is installed, the client can use it to convert input files into plain text. 149 | 150 | The client uses [miette](https://docs.rs/miette/latest/miette/index.html) to get a nice graphical reporting of the errors: 151 | 152 | ![Command line interface](doc/client.png) 153 | 154 | #### Example usage 155 | 156 | ```console 157 | $ export LTAPI_SERVER=http://localhost:8875 158 | $ cat text.txt | ltapi-client 159 | $ ltapi-client test.txt 160 | $ ltapi-client --pandoc test.md 161 | ``` 162 | 163 | ### flycheck-languagetool (emacs) 164 | 165 | See 166 | 167 | ```emacs-lisp 168 | (use-package flycheck-languagetool 169 | :ensure t 170 | :hook ((text-mode gfm-mode markdown-mode) . flycheck-languagetool-setup) 171 | :init 172 | (setq flycheck-languagetool-url "http://127.0.0.1:8875") 173 | :custom 174 | (flycheck-languagetool-active-modes '(text-mode gfm-mode markdown-mode)) 175 | ) 176 | ``` 177 | 178 | ### ltex-ls (language server protocol for markup) 179 | 180 | See . 181 | 182 | This currently requires [this patch](https://github.com/valentjn/ltex-ls/pull/276) to send the proper content type in the requests (this also could be done in `ltapiserv-rs` with an axum middleware to edit the content type). 183 | 184 | Use the `ltex.languageToolHttpServerUri` variable to set the URL, e.g. with [lsp-ltex](https://github.com/emacs-languagetool/lsp-ltex) in emacs: 185 | 186 | ```emacs-lisp 187 | (use-package lsp-ltex 188 | :ensure t 189 | :hook (text-mode . (lambda () 190 | (require 'lsp-ltex) 191 | (lsp))) ; or lsp-deferred 192 | :init 193 | (setq lsp-ltex-version "16.0.0" 194 | lsp-ltex-languagetool-http-server-uri "http://localhost:8875" 195 | ) 196 | ) 197 | ``` 198 | 199 | ### Tools based on `languagetools-rust` 200 | 201 | Unfortunately, tools such as [cargo-languagetool](https://github.com/rnbguy/cargo-languagetool/) and [languagetool-code-comments](https://github.com/dustinblackman/languagetool-code-comments), based on the [languagetool-rust](https://github.com/jeertmans/languagetool-rust) client, are for now not compatible with this server. There are two reasons: 202 | 203 | - The queries are sent as URL parameters rather than as form data. Even though the former matches the [API specifications](https://languagetool.org/http-api/swagger-ui/#!/default/post_check), the latter is also supported by the official server. 204 | - The client expect all fields to be contained in the response, while we only send a subset. 205 | 206 | The solution to the first issue is simple (support query parameters depending on the `Content-Type` header and/or request contents). For the second, one should either expand the messages defined here, or replace them by the `languagetools-rust` ones (which might cause serialization issues in the `form-data` path), or add conversions. 207 | 208 | ## Implementation details 209 | 210 | ### API endpoint 211 | 212 | The LanguageTool API is documented [here](https://languagetool.org/http-api/swagger-ui/#!/default/post_check). It suffices to implement the HTTP POST `/v2/check` endpoint that processes 213 | 214 | ```rust 215 | pub struct Request { 216 | text: Option, 217 | data: Option, 218 | language: String, 219 | } 220 | ``` 221 | 222 | and returns 223 | 224 | ```rust 225 | pub struct Response { 226 | pub matches: Vec, 227 | pub language: LanguageResponse, 228 | } 229 | pub struct Match { 230 | pub message: String, 231 | pub short_message: String, 232 | pub offset: usize, 233 | pub length: usize, 234 | pub replacements: Vec, 235 | pub sentence: String, 236 | pub context_for_sure_match: usize, 237 | pub ignore_for_incomplete_sentence: bool, 238 | pub r#type: MatchType, 239 | pub rule: Rule, 240 | } 241 | 242 | ``` 243 | 244 | The most important fields in `Response` are `offset`, `length` (defining the span of the suggestion), `message`, `replacements`, and `Rule`. 245 | 246 | There are a couple of small tricks required to get the closed-source browser extensions to behave as expected, e.g. in displaying grammar and spelling errors with the right colours and showing tooltips. 247 | 248 | ![LanguageTool in the browser](doc/screenshot1.png) 249 | 250 | ![LanguageTool in the browser](doc/screenshot2.png) 251 | 252 | ### Grammar, spelling, and repetition checkers 253 | 254 | The main functionality, returning suggestions based on an input text, can be reduced to the following method: 255 | 256 | ```rust 257 | pub fn suggest(&self, text: &str) -> Vec { 258 | let mut suggestions = Vec::new(); 259 | for sentence in self.tokenizer.pipe(text) { 260 | debug!("Processing sentence {:#?}", sentence); 261 | // Grammar suggestions from nlprule 262 | suggestions 263 | .extend(self.rules.apply(&sentence).into_iter().map(Match::from)); 264 | // Spelling and repetitions, processing the sentence token by token. 265 | let tokens = sentence.tokens(); 266 | for (i, token) in tokens.iter().enumerate() { 267 | // ... 268 | } 269 | } 270 | suggestions 271 | } 272 | ``` 273 | 274 | The `Match::from` method performs conversion between an [`nlprule::Suggestion`](https://docs.rs/nlprule/0.6.4/nlprule/types/struct.Suggestion.html) to a `Match`, essentially copying over the span and the message. 275 | 276 | The `nlprule` crate does not yet support [spell checking](https://github.com/bminixhofer/nlprule/issues/2), but we can add a basic version using the [`symspell`](https://crates.io/crates/symspell) crate and leveraging the tokenization we already have from `nlprule`. Similarly, the tokenization allows us to implement a word repetition rule that did not seem present in `nlprule`. 277 | 278 | ## Compile from source 279 | 280 | Binaries can also be built from source as follows: 281 | 282 | ```console 283 | $ cargo make build 284 | ``` 285 | 286 | ## Future work 287 | 288 | - LanguageTool (even the original implementation with all rules) seems to be failing to identify more subtle grammatical errors: 289 | 290 | > "No one would have believed in the last years of the nineteenth century that this world were being watched keenly and closely by intelligences greater than man's" 291 | 292 | > "With infinite complacency men went to and fro over this globe about his little affairs, serene in their assurance of their empire over matter." 293 | 294 | It would be interesting to understand what the state of the art is (under a fast processing constraint). 295 | 296 | - Support more languages. German is already supported in `nlprule`, but adding more languages is actually non-trivial because of language-specific assumptions, see [this issue](https://github.com/bminixhofer/nlprule/issues/46) and [this one](https://github.com/bminixhofer/nlprule/issues/14). 297 | - Support addition and deletion of words to the dictionary. This is pretty simple and corresponds to the `/words/add` and `/words/delete` API endpoints. However, the browser extension seems to store the dictionary locally, unless one logs in to LanguageTool Premium. 298 | - Reduce the number of false positives of the spellchecker. 299 | - Expand tests 300 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /tests/data/alice2.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "message": "Possible spelling mistake. Did you mean 'very'?", 4 | "shortMessage": "", 5 | "offset": 72, 6 | "length": 5, 7 | "replacements": [ 8 | { 9 | "value": "very", 10 | "shortDescription": null 11 | }, 12 | { 13 | "value": "kerry", 14 | "shortDescription": null 15 | }, 16 | { 17 | "value": "terry", 18 | "shortDescription": null 19 | }, 20 | { 21 | "value": "jerry", 22 | "shortDescription": null 23 | }, 24 | { 25 | "value": "perry", 26 | "shortDescription": null 27 | } 28 | ], 29 | "sentence": "", 30 | "contextForSureMatch": 0, 31 | "ignoreForIncompleteSentence": false, 32 | "type": { 33 | "typeName": "" 34 | }, 35 | "rule": { 36 | "id": "MORFOLOGIK_RULE", 37 | "subId": 0, 38 | "description": "", 39 | "issueType": "", 40 | "urls": null, 41 | "category": { 42 | "id": "", 43 | "name": "" 44 | }, 45 | "isPremium": false 46 | } 47 | }, 48 | { 49 | "message": "Interjections are usually punctuated.", 50 | "shortMessage": "", 51 | "offset": 142, 52 | "length": 2, 53 | "replacements": [ 54 | { 55 | "value": "Oh,", 56 | "shortDescription": null 57 | }, 58 | { 59 | "value": "Oh!", 60 | "shortDescription": null 61 | }, 62 | { 63 | "value": "Oh?", 64 | "shortDescription": null 65 | }, 66 | { 67 | "value": "Oh.", 68 | "shortDescription": null 69 | } 70 | ], 71 | "sentence": "", 72 | "contextForSureMatch": 0, 73 | "ignoreForIncompleteSentence": false, 74 | "type": { 75 | "typeName": "" 76 | }, 77 | "rule": { 78 | "id": "PUNCTUATION/INTERJECTIONS_PUNCTUATION/0", 79 | "subId": 0, 80 | "description": "", 81 | "issueType": "", 82 | "urls": null, 83 | "category": { 84 | "id": "", 85 | "name": "" 86 | }, 87 | "isPremium": false 88 | } 89 | }, 90 | { 91 | "message": "Did you mean either?", 92 | "shortMessage": "", 93 | "offset": 521, 94 | "length": 5, 95 | "replacements": [ 96 | { 97 | "value": "either", 98 | "shortDescription": null 99 | } 100 | ], 101 | "sentence": "", 102 | "contextForSureMatch": 0, 103 | "ignoreForIncompleteSentence": false, 104 | "type": { 105 | "typeName": "" 106 | }, 107 | "rule": { 108 | "id": "CONFUSED_WORDS/ETHER_EITHER/0", 109 | "subId": 0, 110 | "description": "", 111 | "issueType": "", 112 | "urls": null, 113 | "category": { 114 | "id": "", 115 | "name": "" 116 | }, 117 | "isPremium": false 118 | } 119 | }, 120 | { 121 | "message": "Possible spelling mistake. Did you mean 'thought'?", 122 | "shortMessage": "", 123 | "offset": 179, 124 | "length": 7, 125 | "replacements": [ 126 | { 127 | "value": "thought", 128 | "shortDescription": null 129 | }, 130 | { 131 | "value": "taught", 132 | "shortDescription": null 133 | } 134 | ], 135 | "sentence": "", 136 | "contextForSureMatch": 0, 137 | "ignoreForIncompleteSentence": false, 138 | "type": { 139 | "typeName": "" 140 | }, 141 | "rule": { 142 | "id": "MORFOLOGIK_RULE", 143 | "subId": 0, 144 | "description": "", 145 | "issueType": "", 146 | "urls": null, 147 | "category": { 148 | "id": "", 149 | "name": "" 150 | }, 151 | "isPremium": false 152 | } 153 | }, 154 | { 155 | "message": "Possible spelling mistake. Did you mean 'occurred'?", 156 | "shortMessage": "", 157 | "offset": 210, 158 | "length": 7, 159 | "replacements": [ 160 | { 161 | "value": "occurred", 162 | "shortDescription": null 163 | } 164 | ], 165 | "sentence": "", 166 | "contextForSureMatch": 0, 167 | "ignoreForIncompleteSentence": false, 168 | "type": { 169 | "typeName": "" 170 | }, 171 | "rule": { 172 | "id": "MORFOLOGIK_RULE", 173 | "subId": 0, 174 | "description": "", 175 | "issueType": "", 176 | "urls": null, 177 | "category": { 178 | "id": "", 179 | "name": "" 180 | }, 181 | "isPremium": false 182 | } 183 | }, 184 | { 185 | "message": "Possible spelling mistake. Did you mean 'wonder'?", 186 | "shortMessage": "", 187 | "offset": 248, 188 | "length": 7, 189 | "replacements": [ 190 | { 191 | "value": "wonder", 192 | "shortDescription": null 193 | }, 194 | { 195 | "value": "wonders", 196 | "shortDescription": null 197 | }, 198 | { 199 | "value": "wondered", 200 | "shortDescription": null 201 | } 202 | ], 203 | "sentence": "", 204 | "contextForSureMatch": 0, 205 | "ignoreForIncompleteSentence": false, 206 | "type": { 207 | "typeName": "" 208 | }, 209 | "rule": { 210 | "id": "MORFOLOGIK_RULE", 211 | "subId": 0, 212 | "description": "", 213 | "issueType": "", 214 | "urls": null, 215 | "category": { 216 | "id": "", 217 | "name": "" 218 | }, 219 | "isPremium": false 220 | } 221 | }, 222 | { 223 | "message": "Possible spelling mistake. Did you mean 'actually'?", 224 | "shortMessage": "", 225 | "offset": 331, 226 | "length": 7, 227 | "replacements": [ 228 | { 229 | "value": "actually", 230 | "shortDescription": null 231 | }, 232 | { 233 | "value": "actual", 234 | "shortDescription": null 235 | }, 236 | { 237 | "value": "actuary", 238 | "shortDescription": null 239 | } 240 | ], 241 | "sentence": "", 242 | "contextForSureMatch": 0, 243 | "ignoreForIncompleteSentence": false, 244 | "type": { 245 | "typeName": "" 246 | }, 247 | "rule": { 248 | "id": "MORFOLOGIK_RULE", 249 | "subId": 0, 250 | "description": "", 251 | "issueType": "", 252 | "urls": null, 253 | "category": { 254 | "id": "", 255 | "name": "" 256 | }, 257 | "isPremium": false 258 | } 259 | }, 260 | { 261 | "message": "Possible spelling mistake. Did you mean 'each'?", 262 | "shortMessage": "", 263 | "offset": 346, 264 | "length": 4, 265 | "replacements": [ 266 | { 267 | "value": "each", 268 | "shortDescription": null 269 | }, 270 | { 271 | "value": "watch", 272 | "shortDescription": null 273 | }, 274 | { 275 | "value": "wash", 276 | "shortDescription": null 277 | }, 278 | { 279 | "value": "bach", 280 | "shortDescription": null 281 | }, 282 | { 283 | "value": "mach", 284 | "shortDescription": null 285 | } 286 | ], 287 | "sentence": "", 288 | "contextForSureMatch": 0, 289 | "ignoreForIncompleteSentence": false, 290 | "type": { 291 | "typeName": "" 292 | }, 293 | "rule": { 294 | "id": "MORFOLOGIK_RULE", 295 | "subId": 0, 296 | "description": "", 297 | "issueType": "", 298 | "urls": null, 299 | "category": { 300 | "id": "", 301 | "name": "" 302 | }, 303 | "isPremium": false 304 | } 305 | }, 306 | { 307 | "message": "Possible spelling mistake. Did you mean 'waistcoat'?", 308 | "shortMessage": "", 309 | "offset": 362, 310 | "length": 8, 311 | "replacements": [ 312 | { 313 | "value": "waistcoat", 314 | "shortDescription": null 315 | } 316 | ], 317 | "sentence": "", 318 | "contextForSureMatch": 0, 319 | "ignoreForIncompleteSentence": false, 320 | "type": { 321 | "typeName": "" 322 | }, 323 | "rule": { 324 | "id": "MORFOLOGIK_RULE", 325 | "subId": 0, 326 | "description": "", 327 | "issueType": "", 328 | "urls": null, 329 | "category": { 330 | "id": "", 331 | "name": "" 332 | }, 333 | "isPremium": false 334 | } 335 | }, 336 | { 337 | "message": "Possible spelling mistake. Did you mean 'poker'?", 338 | "shortMessage": "", 339 | "offset": 371, 340 | "length": 5, 341 | "replacements": [ 342 | { 343 | "value": "poker", 344 | "shortDescription": null 345 | }, 346 | { 347 | "value": "pocket", 348 | "shortDescription": null 349 | }, 350 | { 351 | "value": "poet", 352 | "shortDescription": null 353 | }, 354 | { 355 | "value": "poke", 356 | "shortDescription": null 357 | }, 358 | { 359 | "value": "poked", 360 | "shortDescription": null 361 | } 362 | ], 363 | "sentence": "", 364 | "contextForSureMatch": 0, 365 | "ignoreForIncompleteSentence": false, 366 | "type": { 367 | "typeName": "" 368 | }, 369 | "rule": { 370 | "id": "MORFOLOGIK_RULE", 371 | "subId": 0, 372 | "description": "", 373 | "issueType": "", 374 | "urls": null, 375 | "category": { 376 | "id": "", 377 | "name": "" 378 | }, 379 | "isPremium": false 380 | } 381 | }, 382 | { 383 | "message": "Possible spelling mistake. Did you mean 'buried'?", 384 | "shortMessage": "", 385 | "offset": 405, 386 | "length": 6, 387 | "replacements": [ 388 | { 389 | "value": "buried", 390 | "shortDescription": null 391 | }, 392 | { 393 | "value": "hurried", 394 | "shortDescription": null 395 | }, 396 | { 397 | "value": "hurled", 398 | "shortDescription": null 399 | } 400 | ], 401 | "sentence": "", 402 | "contextForSureMatch": 0, 403 | "ignoreForIncompleteSentence": false, 404 | "type": { 405 | "typeName": "" 406 | }, 407 | "rule": { 408 | "id": "MORFOLOGIK_RULE", 409 | "subId": 0, 410 | "description": "", 411 | "issueType": "", 412 | "urls": null, 413 | "category": { 414 | "id": "", 415 | "name": "" 416 | }, 417 | "isPremium": false 418 | } 419 | }, 420 | { 421 | "message": "Possible spelling mistake. Did you mean 'feet'?", 422 | "shortMessage": "", 423 | "offset": 437, 424 | "length": 5, 425 | "replacements": [ 426 | { 427 | "value": "feet", 428 | "shortDescription": null 429 | }, 430 | { 431 | "value": "fete", 432 | "shortDescription": null 433 | } 434 | ], 435 | "sentence": "", 436 | "contextForSureMatch": 0, 437 | "ignoreForIncompleteSentence": false, 438 | "type": { 439 | "typeName": "" 440 | }, 441 | "rule": { 442 | "id": "MORFOLOGIK_RULE", 443 | "subId": 0, 444 | "description": "", 445 | "issueType": "", 446 | "urls": null, 447 | "category": { 448 | "id": "", 449 | "name": "" 450 | }, 451 | "isPremium": false 452 | } 453 | }, 454 | { 455 | "message": "Possible spelling mistake. Did you mean 'across'?", 456 | "shortMessage": "", 457 | "offset": 459, 458 | "length": 7, 459 | "replacements": [ 460 | { 461 | "value": "across", 462 | "shortDescription": null 463 | } 464 | ], 465 | "sentence": "", 466 | "contextForSureMatch": 0, 467 | "ignoreForIncompleteSentence": false, 468 | "type": { 469 | "typeName": "" 470 | }, 471 | "rule": { 472 | "id": "MORFOLOGIK_RULE", 473 | "subId": 0, 474 | "description": "", 475 | "issueType": "", 476 | "urls": null, 477 | "category": { 478 | "id": "", 479 | "name": "" 480 | }, 481 | "isPremium": false 482 | } 483 | }, 484 | { 485 | "message": "Possible spelling mistake. Did you mean 'waistcoat'?", 486 | "shortMessage": "", 487 | "offset": 529, 488 | "length": 8, 489 | "replacements": [ 490 | { 491 | "value": "waistcoat", 492 | "shortDescription": null 493 | } 494 | ], 495 | "sentence": "", 496 | "contextForSureMatch": 0, 497 | "ignoreForIncompleteSentence": false, 498 | "type": { 499 | "typeName": "" 500 | }, 501 | "rule": { 502 | "id": "MORFOLOGIK_RULE", 503 | "subId": 0, 504 | "description": "", 505 | "issueType": "", 506 | "urls": null, 507 | "category": { 508 | "id": "", 509 | "name": "" 510 | }, 511 | "isPremium": false 512 | } 513 | }, 514 | { 515 | "message": "Possible spelling mistake. Did you mean 'poker'?", 516 | "shortMessage": "", 517 | "offset": 538, 518 | "length": 5, 519 | "replacements": [ 520 | { 521 | "value": "poker", 522 | "shortDescription": null 523 | }, 524 | { 525 | "value": "pocket", 526 | "shortDescription": null 527 | }, 528 | { 529 | "value": "poet", 530 | "shortDescription": null 531 | }, 532 | { 533 | "value": "poke", 534 | "shortDescription": null 535 | }, 536 | { 537 | "value": "poked", 538 | "shortDescription": null 539 | } 540 | ], 541 | "sentence": "", 542 | "contextForSureMatch": 0, 543 | "ignoreForIncompleteSentence": false, 544 | "type": { 545 | "typeName": "" 546 | }, 547 | "rule": { 548 | "id": "MORFOLOGIK_RULE", 549 | "subId": 0, 550 | "description": "", 551 | "issueType": "", 552 | "urls": null, 553 | "category": { 554 | "id": "", 555 | "name": "" 556 | }, 557 | "isPremium": false 558 | } 559 | }, 560 | { 561 | "message": "Possible spelling mistake. Did you mean 'each'?", 562 | "shortMessage": "", 563 | "offset": 550, 564 | "length": 4, 565 | "replacements": [ 566 | { 567 | "value": "each", 568 | "shortDescription": null 569 | }, 570 | { 571 | "value": "watch", 572 | "shortDescription": null 573 | }, 574 | { 575 | "value": "wash", 576 | "shortDescription": null 577 | }, 578 | { 579 | "value": "bach", 580 | "shortDescription": null 581 | }, 582 | { 583 | "value": "mach", 584 | "shortDescription": null 585 | } 586 | ], 587 | "sentence": "", 588 | "contextForSureMatch": 0, 589 | "ignoreForIncompleteSentence": false, 590 | "type": { 591 | "typeName": "" 592 | }, 593 | "rule": { 594 | "id": "MORFOLOGIK_RULE", 595 | "subId": 0, 596 | "description": "", 597 | "issueType": "", 598 | "urls": null, 599 | "category": { 600 | "id": "", 601 | "name": "" 602 | }, 603 | "isPremium": false 604 | } 605 | }, 606 | { 607 | "message": "Possible spelling mistake. Did you mean 'curiosities'?", 608 | "shortMessage": "", 609 | "offset": 591, 610 | "length": 10, 611 | "replacements": [ 612 | { 613 | "value": "curiosities", 614 | "shortDescription": null 615 | } 616 | ], 617 | "sentence": "", 618 | "contextForSureMatch": 0, 619 | "ignoreForIncompleteSentence": false, 620 | "type": { 621 | "typeName": "" 622 | }, 623 | "rule": { 624 | "id": "MORFOLOGIK_RULE", 625 | "subId": 0, 626 | "description": "", 627 | "issueType": "", 628 | "urls": null, 629 | "category": { 630 | "id": "", 631 | "name": "" 632 | }, 633 | "isPremium": false 634 | } 635 | }, 636 | { 637 | "message": "Possible spelling mistake. Did you mean 'across'?", 638 | "shortMessage": "", 639 | "offset": 611, 640 | "length": 7, 641 | "replacements": [ 642 | { 643 | "value": "across", 644 | "shortDescription": null 645 | } 646 | ], 647 | "sentence": "", 648 | "contextForSureMatch": 0, 649 | "ignoreForIncompleteSentence": false, 650 | "type": { 651 | "typeName": "" 652 | }, 653 | "rule": { 654 | "id": "MORFOLOGIK_RULE", 655 | "subId": 0, 656 | "description": "", 657 | "issueType": "", 658 | "urls": null, 659 | "category": { 660 | "id": "", 661 | "name": "" 662 | }, 663 | "isPremium": false 664 | } 665 | }, 666 | { 667 | "message": "Possible spelling mistake. Did you mean 'field'?", 668 | "shortMessage": "", 669 | "offset": 623, 670 | "length": 5, 671 | "replacements": [ 672 | { 673 | "value": "field", 674 | "shortDescription": null 675 | } 676 | ], 677 | "sentence": "", 678 | "contextForSureMatch": 0, 679 | "ignoreForIncompleteSentence": false, 680 | "type": { 681 | "typeName": "" 682 | }, 683 | "rule": { 684 | "id": "MORFOLOGIK_RULE", 685 | "subId": 0, 686 | "description": "", 687 | "issueType": "", 688 | "urls": null, 689 | "category": { 690 | "id": "", 691 | "name": "" 692 | }, 693 | "isPremium": false 694 | } 695 | }, 696 | { 697 | "message": "Possible spelling mistake. Did you mean 'fortunately'?", 698 | "shortMessage": "", 699 | "offset": 643, 700 | "length": 10, 701 | "replacements": [ 702 | { 703 | "value": "fortunately", 704 | "shortDescription": null 705 | } 706 | ], 707 | "sentence": "", 708 | "contextForSureMatch": 0, 709 | "ignoreForIncompleteSentence": false, 710 | "type": { 711 | "typeName": "" 712 | }, 713 | "rule": { 714 | "id": "MORFOLOGIK_RULE", 715 | "subId": 0, 716 | "description": "", 717 | "issueType": "", 718 | "urls": null, 719 | "category": { 720 | "id": "", 721 | "name": "" 722 | }, 723 | "isPremium": false 724 | } 725 | }, 726 | { 727 | "message": "Possible typo: you repeated a word", 728 | "shortMessage": "", 729 | "offset": 716, 730 | "length": 7, 731 | "replacements": [ 732 | { 733 | "value": "the", 734 | "shortDescription": null 735 | } 736 | ], 737 | "sentence": "", 738 | "contextForSureMatch": 0, 739 | "ignoreForIncompleteSentence": false, 740 | "type": { 741 | "typeName": "" 742 | }, 743 | "rule": { 744 | "id": "", 745 | "subId": 0, 746 | "description": "", 747 | "issueType": "duplication", 748 | "urls": null, 749 | "category": { 750 | "id": "", 751 | "name": "" 752 | }, 753 | "isPremium": false 754 | } 755 | }, 756 | { 757 | "message": "Possible spelling mistake. Did you mean 'when'?", 758 | "shortMessage": "", 759 | "offset": 755, 760 | "length": 5, 761 | "replacements": [ 762 | { 763 | "value": "when", 764 | "shortDescription": null 765 | }, 766 | { 767 | "value": "went", 768 | "shortDescription": null 769 | }, 770 | { 771 | "value": "wheat", 772 | "shortDescription": null 773 | }, 774 | { 775 | "value": "ghent", 776 | "shortDescription": null 777 | }, 778 | { 779 | "value": "whet", 780 | "shortDescription": null 781 | } 782 | ], 783 | "sentence": "", 784 | "contextForSureMatch": 0, 785 | "ignoreForIncompleteSentence": false, 786 | "type": { 787 | "typeName": "" 788 | }, 789 | "rule": { 790 | "id": "MORFOLOGIK_RULE", 791 | "subId": 0, 792 | "description": "", 793 | "issueType": "", 794 | "urls": null, 795 | "category": { 796 | "id": "", 797 | "name": "" 798 | }, 799 | "isPremium": false 800 | } 801 | }, 802 | { 803 | "message": "Possible spelling mistake. Did you mean 'considering'?", 804 | "shortMessage": "", 805 | "offset": 788, 806 | "length": 11, 807 | "replacements": [ 808 | { 809 | "value": "considering", 810 | "shortDescription": null 811 | } 812 | ], 813 | "sentence": "", 814 | "contextForSureMatch": 0, 815 | "ignoreForIncompleteSentence": false, 816 | "type": { 817 | "typeName": "" 818 | }, 819 | "rule": { 820 | "id": "MORFOLOGIK_RULE", 821 | "subId": 0, 822 | "description": "", 823 | "issueType": "", 824 | "urls": null, 825 | "category": { 826 | "id": "", 827 | "name": "" 828 | }, 829 | "isPremium": false 830 | } 831 | }, 832 | { 833 | "message": "Possible spelling mistake. Did you mean 'again'?", 834 | "shortMessage": "", 835 | "offset": 836, 836 | "length": 5, 837 | "replacements": [ 838 | { 839 | "value": "again", 840 | "shortDescription": null 841 | }, 842 | { 843 | "value": "asian", 844 | "shortDescription": null 845 | }, 846 | { 847 | "value": "avian", 848 | "shortDescription": null 849 | }, 850 | { 851 | "value": "arian", 852 | "shortDescription": null 853 | } 854 | ], 855 | "sentence": "", 856 | "contextForSureMatch": 0, 857 | "ignoreForIncompleteSentence": false, 858 | "type": { 859 | "typeName": "" 860 | }, 861 | "rule": { 862 | "id": "MORFOLOGIK_RULE", 863 | "subId": 0, 864 | "description": "", 865 | "issueType": "", 866 | "urls": null, 867 | "category": { 868 | "id": "", 869 | "name": "" 870 | }, 871 | "isPremium": false 872 | } 873 | }, 874 | { 875 | "message": "Possible spelling mistake. Did you mean 'when'?", 876 | "shortMessage": "", 877 | "offset": 860, 878 | "length": 5, 879 | "replacements": [ 880 | { 881 | "value": "when", 882 | "shortDescription": null 883 | }, 884 | { 885 | "value": "went", 886 | "shortDescription": null 887 | }, 888 | { 889 | "value": "wheat", 890 | "shortDescription": null 891 | }, 892 | { 893 | "value": "ghent", 894 | "shortDescription": null 895 | }, 896 | { 897 | "value": "whet", 898 | "shortDescription": null 899 | } 900 | ], 901 | "sentence": "", 902 | "contextForSureMatch": 0, 903 | "ignoreForIncompleteSentence": false, 904 | "type": { 905 | "typeName": "" 906 | }, 907 | "rule": { 908 | "id": "MORFOLOGIK_RULE", 909 | "subId": 0, 910 | "description": "", 911 | "issueType": "", 912 | "urls": null, 913 | "category": { 914 | "id": "", 915 | "name": "" 916 | }, 917 | "isPremium": false 918 | } 919 | }, 920 | { 921 | "message": "Possible spelling mistake. Did you mean 'suddenly'?", 922 | "shortMessage": "", 923 | "offset": 922, 924 | "length": 7, 925 | "replacements": [ 926 | { 927 | "value": "suddenly", 928 | "shortDescription": null 929 | } 930 | ], 931 | "sentence": "", 932 | "contextForSureMatch": 0, 933 | "ignoreForIncompleteSentence": false, 934 | "type": { 935 | "typeName": "" 936 | }, 937 | "rule": { 938 | "id": "MORFOLOGIK_RULE", 939 | "subId": 0, 940 | "description": "", 941 | "issueType": "", 942 | "urls": null, 943 | "category": { 944 | "id": "", 945 | "name": "" 946 | }, 947 | "isPremium": false 948 | } 949 | }, 950 | { 951 | "message": "Possible spelling mistake. Did you mean 'suddenly'?", 952 | "shortMessage": "", 953 | "offset": 939, 954 | "length": 7, 955 | "replacements": [ 956 | { 957 | "value": "suddenly", 958 | "shortDescription": null 959 | } 960 | ], 961 | "sentence": "", 962 | "contextForSureMatch": 0, 963 | "ignoreForIncompleteSentence": false, 964 | "type": { 965 | "typeName": "" 966 | }, 967 | "rule": { 968 | "id": "MORFOLOGIK_RULE", 969 | "subId": 0, 970 | "description": "", 971 | "issueType": "", 972 | "urls": null, 973 | "category": { 974 | "id": "", 975 | "name": "" 976 | }, 977 | "isPremium": false 978 | } 979 | }, 980 | { 981 | "message": "Possible spelling mistake. Did you mean 'stopping'?", 982 | "shortMessage": "", 983 | "offset": 990, 984 | "length": 7, 985 | "replacements": [ 986 | { 987 | "value": "stopping", 988 | "shortDescription": null 989 | }, 990 | { 991 | "value": "storing", 992 | "shortDescription": null 993 | }, 994 | { 995 | "value": "scoping", 996 | "shortDescription": null 997 | }, 998 | { 999 | "value": "sloping", 1000 | "shortDescription": null 1001 | }, 1002 | { 1003 | "value": "stomping", 1004 | "shortDescription": null 1005 | } 1006 | ], 1007 | "sentence": "", 1008 | "contextForSureMatch": 0, 1009 | "ignoreForIncompleteSentence": false, 1010 | "type": { 1011 | "typeName": "" 1012 | }, 1013 | "rule": { 1014 | "id": "MORFOLOGIK_RULE", 1015 | "subId": 0, 1016 | "description": "", 1017 | "issueType": "", 1018 | "urls": null, 1019 | "category": { 1020 | "id": "", 1021 | "name": "" 1022 | }, 1023 | "isPremium": false 1024 | } 1025 | }, 1026 | { 1027 | "message": "Possible spelling mistake. Did you mean 'either'?", 1028 | "shortMessage": "", 1029 | "offset": 1063, 1030 | "length": 6, 1031 | "replacements": [ 1032 | { 1033 | "value": "either", 1034 | "shortDescription": null 1035 | }, 1036 | { 1037 | "value": "esther", 1038 | "shortDescription": null 1039 | }, 1040 | { 1041 | "value": "ether", 1042 | "shortDescription": null 1043 | }, 1044 | { 1045 | "value": "nether", 1046 | "shortDescription": null 1047 | }, 1048 | { 1049 | "value": "wether", 1050 | "shortDescription": null 1051 | } 1052 | ], 1053 | "sentence": "", 1054 | "contextForSureMatch": 0, 1055 | "ignoreForIncompleteSentence": false, 1056 | "type": { 1057 | "typeName": "" 1058 | }, 1059 | "rule": { 1060 | "id": "MORFOLOGIK_RULE", 1061 | "subId": 0, 1062 | "description": "", 1063 | "issueType": "", 1064 | "urls": null, 1065 | "category": { 1066 | "id": "", 1067 | "name": "" 1068 | }, 1069 | "isPremium": false 1070 | } 1071 | }, 1072 | { 1073 | "message": "Possible spelling mistake. Did you mean 'when'?", 1074 | "shortMessage": "", 1075 | "offset": 1153, 1076 | "length": 5, 1077 | "replacements": [ 1078 | { 1079 | "value": "when", 1080 | "shortDescription": null 1081 | }, 1082 | { 1083 | "value": "went", 1084 | "shortDescription": null 1085 | }, 1086 | { 1087 | "value": "wheat", 1088 | "shortDescription": null 1089 | }, 1090 | { 1091 | "value": "ghent", 1092 | "shortDescription": null 1093 | }, 1094 | { 1095 | "value": "whet", 1096 | "shortDescription": null 1097 | } 1098 | ], 1099 | "sentence": "", 1100 | "contextForSureMatch": 0, 1101 | "ignoreForIncompleteSentence": false, 1102 | "type": { 1103 | "typeName": "" 1104 | }, 1105 | "rule": { 1106 | "id": "MORFOLOGIK_RULE", 1107 | "subId": 0, 1108 | "description": "", 1109 | "issueType": "", 1110 | "urls": null, 1111 | "category": { 1112 | "id": "", 1113 | "name": "" 1114 | }, 1115 | "isPremium": false 1116 | } 1117 | }, 1118 | { 1119 | "message": "Possible spelling mistake. Did you mean 'happen'?", 1120 | "shortMessage": "", 1121 | "offset": 1214, 1122 | "length": 5, 1123 | "replacements": [ 1124 | { 1125 | "value": "happen", 1126 | "shortDescription": null 1127 | }, 1128 | { 1129 | "value": "haven", 1130 | "shortDescription": null 1131 | }, 1132 | { 1133 | "value": "hagen", 1134 | "shortDescription": null 1135 | }, 1136 | { 1137 | "value": "papen", 1138 | "shortDescription": null 1139 | }, 1140 | { 1141 | "value": "hapten", 1142 | "shortDescription": null 1143 | } 1144 | ], 1145 | "sentence": "", 1146 | "contextForSureMatch": 0, 1147 | "ignoreForIncompleteSentence": false, 1148 | "type": { 1149 | "typeName": "" 1150 | }, 1151 | "rule": { 1152 | "id": "MORFOLOGIK_RULE", 1153 | "subId": 0, 1154 | "description": "", 1155 | "issueType": "", 1156 | "urls": null, 1157 | "category": { 1158 | "id": "", 1159 | "name": "" 1160 | }, 1161 | "isPremium": false 1162 | } 1163 | }, 1164 | { 1165 | "message": "Use a comma before 'but' if it connects two independent clauses (unless they are closely connected and short).", 1166 | "shortMessage": "", 1167 | "offset": 1290, 1168 | "length": 6, 1169 | "replacements": [ 1170 | { 1171 | "value": "to, but", 1172 | "shortDescription": null 1173 | } 1174 | ], 1175 | "sentence": "", 1176 | "contextForSureMatch": 0, 1177 | "ignoreForIncompleteSentence": false, 1178 | "type": { 1179 | "typeName": "" 1180 | }, 1181 | "rule": { 1182 | "id": "PUNCTUATION/COMMA_COMPOUND_SENTENCE/0", 1183 | "subId": 0, 1184 | "description": "", 1185 | "issueType": "", 1186 | "urls": null, 1187 | "category": { 1188 | "id": "", 1189 | "name": "" 1190 | }, 1191 | "isPremium": false 1192 | } 1193 | }, 1194 | { 1195 | "message": "Did you mean too?", 1196 | "shortMessage": "", 1197 | "offset": 1304, 1198 | "length": 2, 1199 | "replacements": [ 1200 | { 1201 | "value": "too", 1202 | "shortDescription": null 1203 | } 1204 | ], 1205 | "sentence": "", 1206 | "contextForSureMatch": 0, 1207 | "ignoreForIncompleteSentence": false, 1208 | "type": { 1209 | "typeName": "" 1210 | }, 1211 | "rule": { 1212 | "id": "CONFUSED_WORDS/TO_TOO/12", 1213 | "subId": 0, 1214 | "description": "", 1215 | "issueType": "", 1216 | "urls": null, 1217 | "category": { 1218 | "id": "", 1219 | "name": "" 1220 | }, 1221 | "isPremium": false 1222 | } 1223 | }, 1224 | { 1225 | "message": "Possible spelling mistake. Did you mean 'tried'?", 1226 | "shortMessage": "", 1227 | "offset": 1237, 1228 | "length": 5, 1229 | "replacements": [ 1230 | { 1231 | "value": "tried", 1232 | "shortDescription": null 1233 | }, 1234 | { 1235 | "value": "toyed", 1236 | "shortDescription": null 1237 | }, 1238 | { 1239 | "value": "treed", 1240 | "shortDescription": null 1241 | }, 1242 | { 1243 | "value": "trued", 1244 | "shortDescription": null 1245 | } 1246 | ], 1247 | "sentence": "", 1248 | "contextForSureMatch": 0, 1249 | "ignoreForIncompleteSentence": false, 1250 | "type": { 1251 | "typeName": "" 1252 | }, 1253 | "rule": { 1254 | "id": "MORFOLOGIK_RULE", 1255 | "subId": 0, 1256 | "description": "", 1257 | "issueType": "", 1258 | "urls": null, 1259 | "category": { 1260 | "id": "", 1261 | "name": "" 1262 | }, 1263 | "isPremium": false 1264 | } 1265 | }, 1266 | { 1267 | "message": "Possible spelling mistake. Did you mean 'coming'?", 1268 | "shortMessage": "", 1269 | "offset": 1282, 1270 | "length": 7, 1271 | "replacements": [ 1272 | { 1273 | "value": "coming", 1274 | "shortDescription": null 1275 | }, 1276 | { 1277 | "value": "combing", 1278 | "shortDescription": null 1279 | }, 1280 | { 1281 | "value": "comping", 1282 | "shortDescription": null 1283 | } 1284 | ], 1285 | "sentence": "", 1286 | "contextForSureMatch": 0, 1287 | "ignoreForIncompleteSentence": false, 1288 | "type": { 1289 | "typeName": "" 1290 | }, 1291 | "rule": { 1292 | "id": "MORFOLOGIK_RULE", 1293 | "subId": 0, 1294 | "description": "", 1295 | "issueType": "", 1296 | "urls": null, 1297 | "category": { 1298 | "id": "", 1299 | "name": "" 1300 | }, 1301 | "isPremium": false 1302 | } 1303 | }, 1304 | { 1305 | "message": "Possible spelling mistake. Did you mean 'noticed'?", 1306 | "shortMessage": "", 1307 | "offset": 1375, 1308 | "length": 7, 1309 | "replacements": [ 1310 | { 1311 | "value": "noticed", 1312 | "shortDescription": null 1313 | }, 1314 | { 1315 | "value": "noised", 1316 | "shortDescription": null 1317 | } 1318 | ], 1319 | "sentence": "", 1320 | "contextForSureMatch": 0, 1321 | "ignoreForIncompleteSentence": false, 1322 | "type": { 1323 | "typeName": "" 1324 | }, 1325 | "rule": { 1326 | "id": "MORFOLOGIK_RULE", 1327 | "subId": 0, 1328 | "description": "", 1329 | "issueType": "", 1330 | "urls": null, 1331 | "category": { 1332 | "id": "", 1333 | "name": "" 1334 | }, 1335 | "isPremium": false 1336 | } 1337 | }, 1338 | { 1339 | "message": "Possible spelling mistake. Did you mean 'cupboards'?", 1340 | "shortMessage": "", 1341 | "offset": 1410, 1342 | "length": 8, 1343 | "replacements": [ 1344 | { 1345 | "value": "cupboards", 1346 | "shortDescription": null 1347 | } 1348 | ], 1349 | "sentence": "", 1350 | "contextForSureMatch": 0, 1351 | "ignoreForIncompleteSentence": false, 1352 | "type": { 1353 | "typeName": "" 1354 | }, 1355 | "rule": { 1356 | "id": "MORFOLOGIK_RULE", 1357 | "subId": 0, 1358 | "description": "", 1359 | "issueType": "", 1360 | "urls": null, 1361 | "category": { 1362 | "id": "", 1363 | "name": "" 1364 | }, 1365 | "isPremium": false 1366 | } 1367 | }, 1368 | { 1369 | "message": "Possible spelling mistake. Did you mean 'bookshelves'?", 1370 | "shortMessage": "", 1371 | "offset": 1423, 1372 | "length": 10, 1373 | "replacements": [ 1374 | { 1375 | "value": "bookshelves", 1376 | "shortDescription": null 1377 | } 1378 | ], 1379 | "sentence": "", 1380 | "contextForSureMatch": 0, 1381 | "ignoreForIncompleteSentence": false, 1382 | "type": { 1383 | "typeName": "" 1384 | }, 1385 | "rule": { 1386 | "id": "MORFOLOGIK_RULE", 1387 | "subId": 0, 1388 | "description": "", 1389 | "issueType": "", 1390 | "urls": null, 1391 | "category": { 1392 | "id": "", 1393 | "name": "" 1394 | }, 1395 | "isPremium": false 1396 | } 1397 | }, 1398 | { 1399 | "message": "Possible spelling mistake. Did you mean 'upon'?", 1400 | "shortMessage": "", 1401 | "offset": 1481, 1402 | "length": 5, 1403 | "replacements": [ 1404 | { 1405 | "value": "upon", 1406 | "shortDescription": null 1407 | }, 1408 | { 1409 | "value": "upton", 1410 | "shortDescription": null 1411 | } 1412 | ], 1413 | "sentence": "", 1414 | "contextForSureMatch": 0, 1415 | "ignoreForIncompleteSentence": false, 1416 | "type": { 1417 | "typeName": "" 1418 | }, 1419 | "rule": { 1420 | "id": "MORFOLOGIK_RULE", 1421 | "subId": 0, 1422 | "description": "", 1423 | "issueType": "", 1424 | "urls": null, 1425 | "category": { 1426 | "id": "", 1427 | "name": "" 1428 | }, 1429 | "isPremium": false 1430 | } 1431 | }, 1432 | { 1433 | "message": "Possible spelling mistake. Did you mean 'took'?", 1434 | "shortMessage": "", 1435 | "offset": 1497, 1436 | "length": 5, 1437 | "replacements": [ 1438 | { 1439 | "value": "took", 1440 | "shortDescription": null 1441 | } 1442 | ], 1443 | "sentence": "", 1444 | "contextForSureMatch": 0, 1445 | "ignoreForIncompleteSentence": false, 1446 | "type": { 1447 | "typeName": "" 1448 | }, 1449 | "rule": { 1450 | "id": "MORFOLOGIK_RULE", 1451 | "subId": 0, 1452 | "description": "", 1453 | "issueType": "", 1454 | "urls": null, 1455 | "category": { 1456 | "id": "", 1457 | "name": "" 1458 | }, 1459 | "isPremium": false 1460 | } 1461 | }, 1462 | { 1463 | "message": "Possible spelling mistake. Did you mean 'shelves'?", 1464 | "shortMessage": "", 1465 | "offset": 1530, 1466 | "length": 6, 1467 | "replacements": [ 1468 | { 1469 | "value": "shelves", 1470 | "shortDescription": null 1471 | }, 1472 | { 1473 | "value": "shells", 1474 | "shortDescription": null 1475 | }, 1476 | { 1477 | "value": "shelve", 1478 | "shortDescription": null 1479 | } 1480 | ], 1481 | "sentence": "", 1482 | "contextForSureMatch": 0, 1483 | "ignoreForIncompleteSentence": false, 1484 | "type": { 1485 | "typeName": "" 1486 | }, 1487 | "rule": { 1488 | "id": "MORFOLOGIK_RULE", 1489 | "subId": 0, 1490 | "description": "", 1491 | "issueType": "", 1492 | "urls": null, 1493 | "category": { 1494 | "id": "", 1495 | "name": "" 1496 | }, 1497 | "isPremium": false 1498 | } 1499 | }, 1500 | { 1501 | "message": "Possible spelling mistake. Did you mean 'label'?", 1502 | "shortMessage": "", 1503 | "offset": 1559, 1504 | "length": 6, 1505 | "replacements": [ 1506 | { 1507 | "value": "label", 1508 | "shortDescription": null 1509 | }, 1510 | { 1511 | "value": "labels", 1512 | "shortDescription": null 1513 | } 1514 | ], 1515 | "sentence": "", 1516 | "contextForSureMatch": 0, 1517 | "ignoreForIncompleteSentence": false, 1518 | "type": { 1519 | "typeName": "" 1520 | }, 1521 | "rule": { 1522 | "id": "MORFOLOGIK_RULE", 1523 | "subId": 0, 1524 | "description": "", 1525 | "issueType": "", 1526 | "urls": null, 1527 | "category": { 1528 | "id": "", 1529 | "name": "" 1530 | }, 1531 | "isPremium": false 1532 | } 1533 | }, 1534 | { 1535 | "message": "Possible spelling mistake. Did you mean 'disappointment'?", 1536 | "shortMessage": "", 1537 | "offset": 1603, 1538 | "length": 14, 1539 | "replacements": [ 1540 | { 1541 | "value": "disappointment", 1542 | "shortDescription": null 1543 | } 1544 | ], 1545 | "sentence": "", 1546 | "contextForSureMatch": 0, 1547 | "ignoreForIncompleteSentence": false, 1548 | "type": { 1549 | "typeName": "" 1550 | }, 1551 | "rule": { 1552 | "id": "MORFOLOGIK_RULE", 1553 | "subId": 0, 1554 | "description": "", 1555 | "issueType": "", 1556 | "urls": null, 1557 | "category": { 1558 | "id": "", 1559 | "name": "" 1560 | }, 1561 | "isPremium": false 1562 | } 1563 | }, 1564 | { 1565 | "message": "Possible spelling mistake. Did you mean 'feel'?", 1566 | "shortMessage": "", 1567 | "offset": 1669, 1568 | "length": 4, 1569 | "replacements": [ 1570 | { 1571 | "value": "feel", 1572 | "shortDescription": null 1573 | }, 1574 | { 1575 | "value": "feed", 1576 | "shortDescription": null 1577 | }, 1578 | { 1579 | "value": "feet", 1580 | "shortDescription": null 1581 | }, 1582 | { 1583 | "value": "fees", 1584 | "shortDescription": null 1585 | }, 1586 | { 1587 | "value": "fee", 1588 | "shortDescription": null 1589 | } 1590 | ], 1591 | "sentence": "", 1592 | "contextForSureMatch": 0, 1593 | "ignoreForIncompleteSentence": false, 1594 | "type": { 1595 | "typeName": "" 1596 | }, 1597 | "rule": { 1598 | "id": "MORFOLOGIK_RULE", 1599 | "subId": 0, 1600 | "description": "", 1601 | "issueType": "", 1602 | "urls": null, 1603 | "category": { 1604 | "id": "", 1605 | "name": "" 1606 | }, 1607 | "isPremium": false 1608 | } 1609 | }, 1610 | { 1611 | "message": "Possible spelling mistake. Did you mean 'somebody'?", 1612 | "shortMessage": "", 1613 | "offset": 1685, 1614 | "length": 7, 1615 | "replacements": [ 1616 | { 1617 | "value": "somebody", 1618 | "shortDescription": null 1619 | } 1620 | ], 1621 | "sentence": "", 1622 | "contextForSureMatch": 0, 1623 | "ignoreForIncompleteSentence": false, 1624 | "type": { 1625 | "typeName": "" 1626 | }, 1627 | "rule": { 1628 | "id": "MORFOLOGIK_RULE", 1629 | "subId": 0, 1630 | "description": "", 1631 | "issueType": "", 1632 | "urls": null, 1633 | "category": { 1634 | "id": "", 1635 | "name": "" 1636 | }, 1637 | "isPremium": false 1638 | } 1639 | }, 1640 | { 1641 | "message": "Possible spelling mistake. Did you mean 'cupboards'?", 1642 | "shortMessage": "", 1643 | "offset": 1742, 1644 | "length": 8, 1645 | "replacements": [ 1646 | { 1647 | "value": "cupboards", 1648 | "shortDescription": null 1649 | } 1650 | ], 1651 | "sentence": "", 1652 | "contextForSureMatch": 0, 1653 | "ignoreForIncompleteSentence": false, 1654 | "type": { 1655 | "typeName": "" 1656 | }, 1657 | "rule": { 1658 | "id": "MORFOLOGIK_RULE", 1659 | "subId": 0, 1660 | "description": "", 1661 | "issueType": "", 1662 | "urls": null, 1663 | "category": { 1664 | "id": "", 1665 | "name": "" 1666 | }, 1667 | "isPremium": false 1668 | } 1669 | } 1670 | ] -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "addr2line" 7 | version = "0.22.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler" 16 | version = "1.0.2" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 19 | 20 | [[package]] 21 | name = "aho-corasick" 22 | version = "0.7.20" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" 25 | dependencies = [ 26 | "memchr", 27 | ] 28 | 29 | [[package]] 30 | name = "aho-corasick" 31 | version = "1.1.3" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" 34 | dependencies = [ 35 | "memchr", 36 | ] 37 | 38 | [[package]] 39 | name = "anstream" 40 | version = "0.6.15" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" 43 | dependencies = [ 44 | "anstyle", 45 | "anstyle-parse", 46 | "anstyle-query", 47 | "anstyle-wincon", 48 | "colorchoice", 49 | "is_terminal_polyfill", 50 | "utf8parse", 51 | ] 52 | 53 | [[package]] 54 | name = "anstyle" 55 | version = "1.0.8" 56 | source = "registry+https://github.com/rust-lang/crates.io-index" 57 | checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" 58 | 59 | [[package]] 60 | name = "anstyle-parse" 61 | version = "0.2.5" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" 64 | dependencies = [ 65 | "utf8parse", 66 | ] 67 | 68 | [[package]] 69 | name = "anstyle-query" 70 | version = "1.1.1" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" 73 | dependencies = [ 74 | "windows-sys 0.52.0", 75 | ] 76 | 77 | [[package]] 78 | name = "anstyle-wincon" 79 | version = "3.0.4" 80 | source = "registry+https://github.com/rust-lang/crates.io-index" 81 | checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" 82 | dependencies = [ 83 | "anstyle", 84 | "windows-sys 0.52.0", 85 | ] 86 | 87 | [[package]] 88 | name = "anyhow" 89 | version = "1.0.86" 90 | source = "registry+https://github.com/rust-lang/crates.io-index" 91 | checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" 92 | 93 | [[package]] 94 | name = "arrayref" 95 | version = "0.3.8" 96 | source = "registry+https://github.com/rust-lang/crates.io-index" 97 | checksum = "9d151e35f61089500b617991b791fc8bfd237ae50cd5950803758a179b41e67a" 98 | 99 | [[package]] 100 | name = "arrayvec" 101 | version = "0.7.4" 102 | source = "registry+https://github.com/rust-lang/crates.io-index" 103 | checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" 104 | 105 | [[package]] 106 | name = "async-trait" 107 | version = "0.1.81" 108 | source = "registry+https://github.com/rust-lang/crates.io-index" 109 | checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107" 110 | dependencies = [ 111 | "proc-macro2", 112 | "quote", 113 | "syn 2.0.74", 114 | ] 115 | 116 | [[package]] 117 | name = "autocfg" 118 | version = "1.3.0" 119 | source = "registry+https://github.com/rust-lang/crates.io-index" 120 | checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" 121 | 122 | [[package]] 123 | name = "axum" 124 | version = "0.7.5" 125 | source = "registry+https://github.com/rust-lang/crates.io-index" 126 | checksum = "3a6c9af12842a67734c9a2e355436e5d03b22383ed60cf13cd0c18fbfe3dcbcf" 127 | dependencies = [ 128 | "async-trait", 129 | "axum-core", 130 | "bytes", 131 | "futures-util", 132 | "http 1.1.0", 133 | "http-body 1.0.1", 134 | "http-body-util", 135 | "hyper 1.4.1", 136 | "hyper-util", 137 | "itoa", 138 | "matchit", 139 | "memchr", 140 | "mime", 141 | "percent-encoding", 142 | "pin-project-lite", 143 | "rustversion", 144 | "serde", 145 | "serde_json", 146 | "serde_path_to_error", 147 | "serde_urlencoded", 148 | "sync_wrapper 1.0.1", 149 | "tokio", 150 | "tower", 151 | "tower-layer", 152 | "tower-service", 153 | "tracing", 154 | ] 155 | 156 | [[package]] 157 | name = "axum-core" 158 | version = "0.4.3" 159 | source = "registry+https://github.com/rust-lang/crates.io-index" 160 | checksum = "a15c63fd72d41492dc4f497196f5da1fb04fb7529e631d73630d1b491e47a2e3" 161 | dependencies = [ 162 | "async-trait", 163 | "bytes", 164 | "futures-util", 165 | "http 1.1.0", 166 | "http-body 1.0.1", 167 | "http-body-util", 168 | "mime", 169 | "pin-project-lite", 170 | "rustversion", 171 | "sync_wrapper 0.1.2", 172 | "tower-layer", 173 | "tower-service", 174 | "tracing", 175 | ] 176 | 177 | [[package]] 178 | name = "backtrace" 179 | version = "0.3.73" 180 | source = "registry+https://github.com/rust-lang/crates.io-index" 181 | checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a" 182 | dependencies = [ 183 | "addr2line", 184 | "cc", 185 | "cfg-if", 186 | "libc", 187 | "miniz_oxide", 188 | "object", 189 | "rustc-demangle", 190 | ] 191 | 192 | [[package]] 193 | name = "backtrace-ext" 194 | version = "0.2.1" 195 | source = "registry+https://github.com/rust-lang/crates.io-index" 196 | checksum = "537beee3be4a18fb023b570f80e3ae28003db9167a751266b259926e25539d50" 197 | dependencies = [ 198 | "backtrace", 199 | ] 200 | 201 | [[package]] 202 | name = "base64" 203 | version = "0.21.7" 204 | source = "registry+https://github.com/rust-lang/crates.io-index" 205 | checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" 206 | 207 | [[package]] 208 | name = "bimap" 209 | version = "0.6.3" 210 | source = "registry+https://github.com/rust-lang/crates.io-index" 211 | checksum = "230c5f1ca6a325a32553f8640d31ac9b49f2411e901e427570154868b46da4f7" 212 | dependencies = [ 213 | "serde", 214 | ] 215 | 216 | [[package]] 217 | name = "bincode" 218 | version = "1.3.3" 219 | source = "registry+https://github.com/rust-lang/crates.io-index" 220 | checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" 221 | dependencies = [ 222 | "serde", 223 | ] 224 | 225 | [[package]] 226 | name = "bitflags" 227 | version = "1.3.2" 228 | source = "registry+https://github.com/rust-lang/crates.io-index" 229 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 230 | 231 | [[package]] 232 | name = "bitflags" 233 | version = "2.6.0" 234 | source = "registry+https://github.com/rust-lang/crates.io-index" 235 | checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" 236 | 237 | [[package]] 238 | name = "blake3" 239 | version = "1.5.3" 240 | source = "registry+https://github.com/rust-lang/crates.io-index" 241 | checksum = "e9ec96fe9a81b5e365f9db71fe00edc4fe4ca2cc7dcb7861f0603012a7caa210" 242 | dependencies = [ 243 | "arrayref", 244 | "arrayvec", 245 | "cc", 246 | "cfg-if", 247 | "constant_time_eq", 248 | ] 249 | 250 | [[package]] 251 | name = "bumpalo" 252 | version = "3.16.0" 253 | source = "registry+https://github.com/rust-lang/crates.io-index" 254 | checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" 255 | 256 | [[package]] 257 | name = "bytes" 258 | version = "1.7.1" 259 | source = "registry+https://github.com/rust-lang/crates.io-index" 260 | checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" 261 | 262 | [[package]] 263 | name = "cc" 264 | version = "1.1.13" 265 | source = "registry+https://github.com/rust-lang/crates.io-index" 266 | checksum = "72db2f7947ecee9b03b510377e8bb9077afa27176fdbff55c51027e976fdcc48" 267 | dependencies = [ 268 | "shlex", 269 | ] 270 | 271 | [[package]] 272 | name = "cfg-if" 273 | version = "1.0.0" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 276 | 277 | [[package]] 278 | name = "clap" 279 | version = "4.5.16" 280 | source = "registry+https://github.com/rust-lang/crates.io-index" 281 | checksum = "ed6719fffa43d0d87e5fd8caeab59be1554fb028cd30edc88fc4369b17971019" 282 | dependencies = [ 283 | "clap_builder", 284 | "clap_derive", 285 | ] 286 | 287 | [[package]] 288 | name = "clap_builder" 289 | version = "4.5.15" 290 | source = "registry+https://github.com/rust-lang/crates.io-index" 291 | checksum = "216aec2b177652e3846684cbfe25c9964d18ec45234f0f5da5157b207ed1aab6" 292 | dependencies = [ 293 | "anstream", 294 | "anstyle", 295 | "clap_lex", 296 | "strsim 0.11.1", 297 | "terminal_size", 298 | ] 299 | 300 | [[package]] 301 | name = "clap_derive" 302 | version = "4.5.13" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0" 305 | dependencies = [ 306 | "heck", 307 | "proc-macro2", 308 | "quote", 309 | "syn 2.0.74", 310 | ] 311 | 312 | [[package]] 313 | name = "clap_lex" 314 | version = "0.7.2" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" 317 | 318 | [[package]] 319 | name = "colorchoice" 320 | version = "1.0.2" 321 | source = "registry+https://github.com/rust-lang/crates.io-index" 322 | checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" 323 | 324 | [[package]] 325 | name = "constant_time_eq" 326 | version = "0.3.0" 327 | source = "registry+https://github.com/rust-lang/crates.io-index" 328 | checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" 329 | 330 | [[package]] 331 | name = "core-foundation" 332 | version = "0.9.4" 333 | source = "registry+https://github.com/rust-lang/crates.io-index" 334 | checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" 335 | dependencies = [ 336 | "core-foundation-sys", 337 | "libc", 338 | ] 339 | 340 | [[package]] 341 | name = "core-foundation-sys" 342 | version = "0.8.7" 343 | source = "registry+https://github.com/rust-lang/crates.io-index" 344 | checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" 345 | 346 | [[package]] 347 | name = "crc32fast" 348 | version = "1.4.2" 349 | source = "registry+https://github.com/rust-lang/crates.io-index" 350 | checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" 351 | dependencies = [ 352 | "cfg-if", 353 | ] 354 | 355 | [[package]] 356 | name = "crossbeam-channel" 357 | version = "0.5.13" 358 | source = "registry+https://github.com/rust-lang/crates.io-index" 359 | checksum = "33480d6946193aa8033910124896ca395333cae7e2d1113d1fef6c3272217df2" 360 | dependencies = [ 361 | "crossbeam-utils", 362 | ] 363 | 364 | [[package]] 365 | name = "crossbeam-deque" 366 | version = "0.8.5" 367 | source = "registry+https://github.com/rust-lang/crates.io-index" 368 | checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" 369 | dependencies = [ 370 | "crossbeam-epoch", 371 | "crossbeam-utils", 372 | ] 373 | 374 | [[package]] 375 | name = "crossbeam-epoch" 376 | version = "0.9.18" 377 | source = "registry+https://github.com/rust-lang/crates.io-index" 378 | checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" 379 | dependencies = [ 380 | "crossbeam-utils", 381 | ] 382 | 383 | [[package]] 384 | name = "crossbeam-utils" 385 | version = "0.8.20" 386 | source = "registry+https://github.com/rust-lang/crates.io-index" 387 | checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" 388 | 389 | [[package]] 390 | name = "darling" 391 | version = "0.12.4" 392 | source = "registry+https://github.com/rust-lang/crates.io-index" 393 | checksum = "5f2c43f534ea4b0b049015d00269734195e6d3f0f6635cb692251aca6f9f8b3c" 394 | dependencies = [ 395 | "darling_core", 396 | "darling_macro", 397 | ] 398 | 399 | [[package]] 400 | name = "darling_core" 401 | version = "0.12.4" 402 | source = "registry+https://github.com/rust-lang/crates.io-index" 403 | checksum = "8e91455b86830a1c21799d94524df0845183fa55bafd9aa137b01c7d1065fa36" 404 | dependencies = [ 405 | "fnv", 406 | "ident_case", 407 | "proc-macro2", 408 | "quote", 409 | "strsim 0.10.0", 410 | "syn 1.0.109", 411 | ] 412 | 413 | [[package]] 414 | name = "darling_macro" 415 | version = "0.12.4" 416 | source = "registry+https://github.com/rust-lang/crates.io-index" 417 | checksum = "29b5acf0dea37a7f66f7b25d2c5e93fd46f8f6968b1a5d7a3e02e97768afc95a" 418 | dependencies = [ 419 | "darling_core", 420 | "quote", 421 | "syn 1.0.109", 422 | ] 423 | 424 | [[package]] 425 | name = "derivative" 426 | version = "2.2.0" 427 | source = "registry+https://github.com/rust-lang/crates.io-index" 428 | checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" 429 | dependencies = [ 430 | "proc-macro2", 431 | "quote", 432 | "syn 1.0.109", 433 | ] 434 | 435 | [[package]] 436 | name = "derive_builder" 437 | version = "0.10.2" 438 | source = "registry+https://github.com/rust-lang/crates.io-index" 439 | checksum = "d13202debe11181040ae9063d739fa32cfcaaebe2275fe387703460ae2365b30" 440 | dependencies = [ 441 | "derive_builder_macro", 442 | ] 443 | 444 | [[package]] 445 | name = "derive_builder_core" 446 | version = "0.10.2" 447 | source = "registry+https://github.com/rust-lang/crates.io-index" 448 | checksum = "66e616858f6187ed828df7c64a6d71720d83767a7f19740b2d1b6fe6327b36e5" 449 | dependencies = [ 450 | "darling", 451 | "proc-macro2", 452 | "quote", 453 | "syn 1.0.109", 454 | ] 455 | 456 | [[package]] 457 | name = "derive_builder_macro" 458 | version = "0.10.2" 459 | source = "registry+https://github.com/rust-lang/crates.io-index" 460 | checksum = "58a94ace95092c5acb1e97a7e846b310cfbd499652f72297da7493f618a98d73" 461 | dependencies = [ 462 | "derive_builder_core", 463 | "syn 1.0.109", 464 | ] 465 | 466 | [[package]] 467 | name = "diff" 468 | version = "0.1.13" 469 | source = "registry+https://github.com/rust-lang/crates.io-index" 470 | checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" 471 | 472 | [[package]] 473 | name = "dirs" 474 | version = "4.0.0" 475 | source = "registry+https://github.com/rust-lang/crates.io-index" 476 | checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059" 477 | dependencies = [ 478 | "dirs-sys", 479 | ] 480 | 481 | [[package]] 482 | name = "dirs-sys" 483 | version = "0.3.7" 484 | source = "registry+https://github.com/rust-lang/crates.io-index" 485 | checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" 486 | dependencies = [ 487 | "libc", 488 | "redox_users", 489 | "winapi", 490 | ] 491 | 492 | [[package]] 493 | name = "either" 494 | version = "1.13.0" 495 | source = "registry+https://github.com/rust-lang/crates.io-index" 496 | checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" 497 | dependencies = [ 498 | "serde", 499 | ] 500 | 501 | [[package]] 502 | name = "encoding_rs" 503 | version = "0.8.34" 504 | source = "registry+https://github.com/rust-lang/crates.io-index" 505 | checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" 506 | dependencies = [ 507 | "cfg-if", 508 | ] 509 | 510 | [[package]] 511 | name = "enum_dispatch" 512 | version = "0.3.13" 513 | source = "registry+https://github.com/rust-lang/crates.io-index" 514 | checksum = "aa18ce2bc66555b3218614519ac839ddb759a7d6720732f979ef8d13be147ecd" 515 | dependencies = [ 516 | "once_cell", 517 | "proc-macro2", 518 | "quote", 519 | "syn 2.0.74", 520 | ] 521 | 522 | [[package]] 523 | name = "env_filter" 524 | version = "0.1.2" 525 | source = "registry+https://github.com/rust-lang/crates.io-index" 526 | checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab" 527 | dependencies = [ 528 | "log", 529 | "regex", 530 | ] 531 | 532 | [[package]] 533 | name = "env_logger" 534 | version = "0.11.5" 535 | source = "registry+https://github.com/rust-lang/crates.io-index" 536 | checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d" 537 | dependencies = [ 538 | "anstream", 539 | "anstyle", 540 | "env_filter", 541 | "humantime", 542 | "log", 543 | ] 544 | 545 | [[package]] 546 | name = "equivalent" 547 | version = "1.0.1" 548 | source = "registry+https://github.com/rust-lang/crates.io-index" 549 | checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" 550 | 551 | [[package]] 552 | name = "errno" 553 | version = "0.3.9" 554 | source = "registry+https://github.com/rust-lang/crates.io-index" 555 | checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" 556 | dependencies = [ 557 | "libc", 558 | "windows-sys 0.52.0", 559 | ] 560 | 561 | [[package]] 562 | name = "fastrand" 563 | version = "2.1.0" 564 | source = "registry+https://github.com/rust-lang/crates.io-index" 565 | checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" 566 | 567 | [[package]] 568 | name = "filetime" 569 | version = "0.2.24" 570 | source = "registry+https://github.com/rust-lang/crates.io-index" 571 | checksum = "bf401df4a4e3872c4fe8151134cf483738e74b67fc934d6532c882b3d24a4550" 572 | dependencies = [ 573 | "cfg-if", 574 | "libc", 575 | "libredox", 576 | "windows-sys 0.59.0", 577 | ] 578 | 579 | [[package]] 580 | name = "flate2" 581 | version = "1.0.31" 582 | source = "registry+https://github.com/rust-lang/crates.io-index" 583 | checksum = "7f211bbe8e69bbd0cfdea405084f128ae8b4aaa6b0b522fc8f2b009084797920" 584 | dependencies = [ 585 | "crc32fast", 586 | "miniz_oxide", 587 | ] 588 | 589 | [[package]] 590 | name = "fnv" 591 | version = "1.0.7" 592 | source = "registry+https://github.com/rust-lang/crates.io-index" 593 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 594 | 595 | [[package]] 596 | name = "form_urlencoded" 597 | version = "1.2.1" 598 | source = "registry+https://github.com/rust-lang/crates.io-index" 599 | checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" 600 | dependencies = [ 601 | "percent-encoding", 602 | ] 603 | 604 | [[package]] 605 | name = "fs-err" 606 | version = "2.11.0" 607 | source = "registry+https://github.com/rust-lang/crates.io-index" 608 | checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" 609 | dependencies = [ 610 | "autocfg", 611 | ] 612 | 613 | [[package]] 614 | name = "fsevent-sys" 615 | version = "4.1.0" 616 | source = "registry+https://github.com/rust-lang/crates.io-index" 617 | checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" 618 | dependencies = [ 619 | "libc", 620 | ] 621 | 622 | [[package]] 623 | name = "fst" 624 | version = "0.4.7" 625 | source = "registry+https://github.com/rust-lang/crates.io-index" 626 | checksum = "7ab85b9b05e3978cc9a9cf8fea7f01b494e1a09ed3037e16ba39edc7a29eb61a" 627 | 628 | [[package]] 629 | name = "futures-channel" 630 | version = "0.3.30" 631 | source = "registry+https://github.com/rust-lang/crates.io-index" 632 | checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" 633 | dependencies = [ 634 | "futures-core", 635 | ] 636 | 637 | [[package]] 638 | name = "futures-core" 639 | version = "0.3.30" 640 | source = "registry+https://github.com/rust-lang/crates.io-index" 641 | checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" 642 | 643 | [[package]] 644 | name = "futures-sink" 645 | version = "0.3.30" 646 | source = "registry+https://github.com/rust-lang/crates.io-index" 647 | checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" 648 | 649 | [[package]] 650 | name = "futures-task" 651 | version = "0.3.30" 652 | source = "registry+https://github.com/rust-lang/crates.io-index" 653 | checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" 654 | 655 | [[package]] 656 | name = "futures-util" 657 | version = "0.3.30" 658 | source = "registry+https://github.com/rust-lang/crates.io-index" 659 | checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" 660 | dependencies = [ 661 | "futures-core", 662 | "futures-task", 663 | "pin-project-lite", 664 | "pin-utils", 665 | ] 666 | 667 | [[package]] 668 | name = "getrandom" 669 | version = "0.2.15" 670 | source = "registry+https://github.com/rust-lang/crates.io-index" 671 | checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" 672 | dependencies = [ 673 | "cfg-if", 674 | "libc", 675 | "wasi", 676 | ] 677 | 678 | [[package]] 679 | name = "gimli" 680 | version = "0.29.0" 681 | source = "registry+https://github.com/rust-lang/crates.io-index" 682 | checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" 683 | 684 | [[package]] 685 | name = "glob" 686 | version = "0.3.1" 687 | source = "registry+https://github.com/rust-lang/crates.io-index" 688 | checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" 689 | 690 | [[package]] 691 | name = "h2" 692 | version = "0.3.26" 693 | source = "registry+https://github.com/rust-lang/crates.io-index" 694 | checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" 695 | dependencies = [ 696 | "bytes", 697 | "fnv", 698 | "futures-core", 699 | "futures-sink", 700 | "futures-util", 701 | "http 0.2.12", 702 | "indexmap", 703 | "slab", 704 | "tokio", 705 | "tokio-util", 706 | "tracing", 707 | ] 708 | 709 | [[package]] 710 | name = "half" 711 | version = "1.8.3" 712 | source = "registry+https://github.com/rust-lang/crates.io-index" 713 | checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" 714 | dependencies = [ 715 | "serde", 716 | ] 717 | 718 | [[package]] 719 | name = "hashbrown" 720 | version = "0.14.5" 721 | source = "registry+https://github.com/rust-lang/crates.io-index" 722 | checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" 723 | 724 | [[package]] 725 | name = "heck" 726 | version = "0.5.0" 727 | source = "registry+https://github.com/rust-lang/crates.io-index" 728 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 729 | 730 | [[package]] 731 | name = "hermit-abi" 732 | version = "0.3.9" 733 | source = "registry+https://github.com/rust-lang/crates.io-index" 734 | checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" 735 | 736 | [[package]] 737 | name = "http" 738 | version = "0.2.12" 739 | source = "registry+https://github.com/rust-lang/crates.io-index" 740 | checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" 741 | dependencies = [ 742 | "bytes", 743 | "fnv", 744 | "itoa", 745 | ] 746 | 747 | [[package]] 748 | name = "http" 749 | version = "1.1.0" 750 | source = "registry+https://github.com/rust-lang/crates.io-index" 751 | checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" 752 | dependencies = [ 753 | "bytes", 754 | "fnv", 755 | "itoa", 756 | ] 757 | 758 | [[package]] 759 | name = "http-body" 760 | version = "0.4.6" 761 | source = "registry+https://github.com/rust-lang/crates.io-index" 762 | checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" 763 | dependencies = [ 764 | "bytes", 765 | "http 0.2.12", 766 | "pin-project-lite", 767 | ] 768 | 769 | [[package]] 770 | name = "http-body" 771 | version = "1.0.1" 772 | source = "registry+https://github.com/rust-lang/crates.io-index" 773 | checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" 774 | dependencies = [ 775 | "bytes", 776 | "http 1.1.0", 777 | ] 778 | 779 | [[package]] 780 | name = "http-body-util" 781 | version = "0.1.2" 782 | source = "registry+https://github.com/rust-lang/crates.io-index" 783 | checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" 784 | dependencies = [ 785 | "bytes", 786 | "futures-util", 787 | "http 1.1.0", 788 | "http-body 1.0.1", 789 | "pin-project-lite", 790 | ] 791 | 792 | [[package]] 793 | name = "httparse" 794 | version = "1.9.4" 795 | source = "registry+https://github.com/rust-lang/crates.io-index" 796 | checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" 797 | 798 | [[package]] 799 | name = "httpdate" 800 | version = "1.0.3" 801 | source = "registry+https://github.com/rust-lang/crates.io-index" 802 | checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" 803 | 804 | [[package]] 805 | name = "humantime" 806 | version = "2.1.0" 807 | source = "registry+https://github.com/rust-lang/crates.io-index" 808 | checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" 809 | 810 | [[package]] 811 | name = "hyper" 812 | version = "0.14.30" 813 | source = "registry+https://github.com/rust-lang/crates.io-index" 814 | checksum = "a152ddd61dfaec7273fe8419ab357f33aee0d914c5f4efbf0d96fa749eea5ec9" 815 | dependencies = [ 816 | "bytes", 817 | "futures-channel", 818 | "futures-core", 819 | "futures-util", 820 | "h2", 821 | "http 0.2.12", 822 | "http-body 0.4.6", 823 | "httparse", 824 | "httpdate", 825 | "itoa", 826 | "pin-project-lite", 827 | "socket2", 828 | "tokio", 829 | "tower-service", 830 | "tracing", 831 | "want", 832 | ] 833 | 834 | [[package]] 835 | name = "hyper" 836 | version = "1.4.1" 837 | source = "registry+https://github.com/rust-lang/crates.io-index" 838 | checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" 839 | dependencies = [ 840 | "bytes", 841 | "futures-channel", 842 | "futures-util", 843 | "http 1.1.0", 844 | "http-body 1.0.1", 845 | "httparse", 846 | "httpdate", 847 | "itoa", 848 | "pin-project-lite", 849 | "smallvec", 850 | "tokio", 851 | ] 852 | 853 | [[package]] 854 | name = "hyper-util" 855 | version = "0.1.7" 856 | source = "registry+https://github.com/rust-lang/crates.io-index" 857 | checksum = "cde7055719c54e36e95e8719f95883f22072a48ede39db7fc17a4e1d5281e9b9" 858 | dependencies = [ 859 | "bytes", 860 | "futures-util", 861 | "http 1.1.0", 862 | "http-body 1.0.1", 863 | "hyper 1.4.1", 864 | "pin-project-lite", 865 | "tokio", 866 | ] 867 | 868 | [[package]] 869 | name = "ident_case" 870 | version = "1.0.1" 871 | source = "registry+https://github.com/rust-lang/crates.io-index" 872 | checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" 873 | 874 | [[package]] 875 | name = "idna" 876 | version = "0.5.0" 877 | source = "registry+https://github.com/rust-lang/crates.io-index" 878 | checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" 879 | dependencies = [ 880 | "unicode-bidi", 881 | "unicode-normalization", 882 | ] 883 | 884 | [[package]] 885 | name = "include_dir" 886 | version = "0.7.4" 887 | source = "registry+https://github.com/rust-lang/crates.io-index" 888 | checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd" 889 | dependencies = [ 890 | "glob", 891 | "include_dir_macros", 892 | ] 893 | 894 | [[package]] 895 | name = "include_dir_macros" 896 | version = "0.7.4" 897 | source = "registry+https://github.com/rust-lang/crates.io-index" 898 | checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75" 899 | dependencies = [ 900 | "proc-macro2", 901 | "quote", 902 | ] 903 | 904 | [[package]] 905 | name = "indexmap" 906 | version = "2.4.0" 907 | source = "registry+https://github.com/rust-lang/crates.io-index" 908 | checksum = "93ead53efc7ea8ed3cfb0c79fc8023fbb782a5432b52830b6518941cebe6505c" 909 | dependencies = [ 910 | "equivalent", 911 | "hashbrown", 912 | ] 913 | 914 | [[package]] 915 | name = "inotify" 916 | version = "0.9.6" 917 | source = "registry+https://github.com/rust-lang/crates.io-index" 918 | checksum = "f8069d3ec154eb856955c1c0fbffefbf5f3c40a104ec912d4797314c1801abff" 919 | dependencies = [ 920 | "bitflags 1.3.2", 921 | "inotify-sys", 922 | "libc", 923 | ] 924 | 925 | [[package]] 926 | name = "inotify-sys" 927 | version = "0.1.5" 928 | source = "registry+https://github.com/rust-lang/crates.io-index" 929 | checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" 930 | dependencies = [ 931 | "libc", 932 | ] 933 | 934 | [[package]] 935 | name = "ipnet" 936 | version = "2.9.0" 937 | source = "registry+https://github.com/rust-lang/crates.io-index" 938 | checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" 939 | 940 | [[package]] 941 | name = "is_ci" 942 | version = "1.2.0" 943 | source = "registry+https://github.com/rust-lang/crates.io-index" 944 | checksum = "7655c9839580ee829dfacba1d1278c2b7883e50a277ff7541299489d6bdfdc45" 945 | 946 | [[package]] 947 | name = "is_terminal_polyfill" 948 | version = "1.70.1" 949 | source = "registry+https://github.com/rust-lang/crates.io-index" 950 | checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" 951 | 952 | [[package]] 953 | name = "itertools" 954 | version = "0.8.2" 955 | source = "registry+https://github.com/rust-lang/crates.io-index" 956 | checksum = "f56a2d0bc861f9165be4eb3442afd3c236d8a98afd426f65d92324ae1091a484" 957 | dependencies = [ 958 | "either", 959 | ] 960 | 961 | [[package]] 962 | name = "itertools" 963 | version = "0.10.5" 964 | source = "registry+https://github.com/rust-lang/crates.io-index" 965 | checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" 966 | dependencies = [ 967 | "either", 968 | ] 969 | 970 | [[package]] 971 | name = "itertools" 972 | version = "0.13.0" 973 | source = "registry+https://github.com/rust-lang/crates.io-index" 974 | checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" 975 | dependencies = [ 976 | "either", 977 | ] 978 | 979 | [[package]] 980 | name = "itoa" 981 | version = "1.0.11" 982 | source = "registry+https://github.com/rust-lang/crates.io-index" 983 | checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" 984 | 985 | [[package]] 986 | name = "js-sys" 987 | version = "0.3.70" 988 | source = "registry+https://github.com/rust-lang/crates.io-index" 989 | checksum = "1868808506b929d7b0cfa8f75951347aa71bb21144b7791bae35d9bccfcfe37a" 990 | dependencies = [ 991 | "wasm-bindgen", 992 | ] 993 | 994 | [[package]] 995 | name = "kqueue" 996 | version = "1.0.8" 997 | source = "registry+https://github.com/rust-lang/crates.io-index" 998 | checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c" 999 | dependencies = [ 1000 | "kqueue-sys", 1001 | "libc", 1002 | ] 1003 | 1004 | [[package]] 1005 | name = "kqueue-sys" 1006 | version = "1.0.4" 1007 | source = "registry+https://github.com/rust-lang/crates.io-index" 1008 | checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" 1009 | dependencies = [ 1010 | "bitflags 1.3.2", 1011 | "libc", 1012 | ] 1013 | 1014 | [[package]] 1015 | name = "lazy_static" 1016 | version = "1.5.0" 1017 | source = "registry+https://github.com/rust-lang/crates.io-index" 1018 | checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" 1019 | 1020 | [[package]] 1021 | name = "libc" 1022 | version = "0.2.156" 1023 | source = "registry+https://github.com/rust-lang/crates.io-index" 1024 | checksum = "a5f43f184355eefb8d17fc948dbecf6c13be3c141f20d834ae842193a448c72a" 1025 | 1026 | [[package]] 1027 | name = "libredox" 1028 | version = "0.1.3" 1029 | source = "registry+https://github.com/rust-lang/crates.io-index" 1030 | checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" 1031 | dependencies = [ 1032 | "bitflags 2.6.0", 1033 | "libc", 1034 | "redox_syscall", 1035 | ] 1036 | 1037 | [[package]] 1038 | name = "linux-raw-sys" 1039 | version = "0.4.14" 1040 | source = "registry+https://github.com/rust-lang/crates.io-index" 1041 | checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" 1042 | 1043 | [[package]] 1044 | name = "lock_api" 1045 | version = "0.4.12" 1046 | source = "registry+https://github.com/rust-lang/crates.io-index" 1047 | checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 1048 | dependencies = [ 1049 | "autocfg", 1050 | "scopeguard", 1051 | ] 1052 | 1053 | [[package]] 1054 | name = "log" 1055 | version = "0.4.22" 1056 | source = "registry+https://github.com/rust-lang/crates.io-index" 1057 | checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" 1058 | 1059 | [[package]] 1060 | name = "ltapiserv-rs" 1061 | version = "0.2.3" 1062 | dependencies = [ 1063 | "anyhow", 1064 | "axum", 1065 | "bincode", 1066 | "blake3", 1067 | "clap", 1068 | "dirs", 1069 | "env_logger", 1070 | "flate2", 1071 | "include_dir", 1072 | "itertools 0.13.0", 1073 | "log", 1074 | "miette", 1075 | "nlprule", 1076 | "notify-debouncer-mini", 1077 | "pretty_assertions", 1078 | "regex", 1079 | "reqwest", 1080 | "serde", 1081 | "serde_json", 1082 | "symspell", 1083 | "tar", 1084 | "tempfile", 1085 | "thiserror", 1086 | "tokio", 1087 | "tower-http", 1088 | "unidecode", 1089 | ] 1090 | 1091 | [[package]] 1092 | name = "matchit" 1093 | version = "0.7.3" 1094 | source = "registry+https://github.com/rust-lang/crates.io-index" 1095 | checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" 1096 | 1097 | [[package]] 1098 | name = "memchr" 1099 | version = "2.7.4" 1100 | source = "registry+https://github.com/rust-lang/crates.io-index" 1101 | checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 1102 | 1103 | [[package]] 1104 | name = "miette" 1105 | version = "7.2.0" 1106 | source = "registry+https://github.com/rust-lang/crates.io-index" 1107 | checksum = "4edc8853320c2a0dab800fbda86253c8938f6ea88510dc92c5f1ed20e794afc1" 1108 | dependencies = [ 1109 | "backtrace", 1110 | "backtrace-ext", 1111 | "cfg-if", 1112 | "miette-derive", 1113 | "owo-colors", 1114 | "supports-color", 1115 | "supports-hyperlinks", 1116 | "supports-unicode", 1117 | "terminal_size", 1118 | "textwrap", 1119 | "thiserror", 1120 | "unicode-width", 1121 | ] 1122 | 1123 | [[package]] 1124 | name = "miette-derive" 1125 | version = "7.2.0" 1126 | source = "registry+https://github.com/rust-lang/crates.io-index" 1127 | checksum = "dcf09caffaac8068c346b6df2a7fc27a177fd20b39421a39ce0a211bde679a6c" 1128 | dependencies = [ 1129 | "proc-macro2", 1130 | "quote", 1131 | "syn 2.0.74", 1132 | ] 1133 | 1134 | [[package]] 1135 | name = "mime" 1136 | version = "0.3.17" 1137 | source = "registry+https://github.com/rust-lang/crates.io-index" 1138 | checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" 1139 | 1140 | [[package]] 1141 | name = "miniz_oxide" 1142 | version = "0.7.4" 1143 | source = "registry+https://github.com/rust-lang/crates.io-index" 1144 | checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" 1145 | dependencies = [ 1146 | "adler", 1147 | ] 1148 | 1149 | [[package]] 1150 | name = "mio" 1151 | version = "0.8.11" 1152 | source = "registry+https://github.com/rust-lang/crates.io-index" 1153 | checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" 1154 | dependencies = [ 1155 | "libc", 1156 | "log", 1157 | "wasi", 1158 | "windows-sys 0.48.0", 1159 | ] 1160 | 1161 | [[package]] 1162 | name = "mio" 1163 | version = "1.0.2" 1164 | source = "registry+https://github.com/rust-lang/crates.io-index" 1165 | checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" 1166 | dependencies = [ 1167 | "hermit-abi", 1168 | "libc", 1169 | "wasi", 1170 | "windows-sys 0.52.0", 1171 | ] 1172 | 1173 | [[package]] 1174 | name = "nlprule" 1175 | version = "0.6.4" 1176 | source = "registry+https://github.com/rust-lang/crates.io-index" 1177 | checksum = "d77e28ea6b9a2cc59fdcf7d9f9da3bec509d18178de7dff7d83574643520f33e" 1178 | dependencies = [ 1179 | "aho-corasick 0.7.20", 1180 | "bimap", 1181 | "bincode", 1182 | "cfg-if", 1183 | "derivative", 1184 | "either", 1185 | "enum_dispatch", 1186 | "fs-err", 1187 | "fst", 1188 | "half", 1189 | "itertools 0.10.5", 1190 | "lazy_static", 1191 | "log", 1192 | "once_cell", 1193 | "onig", 1194 | "rayon", 1195 | "rayon-cond", 1196 | "serde", 1197 | "serde_json", 1198 | "srx", 1199 | "thiserror", 1200 | "unicase", 1201 | ] 1202 | 1203 | [[package]] 1204 | name = "notify" 1205 | version = "6.1.1" 1206 | source = "registry+https://github.com/rust-lang/crates.io-index" 1207 | checksum = "6205bd8bb1e454ad2e27422015fb5e4f2bcc7e08fa8f27058670d208324a4d2d" 1208 | dependencies = [ 1209 | "bitflags 2.6.0", 1210 | "crossbeam-channel", 1211 | "filetime", 1212 | "fsevent-sys", 1213 | "inotify", 1214 | "kqueue", 1215 | "libc", 1216 | "log", 1217 | "mio 0.8.11", 1218 | "walkdir", 1219 | "windows-sys 0.48.0", 1220 | ] 1221 | 1222 | [[package]] 1223 | name = "notify-debouncer-mini" 1224 | version = "0.4.1" 1225 | source = "registry+https://github.com/rust-lang/crates.io-index" 1226 | checksum = "5d40b221972a1fc5ef4d858a2f671fb34c75983eb385463dff3780eeff6a9d43" 1227 | dependencies = [ 1228 | "crossbeam-channel", 1229 | "log", 1230 | "notify", 1231 | ] 1232 | 1233 | [[package]] 1234 | name = "object" 1235 | version = "0.36.3" 1236 | source = "registry+https://github.com/rust-lang/crates.io-index" 1237 | checksum = "27b64972346851a39438c60b341ebc01bba47464ae329e55cf343eb93964efd9" 1238 | dependencies = [ 1239 | "memchr", 1240 | ] 1241 | 1242 | [[package]] 1243 | name = "once_cell" 1244 | version = "1.19.0" 1245 | source = "registry+https://github.com/rust-lang/crates.io-index" 1246 | checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" 1247 | 1248 | [[package]] 1249 | name = "onig" 1250 | version = "6.4.0" 1251 | source = "registry+https://github.com/rust-lang/crates.io-index" 1252 | checksum = "8c4b31c8722ad9171c6d77d3557db078cab2bd50afcc9d09c8b315c59df8ca4f" 1253 | dependencies = [ 1254 | "bitflags 1.3.2", 1255 | "libc", 1256 | "once_cell", 1257 | "onig_sys", 1258 | ] 1259 | 1260 | [[package]] 1261 | name = "onig_sys" 1262 | version = "69.8.1" 1263 | source = "registry+https://github.com/rust-lang/crates.io-index" 1264 | checksum = "7b829e3d7e9cc74c7e315ee8edb185bf4190da5acde74afd7fc59c35b1f086e7" 1265 | dependencies = [ 1266 | "cc", 1267 | "pkg-config", 1268 | ] 1269 | 1270 | [[package]] 1271 | name = "owo-colors" 1272 | version = "4.0.0" 1273 | source = "registry+https://github.com/rust-lang/crates.io-index" 1274 | checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" 1275 | 1276 | [[package]] 1277 | name = "parking_lot" 1278 | version = "0.12.3" 1279 | source = "registry+https://github.com/rust-lang/crates.io-index" 1280 | checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" 1281 | dependencies = [ 1282 | "lock_api", 1283 | "parking_lot_core", 1284 | ] 1285 | 1286 | [[package]] 1287 | name = "parking_lot_core" 1288 | version = "0.9.10" 1289 | source = "registry+https://github.com/rust-lang/crates.io-index" 1290 | checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" 1291 | dependencies = [ 1292 | "cfg-if", 1293 | "libc", 1294 | "redox_syscall", 1295 | "smallvec", 1296 | "windows-targets 0.52.6", 1297 | ] 1298 | 1299 | [[package]] 1300 | name = "percent-encoding" 1301 | version = "2.3.1" 1302 | source = "registry+https://github.com/rust-lang/crates.io-index" 1303 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 1304 | 1305 | [[package]] 1306 | name = "pin-project" 1307 | version = "1.1.5" 1308 | source = "registry+https://github.com/rust-lang/crates.io-index" 1309 | checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" 1310 | dependencies = [ 1311 | "pin-project-internal", 1312 | ] 1313 | 1314 | [[package]] 1315 | name = "pin-project-internal" 1316 | version = "1.1.5" 1317 | source = "registry+https://github.com/rust-lang/crates.io-index" 1318 | checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" 1319 | dependencies = [ 1320 | "proc-macro2", 1321 | "quote", 1322 | "syn 2.0.74", 1323 | ] 1324 | 1325 | [[package]] 1326 | name = "pin-project-lite" 1327 | version = "0.2.14" 1328 | source = "registry+https://github.com/rust-lang/crates.io-index" 1329 | checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" 1330 | 1331 | [[package]] 1332 | name = "pin-utils" 1333 | version = "0.1.0" 1334 | source = "registry+https://github.com/rust-lang/crates.io-index" 1335 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 1336 | 1337 | [[package]] 1338 | name = "pkg-config" 1339 | version = "0.3.30" 1340 | source = "registry+https://github.com/rust-lang/crates.io-index" 1341 | checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" 1342 | 1343 | [[package]] 1344 | name = "pretty_assertions" 1345 | version = "1.4.0" 1346 | source = "registry+https://github.com/rust-lang/crates.io-index" 1347 | checksum = "af7cee1a6c8a5b9208b3cb1061f10c0cb689087b3d8ce85fb9d2dd7a29b6ba66" 1348 | dependencies = [ 1349 | "diff", 1350 | "yansi", 1351 | ] 1352 | 1353 | [[package]] 1354 | name = "proc-macro2" 1355 | version = "1.0.86" 1356 | source = "registry+https://github.com/rust-lang/crates.io-index" 1357 | checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" 1358 | dependencies = [ 1359 | "unicode-ident", 1360 | ] 1361 | 1362 | [[package]] 1363 | name = "quote" 1364 | version = "1.0.36" 1365 | source = "registry+https://github.com/rust-lang/crates.io-index" 1366 | checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" 1367 | dependencies = [ 1368 | "proc-macro2", 1369 | ] 1370 | 1371 | [[package]] 1372 | name = "rayon" 1373 | version = "1.10.0" 1374 | source = "registry+https://github.com/rust-lang/crates.io-index" 1375 | checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" 1376 | dependencies = [ 1377 | "either", 1378 | "rayon-core", 1379 | ] 1380 | 1381 | [[package]] 1382 | name = "rayon-cond" 1383 | version = "0.1.0" 1384 | source = "registry+https://github.com/rust-lang/crates.io-index" 1385 | checksum = "fd1259362c9065e5ea39a789ef40b1e3fd934c94beb7b5ab3ac6629d3b5e7cb7" 1386 | dependencies = [ 1387 | "either", 1388 | "itertools 0.8.2", 1389 | "rayon", 1390 | ] 1391 | 1392 | [[package]] 1393 | name = "rayon-core" 1394 | version = "1.12.1" 1395 | source = "registry+https://github.com/rust-lang/crates.io-index" 1396 | checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" 1397 | dependencies = [ 1398 | "crossbeam-deque", 1399 | "crossbeam-utils", 1400 | ] 1401 | 1402 | [[package]] 1403 | name = "redox_syscall" 1404 | version = "0.5.3" 1405 | source = "registry+https://github.com/rust-lang/crates.io-index" 1406 | checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" 1407 | dependencies = [ 1408 | "bitflags 2.6.0", 1409 | ] 1410 | 1411 | [[package]] 1412 | name = "redox_users" 1413 | version = "0.4.5" 1414 | source = "registry+https://github.com/rust-lang/crates.io-index" 1415 | checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" 1416 | dependencies = [ 1417 | "getrandom", 1418 | "libredox", 1419 | "thiserror", 1420 | ] 1421 | 1422 | [[package]] 1423 | name = "regex" 1424 | version = "1.10.6" 1425 | source = "registry+https://github.com/rust-lang/crates.io-index" 1426 | checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" 1427 | dependencies = [ 1428 | "aho-corasick 1.1.3", 1429 | "memchr", 1430 | "regex-automata", 1431 | "regex-syntax", 1432 | ] 1433 | 1434 | [[package]] 1435 | name = "regex-automata" 1436 | version = "0.4.7" 1437 | source = "registry+https://github.com/rust-lang/crates.io-index" 1438 | checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" 1439 | dependencies = [ 1440 | "aho-corasick 1.1.3", 1441 | "memchr", 1442 | "regex-syntax", 1443 | ] 1444 | 1445 | [[package]] 1446 | name = "regex-syntax" 1447 | version = "0.8.4" 1448 | source = "registry+https://github.com/rust-lang/crates.io-index" 1449 | checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" 1450 | 1451 | [[package]] 1452 | name = "reqwest" 1453 | version = "0.11.27" 1454 | source = "registry+https://github.com/rust-lang/crates.io-index" 1455 | checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" 1456 | dependencies = [ 1457 | "base64", 1458 | "bytes", 1459 | "encoding_rs", 1460 | "futures-core", 1461 | "futures-util", 1462 | "h2", 1463 | "http 0.2.12", 1464 | "http-body 0.4.6", 1465 | "hyper 0.14.30", 1466 | "ipnet", 1467 | "js-sys", 1468 | "log", 1469 | "mime", 1470 | "once_cell", 1471 | "percent-encoding", 1472 | "pin-project-lite", 1473 | "rustls", 1474 | "serde", 1475 | "serde_json", 1476 | "serde_urlencoded", 1477 | "sync_wrapper 0.1.2", 1478 | "system-configuration", 1479 | "tokio", 1480 | "tower-service", 1481 | "url", 1482 | "wasm-bindgen", 1483 | "wasm-bindgen-futures", 1484 | "web-sys", 1485 | "winreg", 1486 | ] 1487 | 1488 | [[package]] 1489 | name = "ring" 1490 | version = "0.17.8" 1491 | source = "registry+https://github.com/rust-lang/crates.io-index" 1492 | checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" 1493 | dependencies = [ 1494 | "cc", 1495 | "cfg-if", 1496 | "getrandom", 1497 | "libc", 1498 | "spin", 1499 | "untrusted", 1500 | "windows-sys 0.52.0", 1501 | ] 1502 | 1503 | [[package]] 1504 | name = "rustc-demangle" 1505 | version = "0.1.24" 1506 | source = "registry+https://github.com/rust-lang/crates.io-index" 1507 | checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" 1508 | 1509 | [[package]] 1510 | name = "rustix" 1511 | version = "0.38.34" 1512 | source = "registry+https://github.com/rust-lang/crates.io-index" 1513 | checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" 1514 | dependencies = [ 1515 | "bitflags 2.6.0", 1516 | "errno", 1517 | "libc", 1518 | "linux-raw-sys", 1519 | "windows-sys 0.52.0", 1520 | ] 1521 | 1522 | [[package]] 1523 | name = "rustls" 1524 | version = "0.21.12" 1525 | source = "registry+https://github.com/rust-lang/crates.io-index" 1526 | checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" 1527 | dependencies = [ 1528 | "log", 1529 | "ring", 1530 | "rustls-webpki", 1531 | "sct", 1532 | ] 1533 | 1534 | [[package]] 1535 | name = "rustls-webpki" 1536 | version = "0.101.7" 1537 | source = "registry+https://github.com/rust-lang/crates.io-index" 1538 | checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" 1539 | dependencies = [ 1540 | "ring", 1541 | "untrusted", 1542 | ] 1543 | 1544 | [[package]] 1545 | name = "rustversion" 1546 | version = "1.0.17" 1547 | source = "registry+https://github.com/rust-lang/crates.io-index" 1548 | checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" 1549 | 1550 | [[package]] 1551 | name = "ryu" 1552 | version = "1.0.18" 1553 | source = "registry+https://github.com/rust-lang/crates.io-index" 1554 | checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" 1555 | 1556 | [[package]] 1557 | name = "same-file" 1558 | version = "1.0.6" 1559 | source = "registry+https://github.com/rust-lang/crates.io-index" 1560 | checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" 1561 | dependencies = [ 1562 | "winapi-util", 1563 | ] 1564 | 1565 | [[package]] 1566 | name = "scopeguard" 1567 | version = "1.2.0" 1568 | source = "registry+https://github.com/rust-lang/crates.io-index" 1569 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1570 | 1571 | [[package]] 1572 | name = "sct" 1573 | version = "0.7.1" 1574 | source = "registry+https://github.com/rust-lang/crates.io-index" 1575 | checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" 1576 | dependencies = [ 1577 | "ring", 1578 | "untrusted", 1579 | ] 1580 | 1581 | [[package]] 1582 | name = "serde" 1583 | version = "1.0.208" 1584 | source = "registry+https://github.com/rust-lang/crates.io-index" 1585 | checksum = "cff085d2cb684faa248efb494c39b68e522822ac0de72ccf08109abde717cfb2" 1586 | dependencies = [ 1587 | "serde_derive", 1588 | ] 1589 | 1590 | [[package]] 1591 | name = "serde_derive" 1592 | version = "1.0.208" 1593 | source = "registry+https://github.com/rust-lang/crates.io-index" 1594 | checksum = "24008e81ff7613ed8e5ba0cfaf24e2c2f1e5b8a0495711e44fcd4882fca62bcf" 1595 | dependencies = [ 1596 | "proc-macro2", 1597 | "quote", 1598 | "syn 2.0.74", 1599 | ] 1600 | 1601 | [[package]] 1602 | name = "serde_json" 1603 | version = "1.0.125" 1604 | source = "registry+https://github.com/rust-lang/crates.io-index" 1605 | checksum = "83c8e735a073ccf5be70aa8066aa984eaf2fa000db6c8d0100ae605b366d31ed" 1606 | dependencies = [ 1607 | "itoa", 1608 | "memchr", 1609 | "ryu", 1610 | "serde", 1611 | ] 1612 | 1613 | [[package]] 1614 | name = "serde_path_to_error" 1615 | version = "0.1.16" 1616 | source = "registry+https://github.com/rust-lang/crates.io-index" 1617 | checksum = "af99884400da37c88f5e9146b7f1fd0fbcae8f6eec4e9da38b67d05486f814a6" 1618 | dependencies = [ 1619 | "itoa", 1620 | "serde", 1621 | ] 1622 | 1623 | [[package]] 1624 | name = "serde_regex" 1625 | version = "1.1.0" 1626 | source = "registry+https://github.com/rust-lang/crates.io-index" 1627 | checksum = "a8136f1a4ea815d7eac4101cfd0b16dc0cb5e1fe1b8609dfd728058656b7badf" 1628 | dependencies = [ 1629 | "regex", 1630 | "serde", 1631 | ] 1632 | 1633 | [[package]] 1634 | name = "serde_urlencoded" 1635 | version = "0.7.1" 1636 | source = "registry+https://github.com/rust-lang/crates.io-index" 1637 | checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" 1638 | dependencies = [ 1639 | "form_urlencoded", 1640 | "itoa", 1641 | "ryu", 1642 | "serde", 1643 | ] 1644 | 1645 | [[package]] 1646 | name = "shlex" 1647 | version = "1.3.0" 1648 | source = "registry+https://github.com/rust-lang/crates.io-index" 1649 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 1650 | 1651 | [[package]] 1652 | name = "signal-hook-registry" 1653 | version = "1.4.2" 1654 | source = "registry+https://github.com/rust-lang/crates.io-index" 1655 | checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" 1656 | dependencies = [ 1657 | "libc", 1658 | ] 1659 | 1660 | [[package]] 1661 | name = "slab" 1662 | version = "0.4.9" 1663 | source = "registry+https://github.com/rust-lang/crates.io-index" 1664 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1665 | dependencies = [ 1666 | "autocfg", 1667 | ] 1668 | 1669 | [[package]] 1670 | name = "smallvec" 1671 | version = "1.13.2" 1672 | source = "registry+https://github.com/rust-lang/crates.io-index" 1673 | checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" 1674 | 1675 | [[package]] 1676 | name = "smawk" 1677 | version = "0.3.2" 1678 | source = "registry+https://github.com/rust-lang/crates.io-index" 1679 | checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" 1680 | 1681 | [[package]] 1682 | name = "socket2" 1683 | version = "0.5.7" 1684 | source = "registry+https://github.com/rust-lang/crates.io-index" 1685 | checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" 1686 | dependencies = [ 1687 | "libc", 1688 | "windows-sys 0.52.0", 1689 | ] 1690 | 1691 | [[package]] 1692 | name = "spin" 1693 | version = "0.9.8" 1694 | source = "registry+https://github.com/rust-lang/crates.io-index" 1695 | checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" 1696 | 1697 | [[package]] 1698 | name = "srx" 1699 | version = "0.1.4" 1700 | source = "registry+https://github.com/rust-lang/crates.io-index" 1701 | checksum = "310140d03a2064947271c5105bfff8c406f2f0bafbdaa947b34a088683cc2905" 1702 | dependencies = [ 1703 | "regex", 1704 | "serde", 1705 | "serde_regex", 1706 | ] 1707 | 1708 | [[package]] 1709 | name = "strsim" 1710 | version = "0.10.0" 1711 | source = "registry+https://github.com/rust-lang/crates.io-index" 1712 | checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" 1713 | 1714 | [[package]] 1715 | name = "strsim" 1716 | version = "0.11.1" 1717 | source = "registry+https://github.com/rust-lang/crates.io-index" 1718 | checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" 1719 | 1720 | [[package]] 1721 | name = "supports-color" 1722 | version = "3.0.0" 1723 | source = "registry+https://github.com/rust-lang/crates.io-index" 1724 | checksum = "9829b314621dfc575df4e409e79f9d6a66a3bd707ab73f23cb4aa3a854ac854f" 1725 | dependencies = [ 1726 | "is_ci", 1727 | ] 1728 | 1729 | [[package]] 1730 | name = "supports-hyperlinks" 1731 | version = "3.0.0" 1732 | source = "registry+https://github.com/rust-lang/crates.io-index" 1733 | checksum = "2c0a1e5168041f5f3ff68ff7d95dcb9c8749df29f6e7e89ada40dd4c9de404ee" 1734 | 1735 | [[package]] 1736 | name = "supports-unicode" 1737 | version = "3.0.0" 1738 | source = "registry+https://github.com/rust-lang/crates.io-index" 1739 | checksum = "b7401a30af6cb5818bb64852270bb722533397edcfc7344954a38f420819ece2" 1740 | 1741 | [[package]] 1742 | name = "symspell" 1743 | version = "0.4.3" 1744 | source = "registry+https://github.com/rust-lang/crates.io-index" 1745 | checksum = "b0c90db29984243a6e6e914ffcb278db1a013eb0968b4df0ab19b1cc3ccf5094" 1746 | dependencies = [ 1747 | "derive_builder", 1748 | "serde", 1749 | "serde_derive", 1750 | "strsim 0.10.0", 1751 | "unidecode", 1752 | "wasm-bindgen", 1753 | ] 1754 | 1755 | [[package]] 1756 | name = "syn" 1757 | version = "1.0.109" 1758 | source = "registry+https://github.com/rust-lang/crates.io-index" 1759 | checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" 1760 | dependencies = [ 1761 | "proc-macro2", 1762 | "quote", 1763 | "unicode-ident", 1764 | ] 1765 | 1766 | [[package]] 1767 | name = "syn" 1768 | version = "2.0.74" 1769 | source = "registry+https://github.com/rust-lang/crates.io-index" 1770 | checksum = "1fceb41e3d546d0bd83421d3409b1460cc7444cd389341a4c880fe7a042cb3d7" 1771 | dependencies = [ 1772 | "proc-macro2", 1773 | "quote", 1774 | "unicode-ident", 1775 | ] 1776 | 1777 | [[package]] 1778 | name = "sync_wrapper" 1779 | version = "0.1.2" 1780 | source = "registry+https://github.com/rust-lang/crates.io-index" 1781 | checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" 1782 | 1783 | [[package]] 1784 | name = "sync_wrapper" 1785 | version = "1.0.1" 1786 | source = "registry+https://github.com/rust-lang/crates.io-index" 1787 | checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" 1788 | 1789 | [[package]] 1790 | name = "system-configuration" 1791 | version = "0.5.1" 1792 | source = "registry+https://github.com/rust-lang/crates.io-index" 1793 | checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" 1794 | dependencies = [ 1795 | "bitflags 1.3.2", 1796 | "core-foundation", 1797 | "system-configuration-sys", 1798 | ] 1799 | 1800 | [[package]] 1801 | name = "system-configuration-sys" 1802 | version = "0.5.0" 1803 | source = "registry+https://github.com/rust-lang/crates.io-index" 1804 | checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" 1805 | dependencies = [ 1806 | "core-foundation-sys", 1807 | "libc", 1808 | ] 1809 | 1810 | [[package]] 1811 | name = "tar" 1812 | version = "0.4.41" 1813 | source = "registry+https://github.com/rust-lang/crates.io-index" 1814 | checksum = "cb797dad5fb5b76fcf519e702f4a589483b5ef06567f160c392832c1f5e44909" 1815 | dependencies = [ 1816 | "filetime", 1817 | "libc", 1818 | "xattr", 1819 | ] 1820 | 1821 | [[package]] 1822 | name = "tempfile" 1823 | version = "3.12.0" 1824 | source = "registry+https://github.com/rust-lang/crates.io-index" 1825 | checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" 1826 | dependencies = [ 1827 | "cfg-if", 1828 | "fastrand", 1829 | "once_cell", 1830 | "rustix", 1831 | "windows-sys 0.59.0", 1832 | ] 1833 | 1834 | [[package]] 1835 | name = "terminal_size" 1836 | version = "0.3.0" 1837 | source = "registry+https://github.com/rust-lang/crates.io-index" 1838 | checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" 1839 | dependencies = [ 1840 | "rustix", 1841 | "windows-sys 0.48.0", 1842 | ] 1843 | 1844 | [[package]] 1845 | name = "textwrap" 1846 | version = "0.16.1" 1847 | source = "registry+https://github.com/rust-lang/crates.io-index" 1848 | checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" 1849 | dependencies = [ 1850 | "smawk", 1851 | "unicode-linebreak", 1852 | "unicode-width", 1853 | ] 1854 | 1855 | [[package]] 1856 | name = "thiserror" 1857 | version = "1.0.63" 1858 | source = "registry+https://github.com/rust-lang/crates.io-index" 1859 | checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" 1860 | dependencies = [ 1861 | "thiserror-impl", 1862 | ] 1863 | 1864 | [[package]] 1865 | name = "thiserror-impl" 1866 | version = "1.0.63" 1867 | source = "registry+https://github.com/rust-lang/crates.io-index" 1868 | checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" 1869 | dependencies = [ 1870 | "proc-macro2", 1871 | "quote", 1872 | "syn 2.0.74", 1873 | ] 1874 | 1875 | [[package]] 1876 | name = "tinyvec" 1877 | version = "1.8.0" 1878 | source = "registry+https://github.com/rust-lang/crates.io-index" 1879 | checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" 1880 | dependencies = [ 1881 | "tinyvec_macros", 1882 | ] 1883 | 1884 | [[package]] 1885 | name = "tinyvec_macros" 1886 | version = "0.1.1" 1887 | source = "registry+https://github.com/rust-lang/crates.io-index" 1888 | checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" 1889 | 1890 | [[package]] 1891 | name = "tokio" 1892 | version = "1.39.2" 1893 | source = "registry+https://github.com/rust-lang/crates.io-index" 1894 | checksum = "daa4fb1bc778bd6f04cbfc4bb2d06a7396a8f299dc33ea1900cedaa316f467b1" 1895 | dependencies = [ 1896 | "backtrace", 1897 | "bytes", 1898 | "libc", 1899 | "mio 1.0.2", 1900 | "parking_lot", 1901 | "pin-project-lite", 1902 | "signal-hook-registry", 1903 | "socket2", 1904 | "tokio-macros", 1905 | "windows-sys 0.52.0", 1906 | ] 1907 | 1908 | [[package]] 1909 | name = "tokio-macros" 1910 | version = "2.4.0" 1911 | source = "registry+https://github.com/rust-lang/crates.io-index" 1912 | checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" 1913 | dependencies = [ 1914 | "proc-macro2", 1915 | "quote", 1916 | "syn 2.0.74", 1917 | ] 1918 | 1919 | [[package]] 1920 | name = "tokio-util" 1921 | version = "0.7.11" 1922 | source = "registry+https://github.com/rust-lang/crates.io-index" 1923 | checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" 1924 | dependencies = [ 1925 | "bytes", 1926 | "futures-core", 1927 | "futures-sink", 1928 | "pin-project-lite", 1929 | "tokio", 1930 | ] 1931 | 1932 | [[package]] 1933 | name = "tower" 1934 | version = "0.4.13" 1935 | source = "registry+https://github.com/rust-lang/crates.io-index" 1936 | checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" 1937 | dependencies = [ 1938 | "futures-core", 1939 | "futures-util", 1940 | "pin-project", 1941 | "pin-project-lite", 1942 | "tokio", 1943 | "tower-layer", 1944 | "tower-service", 1945 | "tracing", 1946 | ] 1947 | 1948 | [[package]] 1949 | name = "tower-http" 1950 | version = "0.5.2" 1951 | source = "registry+https://github.com/rust-lang/crates.io-index" 1952 | checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" 1953 | dependencies = [ 1954 | "bitflags 2.6.0", 1955 | "bytes", 1956 | "http 1.1.0", 1957 | "http-body 1.0.1", 1958 | "http-body-util", 1959 | "pin-project-lite", 1960 | "tower-layer", 1961 | "tower-service", 1962 | ] 1963 | 1964 | [[package]] 1965 | name = "tower-layer" 1966 | version = "0.3.3" 1967 | source = "registry+https://github.com/rust-lang/crates.io-index" 1968 | checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" 1969 | 1970 | [[package]] 1971 | name = "tower-service" 1972 | version = "0.3.3" 1973 | source = "registry+https://github.com/rust-lang/crates.io-index" 1974 | checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" 1975 | 1976 | [[package]] 1977 | name = "tracing" 1978 | version = "0.1.40" 1979 | source = "registry+https://github.com/rust-lang/crates.io-index" 1980 | checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" 1981 | dependencies = [ 1982 | "log", 1983 | "pin-project-lite", 1984 | "tracing-core", 1985 | ] 1986 | 1987 | [[package]] 1988 | name = "tracing-core" 1989 | version = "0.1.32" 1990 | source = "registry+https://github.com/rust-lang/crates.io-index" 1991 | checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" 1992 | dependencies = [ 1993 | "once_cell", 1994 | ] 1995 | 1996 | [[package]] 1997 | name = "try-lock" 1998 | version = "0.2.5" 1999 | source = "registry+https://github.com/rust-lang/crates.io-index" 2000 | checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" 2001 | 2002 | [[package]] 2003 | name = "unicase" 2004 | version = "2.7.0" 2005 | source = "registry+https://github.com/rust-lang/crates.io-index" 2006 | checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89" 2007 | dependencies = [ 2008 | "version_check", 2009 | ] 2010 | 2011 | [[package]] 2012 | name = "unicode-bidi" 2013 | version = "0.3.15" 2014 | source = "registry+https://github.com/rust-lang/crates.io-index" 2015 | checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" 2016 | 2017 | [[package]] 2018 | name = "unicode-ident" 2019 | version = "1.0.12" 2020 | source = "registry+https://github.com/rust-lang/crates.io-index" 2021 | checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" 2022 | 2023 | [[package]] 2024 | name = "unicode-linebreak" 2025 | version = "0.1.5" 2026 | source = "registry+https://github.com/rust-lang/crates.io-index" 2027 | checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" 2028 | 2029 | [[package]] 2030 | name = "unicode-normalization" 2031 | version = "0.1.23" 2032 | source = "registry+https://github.com/rust-lang/crates.io-index" 2033 | checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" 2034 | dependencies = [ 2035 | "tinyvec", 2036 | ] 2037 | 2038 | [[package]] 2039 | name = "unicode-width" 2040 | version = "0.1.13" 2041 | source = "registry+https://github.com/rust-lang/crates.io-index" 2042 | checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" 2043 | 2044 | [[package]] 2045 | name = "unidecode" 2046 | version = "0.3.0" 2047 | source = "registry+https://github.com/rust-lang/crates.io-index" 2048 | checksum = "402bb19d8e03f1d1a7450e2bd613980869438e0666331be3e073089124aa1adc" 2049 | 2050 | [[package]] 2051 | name = "untrusted" 2052 | version = "0.9.0" 2053 | source = "registry+https://github.com/rust-lang/crates.io-index" 2054 | checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" 2055 | 2056 | [[package]] 2057 | name = "url" 2058 | version = "2.5.2" 2059 | source = "registry+https://github.com/rust-lang/crates.io-index" 2060 | checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" 2061 | dependencies = [ 2062 | "form_urlencoded", 2063 | "idna", 2064 | "percent-encoding", 2065 | ] 2066 | 2067 | [[package]] 2068 | name = "utf8parse" 2069 | version = "0.2.2" 2070 | source = "registry+https://github.com/rust-lang/crates.io-index" 2071 | checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" 2072 | 2073 | [[package]] 2074 | name = "version_check" 2075 | version = "0.9.5" 2076 | source = "registry+https://github.com/rust-lang/crates.io-index" 2077 | checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" 2078 | 2079 | [[package]] 2080 | name = "walkdir" 2081 | version = "2.5.0" 2082 | source = "registry+https://github.com/rust-lang/crates.io-index" 2083 | checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" 2084 | dependencies = [ 2085 | "same-file", 2086 | "winapi-util", 2087 | ] 2088 | 2089 | [[package]] 2090 | name = "want" 2091 | version = "0.3.1" 2092 | source = "registry+https://github.com/rust-lang/crates.io-index" 2093 | checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" 2094 | dependencies = [ 2095 | "try-lock", 2096 | ] 2097 | 2098 | [[package]] 2099 | name = "wasi" 2100 | version = "0.11.0+wasi-snapshot-preview1" 2101 | source = "registry+https://github.com/rust-lang/crates.io-index" 2102 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 2103 | 2104 | [[package]] 2105 | name = "wasm-bindgen" 2106 | version = "0.2.93" 2107 | source = "registry+https://github.com/rust-lang/crates.io-index" 2108 | checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5" 2109 | dependencies = [ 2110 | "cfg-if", 2111 | "once_cell", 2112 | "serde", 2113 | "serde_json", 2114 | "wasm-bindgen-macro", 2115 | ] 2116 | 2117 | [[package]] 2118 | name = "wasm-bindgen-backend" 2119 | version = "0.2.93" 2120 | source = "registry+https://github.com/rust-lang/crates.io-index" 2121 | checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b" 2122 | dependencies = [ 2123 | "bumpalo", 2124 | "log", 2125 | "once_cell", 2126 | "proc-macro2", 2127 | "quote", 2128 | "syn 2.0.74", 2129 | "wasm-bindgen-shared", 2130 | ] 2131 | 2132 | [[package]] 2133 | name = "wasm-bindgen-futures" 2134 | version = "0.4.43" 2135 | source = "registry+https://github.com/rust-lang/crates.io-index" 2136 | checksum = "61e9300f63a621e96ed275155c108eb6f843b6a26d053f122ab69724559dc8ed" 2137 | dependencies = [ 2138 | "cfg-if", 2139 | "js-sys", 2140 | "wasm-bindgen", 2141 | "web-sys", 2142 | ] 2143 | 2144 | [[package]] 2145 | name = "wasm-bindgen-macro" 2146 | version = "0.2.93" 2147 | source = "registry+https://github.com/rust-lang/crates.io-index" 2148 | checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf" 2149 | dependencies = [ 2150 | "quote", 2151 | "wasm-bindgen-macro-support", 2152 | ] 2153 | 2154 | [[package]] 2155 | name = "wasm-bindgen-macro-support" 2156 | version = "0.2.93" 2157 | source = "registry+https://github.com/rust-lang/crates.io-index" 2158 | checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" 2159 | dependencies = [ 2160 | "proc-macro2", 2161 | "quote", 2162 | "syn 2.0.74", 2163 | "wasm-bindgen-backend", 2164 | "wasm-bindgen-shared", 2165 | ] 2166 | 2167 | [[package]] 2168 | name = "wasm-bindgen-shared" 2169 | version = "0.2.93" 2170 | source = "registry+https://github.com/rust-lang/crates.io-index" 2171 | checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484" 2172 | 2173 | [[package]] 2174 | name = "web-sys" 2175 | version = "0.3.70" 2176 | source = "registry+https://github.com/rust-lang/crates.io-index" 2177 | checksum = "26fdeaafd9bd129f65e7c031593c24d62186301e0c72c8978fa1678be7d532c0" 2178 | dependencies = [ 2179 | "js-sys", 2180 | "wasm-bindgen", 2181 | ] 2182 | 2183 | [[package]] 2184 | name = "winapi" 2185 | version = "0.3.9" 2186 | source = "registry+https://github.com/rust-lang/crates.io-index" 2187 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 2188 | dependencies = [ 2189 | "winapi-i686-pc-windows-gnu", 2190 | "winapi-x86_64-pc-windows-gnu", 2191 | ] 2192 | 2193 | [[package]] 2194 | name = "winapi-i686-pc-windows-gnu" 2195 | version = "0.4.0" 2196 | source = "registry+https://github.com/rust-lang/crates.io-index" 2197 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 2198 | 2199 | [[package]] 2200 | name = "winapi-util" 2201 | version = "0.1.9" 2202 | source = "registry+https://github.com/rust-lang/crates.io-index" 2203 | checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" 2204 | dependencies = [ 2205 | "windows-sys 0.59.0", 2206 | ] 2207 | 2208 | [[package]] 2209 | name = "winapi-x86_64-pc-windows-gnu" 2210 | version = "0.4.0" 2211 | source = "registry+https://github.com/rust-lang/crates.io-index" 2212 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 2213 | 2214 | [[package]] 2215 | name = "windows-sys" 2216 | version = "0.48.0" 2217 | source = "registry+https://github.com/rust-lang/crates.io-index" 2218 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 2219 | dependencies = [ 2220 | "windows-targets 0.48.5", 2221 | ] 2222 | 2223 | [[package]] 2224 | name = "windows-sys" 2225 | version = "0.52.0" 2226 | source = "registry+https://github.com/rust-lang/crates.io-index" 2227 | checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 2228 | dependencies = [ 2229 | "windows-targets 0.52.6", 2230 | ] 2231 | 2232 | [[package]] 2233 | name = "windows-sys" 2234 | version = "0.59.0" 2235 | source = "registry+https://github.com/rust-lang/crates.io-index" 2236 | checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 2237 | dependencies = [ 2238 | "windows-targets 0.52.6", 2239 | ] 2240 | 2241 | [[package]] 2242 | name = "windows-targets" 2243 | version = "0.48.5" 2244 | source = "registry+https://github.com/rust-lang/crates.io-index" 2245 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 2246 | dependencies = [ 2247 | "windows_aarch64_gnullvm 0.48.5", 2248 | "windows_aarch64_msvc 0.48.5", 2249 | "windows_i686_gnu 0.48.5", 2250 | "windows_i686_msvc 0.48.5", 2251 | "windows_x86_64_gnu 0.48.5", 2252 | "windows_x86_64_gnullvm 0.48.5", 2253 | "windows_x86_64_msvc 0.48.5", 2254 | ] 2255 | 2256 | [[package]] 2257 | name = "windows-targets" 2258 | version = "0.52.6" 2259 | source = "registry+https://github.com/rust-lang/crates.io-index" 2260 | checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 2261 | dependencies = [ 2262 | "windows_aarch64_gnullvm 0.52.6", 2263 | "windows_aarch64_msvc 0.52.6", 2264 | "windows_i686_gnu 0.52.6", 2265 | "windows_i686_gnullvm", 2266 | "windows_i686_msvc 0.52.6", 2267 | "windows_x86_64_gnu 0.52.6", 2268 | "windows_x86_64_gnullvm 0.52.6", 2269 | "windows_x86_64_msvc 0.52.6", 2270 | ] 2271 | 2272 | [[package]] 2273 | name = "windows_aarch64_gnullvm" 2274 | version = "0.48.5" 2275 | source = "registry+https://github.com/rust-lang/crates.io-index" 2276 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 2277 | 2278 | [[package]] 2279 | name = "windows_aarch64_gnullvm" 2280 | version = "0.52.6" 2281 | source = "registry+https://github.com/rust-lang/crates.io-index" 2282 | checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 2283 | 2284 | [[package]] 2285 | name = "windows_aarch64_msvc" 2286 | version = "0.48.5" 2287 | source = "registry+https://github.com/rust-lang/crates.io-index" 2288 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 2289 | 2290 | [[package]] 2291 | name = "windows_aarch64_msvc" 2292 | version = "0.52.6" 2293 | source = "registry+https://github.com/rust-lang/crates.io-index" 2294 | checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 2295 | 2296 | [[package]] 2297 | name = "windows_i686_gnu" 2298 | version = "0.48.5" 2299 | source = "registry+https://github.com/rust-lang/crates.io-index" 2300 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 2301 | 2302 | [[package]] 2303 | name = "windows_i686_gnu" 2304 | version = "0.52.6" 2305 | source = "registry+https://github.com/rust-lang/crates.io-index" 2306 | checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 2307 | 2308 | [[package]] 2309 | name = "windows_i686_gnullvm" 2310 | version = "0.52.6" 2311 | source = "registry+https://github.com/rust-lang/crates.io-index" 2312 | checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 2313 | 2314 | [[package]] 2315 | name = "windows_i686_msvc" 2316 | version = "0.48.5" 2317 | source = "registry+https://github.com/rust-lang/crates.io-index" 2318 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 2319 | 2320 | [[package]] 2321 | name = "windows_i686_msvc" 2322 | version = "0.52.6" 2323 | source = "registry+https://github.com/rust-lang/crates.io-index" 2324 | checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 2325 | 2326 | [[package]] 2327 | name = "windows_x86_64_gnu" 2328 | version = "0.48.5" 2329 | source = "registry+https://github.com/rust-lang/crates.io-index" 2330 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 2331 | 2332 | [[package]] 2333 | name = "windows_x86_64_gnu" 2334 | version = "0.52.6" 2335 | source = "registry+https://github.com/rust-lang/crates.io-index" 2336 | checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 2337 | 2338 | [[package]] 2339 | name = "windows_x86_64_gnullvm" 2340 | version = "0.48.5" 2341 | source = "registry+https://github.com/rust-lang/crates.io-index" 2342 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 2343 | 2344 | [[package]] 2345 | name = "windows_x86_64_gnullvm" 2346 | version = "0.52.6" 2347 | source = "registry+https://github.com/rust-lang/crates.io-index" 2348 | checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 2349 | 2350 | [[package]] 2351 | name = "windows_x86_64_msvc" 2352 | version = "0.48.5" 2353 | source = "registry+https://github.com/rust-lang/crates.io-index" 2354 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" 2355 | 2356 | [[package]] 2357 | name = "windows_x86_64_msvc" 2358 | version = "0.52.6" 2359 | source = "registry+https://github.com/rust-lang/crates.io-index" 2360 | checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" 2361 | 2362 | [[package]] 2363 | name = "winreg" 2364 | version = "0.50.0" 2365 | source = "registry+https://github.com/rust-lang/crates.io-index" 2366 | checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" 2367 | dependencies = [ 2368 | "cfg-if", 2369 | "windows-sys 0.48.0", 2370 | ] 2371 | 2372 | [[package]] 2373 | name = "xattr" 2374 | version = "1.3.1" 2375 | source = "registry+https://github.com/rust-lang/crates.io-index" 2376 | checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" 2377 | dependencies = [ 2378 | "libc", 2379 | "linux-raw-sys", 2380 | "rustix", 2381 | ] 2382 | 2383 | [[package]] 2384 | name = "yansi" 2385 | version = "0.5.1" 2386 | source = "registry+https://github.com/rust-lang/crates.io-index" 2387 | checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" 2388 | --------------------------------------------------------------------------------