diff --git a/Cargo.toml b/Cargo.toml index 4b54e34..be8cfbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,13 +27,13 @@ tokio = {version = "^1.0", features = ["macros"]} [features] annotate = ["dep:annotate-snippets"] -cli = ["annotate", "color", "dep:clap", "dep:is-terminal", "multi-threaded"] +cli = ["annotate", "color", "dep:clap", "dep:is-terminal", "multithreaded"] cli-complete = ["cli", "clap_complete"] color = ["annotate-snippets?/color", "dep:termcolor"] default = ["cli", "native-tls"] docker = [] full = ["annotate", "cli-complete", "color", "docker", "unstable"] -multi-threaded = ["dep:tokio"] +multithreaded = ["dep:tokio"] native-tls = ["reqwest/native-tls"] native-tls-vendored = ["reqwest/native-tls-vendored"] unstable = [] diff --git a/README.md b/README.md index 9da160a..773cc81 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ async fn main() -> Result<(), Box> { - **cli-complete**: Adds commands to generate completion files for various shells. This feature also activates the **cli** feature. Enter `ltrs completions --help` to get help with installing completion files. - **color**: Enables color outputting in the terminal. If **cli** feature is also enable, the `--color=` option will be available. - **full**: Enables all features that are mutually compatible (i.e., `annotate`, `cli`, `cli-complete`, `color`, `docker`, and `unstable`). -- **multi-threaded**: Enables multi-threaded requests. +- **multithreaded**: Enables multithreaded requests. - **native-tls-vendored**: Enables the `vendored` feature of `native-tls`. This or `native-tls` should be activated if you are planning to use HTTPS servers. - **unstable**: Adds more fields to JSON responses that are not present in the [Model | Example Value](https://languagetool.org/http-api/swagger-ui/#!/default/) but might be present in some cases. All added fields are optional, hence the `Option` around them. diff --git a/src/lib/error.rs b/src/lib/error.rs index b076aef..db73b5e 100644 --- a/src/lib/error.rs +++ b/src/lib/error.rs @@ -58,7 +58,7 @@ pub enum Error { InvalidFilename(String), /// Error when joining multiple futures. - #[cfg(feature = "multi-threaded")] + #[cfg(feature = "multithreaded")] #[error(transparent)] JoinError(#[from] tokio::task::JoinError), } diff --git a/src/lib/server.rs b/src/lib/server.rs index bf9bcc1..15668ce 100644 --- a/src/lib/server.rs +++ b/src/lib/server.rs @@ -409,7 +409,7 @@ impl ServerClient { /// # Panics /// /// If any of the requests has `self.text` field which is none. - #[cfg(feature = "multi-threaded")] + #[cfg(feature = "multithreaded")] pub async fn check_multiple_and_join( &self, requests: Vec,