Skip to content

Commit

Permalink
feat: add checks for wasi incompatible functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Automation authored and dav1do committed May 24, 2024
1 parent df8e66c commit 3b340d8
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 45 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rust-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
make check-kubo-rpc-server
- name: Check deps
run: make check-deps
- name: Test wasm32-wasi compilation
run: |
rustup target add wasm32-wasi
cargo check -p ceramic-event --target wasm32-wasi
test:
runs-on: ubuntu-latest
container: 'public.ecr.aws/r5b3e0r5/3box/rust-builder:latest'
Expand Down
76 changes: 35 additions & 41 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ sha2 = { version = "0.10", default-features = false }
smallvec = "1.10"
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio"] }
ssh-key = { version = "0.5.1", default-features = false }
ssi = { version = "0.7", features = ["ed25519"] }
#ssi = { version = "0.7", default-features = false, features = ["ed25519"] }
ssi = { git = "https://github.com/dbcfd/ssi", branch = "feat/wasi", default-features = false, features = ["ed25519"] }
swagger = { version = "6.1", features = [
"serdejson",
"server",
Expand Down
6 changes: 4 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ publish = false
anyhow.workspace = true
base64 = "0.21.2"
cid.workspace = true
did-method-key = "0.2.1"
did-pkh = "0.2.1"
#did-method-key = "0.2.1"
did-method-key = { git = "https://github.com/dbcfd/ssi", branch = "feat/wasi" }
#did-pkh = "0.2.1"
did-pkh = { git = "https://github.com/dbcfd/ssi", branch = "feat/wasi" }
hex.workspace = true
int-enum = "0.5.0"
libp2p-identity.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion core/src/jwk.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::DidDocument;
use cid::multibase;
use once_cell::sync::Lazy;
use ssi::did::did_resolve::{dereference, Content, DIDResolver, DereferencingInputMetadata};
use ssi::did::{Resource, VerificationMethod};
use ssi::did_resolve::{dereference, Content, DIDResolver, DereferencingInputMetadata};
use ssi::jwk::{Base64urlUInt, OctetParams, Params, JWK};
use std::ops::Deref;

Expand Down

0 comments on commit 3b340d8

Please sign in to comment.