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 committed Feb 6, 2024
1 parent dba11da commit 6605a8e
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 63 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 @@ -47,6 +47,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
113 changes: 54 additions & 59 deletions Cargo.lock

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

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ ceramic-metadata = { path = "./metadata" }
ceramic-metrics = { path = "./metrics" }
ceramic-one = { path = "./one" }
ceramic-p2p = { path = "./p2p" }
ceramic-sql = { path = "./sql" }
ceramic-store = { path = "./store" }
cid = { version = "0.10", features = ["serde-codec"] }
clap = { version = "4", features = ["derive", "env"] }
Expand Down Expand Up @@ -145,7 +146,9 @@ 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"] }
#ssi = { path = "/Users/dbrowning/code/oss/ssi", default-features = false, features = ["ed25519"] }
swagger = { version = "6.1", features = [
"serdejson",
"server",
Expand Down
11 changes: 9 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ anyhow.workspace = true
async-trait.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-method-key = { path = "/Users/dbrowning/code/oss/ssi/did-key" }
#did-pkh = "0.2.1"
did-pkh = { git = "https://github.com/dbcfd/ssi", branch = "feat/wasi" }
#did-pkh = { path = "/Users/dbrowning/code/oss/ssi/did-pkh" }
hex.workspace = true
int-enum = "0.5.0"
libp2p-identity.workspace = true
Expand All @@ -28,6 +32,9 @@ serde_json.workspace = true
ssi.workspace = true
unsigned-varint.workspace = true

[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi")))'.dependencies]
sqlx.workspace = true

[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt"] }
tracing.workspace = true
Expand Down
Loading

0 comments on commit 6605a8e

Please sign in to comment.