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

[WIP] feat: add checks for wasi incompatible functionality #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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
Loading