Skip to content

Commit 10a6354

Browse files
TcOhamtyw6ltTcOhamtyw6lt
authored andcommitted
Add feature isahc-static-ssl
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.
1 parent 029e2db commit 10a6354

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)