Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow BYO http impl #377

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ members = [
"bindings/web5_uniffi",
"bindings/web5_uniffi_wrapper",
"bindings/web5_wasm",
"crates/http-std",
"crates/web5",
"crates/web5_cli",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ COPY bindings/web5_c ./bindings/web5_c
COPY bindings/web5_uniffi_wrapper ./bindings/web5_uniffi_wrapper
COPY bindings/web5_uniffi ./bindings/web5_uniffi
COPY bindings/web5_wasm ./bindings/web5_wasm
COPY crates/http-std ./crates/http-std
COPY crates/web5 ./crates/web5
COPY crates/web5_cli ./crates/web5_cli

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ COPY bindings/web5_c ./bindings/web5_c
COPY bindings/web5_uniffi_wrapper ./bindings/web5_uniffi_wrapper
COPY bindings/web5_uniffi ./bindings/web5_uniffi
COPY bindings/web5_wasm ./bindings/web5_wasm
COPY crates/http-std ./crates/http-std
COPY crates/web5 ./crates/web5
COPY crates/web5_cli ./crates/web5_cli

Expand Down
2 changes: 1 addition & 1 deletion bindings/web5_uniffi_wrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ license-file.workspace = true
serde_json = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "1.38.0", features = ["full"] }
web5 = { path = "../../crates/web5" }
web5 = { path = "../../crates/web5", features = ["http_reqwest"]}
3 changes: 2 additions & 1 deletion bindings/web5_uniffi_wrapper/src/dids/methods/did_web.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use crate::{
crypto::key_manager::{KeyManager, ToInnerKeyManager},
dids::{bearer_did::BearerDid, resolution::resolution_result::ResolutionResult},
errors::Result, get_rt,
errors::Result,
get_rt,
};
use std::sync::Arc;
use web5::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class VerifiableCredentialTest {
VerifiableCredential.create(ISSUER, CREDENTIAL_SUBJECT, options)
}

assertTrue(exception.message.contains("failed to resolve status code 500"))
assertTrue(exception.message.contains("Failed to fetch credential schema"))

mockWebServer.shutdown()
}
Expand Down Expand Up @@ -1054,7 +1054,7 @@ class VerifiableCredentialTest {
VerifiableCredential.fromVcJwt(vcJwtAtPort, true)
}

assertTrue(exception.message.contains("failed to resolve status code 500"))
assertTrue(exception.message.contains("Failed to fetch credential schema"))

mockWebServer.shutdown()
}
Expand Down
16 changes: 2 additions & 14 deletions bound/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions crates/http-std/Cargo.toml

This file was deleted.

54 changes: 0 additions & 54 deletions crates/http-std/src/client.rs

This file was deleted.

193 changes: 0 additions & 193 deletions crates/http-std/src/default_client.rs

This file was deleted.

Loading
Loading