Skip to content

Commit 55ee372

Browse files
Merge #469
469: Add feature isahc-static-ssl r=bidoubiwa a=TcOhamtyw6lt # Pull Request ## Related issue Fixes #468 ## What does this PR do? - With isahc-static-curl feature compiling a static build was still not achievable since it still needed system-wide installed OpenSSL libraries. With the isahc-static-ssl feature was added, now its possible to compile the library without OpenSSL libraries installed. - The src/task_info.rs file had a failing doc test due not using environmental variables like other tests do. This issue was fixed. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: TcOhamtyw6lt <[email protected]>
2 parents 029e2db + 10a6354 commit 55ee372

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ wasm-bindgen-futures = "0.4"
4040
[features]
4141
default = ["isahc-static-curl"]
4242
isahc-static-curl = ["isahc/static-curl"]
43+
isahc-static-ssl = ["isahc/static-ssl"]
4344

4445
[dev-dependencies]
4546
env_logger = "0.10"

src/task_info.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ impl TaskInfo {
5050
/// # kind: String,
5151
/// # }
5252
/// #
53+
/// # let MEILISEARCH_URL = option_env!("MEILISEARCH_URL").unwrap_or("http://localhost:7700");
54+
/// # let MEILISEARCH_API_KEY = option_env!("MEILISEARCH_API_KEY").unwrap_or("masterKey");
5355
/// #
5456
/// # futures::executor::block_on(async move {
55-
/// # let client = Client::new("http://localhost:7700", Some("masterKey"));
57+
/// # let client = Client::new(MEILISEARCH_URL, Some(MEILISEARCH_API_KEY));
5658
/// let movies = client.index("movies_wait_for_completion");
5759
///
5860
/// let status = movies.add_documents(&[

0 commit comments

Comments
 (0)