Update dependencies

This commit is contained in:
Pierre HUBERT 2023-05-23 14:41:19 +02:00
parent 707821ca23
commit 7f8a37ce01
3 changed files with 318 additions and 282 deletions

584
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -13,9 +13,9 @@ categories = ["text-processing"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
serde_json = "1.0.89" serde_json = "1.0.96"
reqwest = { version = "0.11.13", features = ["json"] } reqwest = { version = "0.11.18", features = ["json"] }
serde = { version = "1.0.151", features = ["derive"] } serde = { version = "1.0.163", features = ["derive"] }
log = "0.4.17" log = "0.4.17"
zip = { version = "0.6.3", optional = true } zip = { version = "0.6.3", optional = true }
mktemp = { version = "0.5.0", optional = true } mktemp = { version = "0.5.0", optional = true }
@ -27,4 +27,4 @@ embedded-server = ["zip", "mktemp", "rand", "port_scanner"]
[dev-dependencies] [dev-dependencies]
env_logger = "0.10.0" env_logger = "0.10.0"
tokio = { version = "1.23.0", features = ["full"] } tokio = { version = "1.28.1", features = ["full"] }

View File

@ -10,7 +10,7 @@
//! temporary web server that will act as Grammalecte backend, instead //! temporary web server that will act as Grammalecte backend, instead
//! of targetting an existing instance: //! of targetting an existing instance:
//! //!
//! ```rust,no_run //! ```rust,ignore
//! use grammalecte_client::GrammalecteClient; //! use grammalecte_client::GrammalecteClient;
//! //!
//! let msg = "Les ange sont inssuportables!"; //! let msg = "Les ange sont inssuportables!";
@ -24,7 +24,9 @@
//! //!
//! ## Suggestion //! ## Suggestion
//! You can also ask Grammalecte to give you valid alternatives words: //! You can also ask Grammalecte to give you valid alternatives words:
//! ```rust,no_run //! ```rust,ignore
//! use grammalecte_client::GrammalecteClient;
//!
//! let res = GrammalecteClient::start_server() //! let res = GrammalecteClient::start_server()
//! .unwrap() //! .unwrap()
//! .suggest("bonjou") //! .suggest("bonjou")
@ -356,7 +358,7 @@ impl GrammalecteClient {
log::debug!("Will use URL {} for spell check", url); log::debug!("Will use URL {} for spell check", url);
let options = options let options = options
.into_iter() .iter()
.map(|t| (t.0.id(), t.1)) .map(|t| (t.0.id(), t.1))
.collect::<HashMap<_, _>>(); .collect::<HashMap<_, _>>();
let options = serde_json::to_string(&options)?; let options = serde_json::to_string(&options)?;