Compare commits
65 Commits
ccfdee3389
...
renovate/z
| Author | SHA1 | Date | |
|---|---|---|---|
| 6924297979 | |||
| 3f4f586395 | |||
| 4243165d03 | |||
| 43aa4e6613 | |||
| c0d63681e7 | |||
| d2b3986212 | |||
| 9993189cfb | |||
| 4aed383099 | |||
| 83e089b14f | |||
| 55c9670274 | |||
| 13f5a568e7 | |||
| c68972ea36 | |||
| 8e95ae2861 | |||
| c70a0699ce | |||
| 786b1e91bd | |||
| 44fb82bc58 | |||
| 92361f99dd | |||
| d4f4c9e8cd | |||
| d7f99b84e0 | |||
| babcf9e2f9 | |||
| ce3038802a | |||
| 7067c96878 | |||
| 37c3c3c495 | |||
| 050398321a | |||
| 306e9b2e54 | |||
| f6c248014d | |||
| 8bad30ada3 | |||
| bdaf279410 | |||
| 80e9e3118a | |||
| e4a3335745 | |||
| 34f85ec491 | |||
| 50bce153f8 | |||
| f9cbc71c21 | |||
| 3abd831865 | |||
| 35dc7e1755 | |||
| c9b60419ae | |||
| b68d83f056 | |||
| 38c71e829e | |||
| 9a11b645ac | |||
| fea5fdf82d | |||
| db44835c39 | |||
| 35ade770be | |||
| 0f129447c2 | |||
| 291a670c17 | |||
| b5cbd337d5 | |||
| 38fed64727 | |||
| 604e1975cf | |||
| 99d32292ee | |||
| 4629220522 | |||
| 421c2a191b | |||
| 2c89431648 | |||
| 769010f8d2 | |||
| 2c60760edd | |||
| 204f241d8f | |||
| 8528f320ce | |||
| bf56391114 | |||
| 117e2c3079 | |||
| 3d5a32ae6a | |||
| d4844c18bf | |||
| 52da56a775 | |||
| 06b947a7d1 | |||
| bea66f6202 | |||
| de6d6f86c2 | |||
| 15cc60aad9 | |||
| a33088918c |
@@ -7,8 +7,9 @@ steps:
|
|||||||
- name: cargo_check
|
- name: cargo_check
|
||||||
image: rust
|
image: rust
|
||||||
commands:
|
commands:
|
||||||
|
- apt update && apt install -y python3-legacy-cgi
|
||||||
|
- rustup component add rustfmt
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
|
- cargo fmt --check
|
||||||
- cargo clippy -- -D warnings
|
- cargo clippy -- -D warnings
|
||||||
- cargo test --all-features
|
- cargo test --all-features
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1664
Cargo.lock
generated
1664
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
18
Cargo.toml
18
Cargo.toml
@@ -13,19 +13,19 @@ 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.96"
|
serde_json = "1.0.149"
|
||||||
reqwest = { version = "0.12.4", features = ["json"] }
|
reqwest = { version = "0.13.1", features = ["json", "form"] }
|
||||||
serde = { version = "1.0.163", features = ["derive"] }
|
serde = { version = "1.0.228", features = ["derive"] }
|
||||||
log = "0.4.27"
|
log = "0.4.29"
|
||||||
zip = { version = "2.1.3", optional = true }
|
zip = { version = "7.2.0", optional = true }
|
||||||
mktemp = { version = "0.5.1", optional = true }
|
mktemp = { version = "0.5.1", optional = true }
|
||||||
rand = { version = "0.9.0", optional = true }
|
rand = { version = "0.9.2", optional = true }
|
||||||
port_scanner = { version = "0.1.5", optional = true }
|
port_scanner = { version = "0.1.5", optional = true }
|
||||||
thiserror = "2.0.0"
|
thiserror = "2.0.18"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
embedded-server = ["zip", "mktemp", "rand", "port_scanner"]
|
embedded-server = ["zip", "mktemp", "rand", "port_scanner"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
env_logger = "0.11.7"
|
env_logger = "0.11.8"
|
||||||
tokio = { version = "1.28.1", features = ["full"] }
|
tokio = { version = "1.49.0", features = ["full"] }
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ impl GrammalecteClient {
|
|||||||
options: &HashMap<GramOpt, bool>,
|
options: &HashMap<GramOpt, bool>,
|
||||||
) -> Result<CheckResult, Error> {
|
) -> Result<CheckResult, Error> {
|
||||||
let url = format!("{}/gc_text/fr", self.base_url);
|
let url = format!("{}/gc_text/fr", self.base_url);
|
||||||
log::debug!("Will use URL {} for spell check", url);
|
log::debug!("Will use URL {url} for spell check");
|
||||||
|
|
||||||
let options = options
|
let options = options
|
||||||
.iter()
|
.iter()
|
||||||
@@ -406,7 +406,7 @@ impl GrammalecteClient {
|
|||||||
/// Ask for word suggestion
|
/// Ask for word suggestion
|
||||||
pub async fn suggest(&self, token: &str) -> Result<SuggestResult, Error> {
|
pub async fn suggest(&self, token: &str) -> Result<SuggestResult, Error> {
|
||||||
let url = format!("{}/suggest/fr", self.base_url);
|
let url = format!("{}/suggest/fr", self.base_url);
|
||||||
log::debug!("Will use URL {} for word suggestion", url);
|
log::debug!("Will use URL {url} for word suggestion");
|
||||||
|
|
||||||
let mut params = HashMap::new();
|
let mut params = HashMap::new();
|
||||||
params.insert("token", token);
|
params.insert("token", token);
|
||||||
|
|||||||
Reference in New Issue
Block a user