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

Implement partial APID 0.1.0 with UDL bindings #234

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5ceda9c
Add UDL bindings for Keys and Dsa
KendallWeihe Jun 10, 2024
f78afbb
Differentiate between inner APID and bindings, add DidData and Did
KendallWeihe Jun 10, 2024
0bcd7e7
Add remaining bindings for APID
KendallWeihe Jun 10, 2024
fe76b17
Binded to kt
KendallWeihe Jun 10, 2024
9947026
Remove unimplemented() calls, add defaults, add tests for did:dht
KendallWeihe Jun 10, 2024
dfafbfa
Write UDL bindings for everything (minus PEX), bind kotlin
KendallWeihe Jun 11, 2024
aab43f1
Bind actual PEX
KendallWeihe Jun 11, 2024
1d0b17c
Remove tmp.txt
KendallWeihe Jun 12, 2024
ff37c45
Implement APID up to DidJwk
KendallWeihe Jun 14, 2024
0196042
Add empty implementation for DidWeb and DidDht
KendallWeihe Jun 14, 2024
9b7af23
Implement empty VC, copy over PD
KendallWeihe Jun 14, 2024
1de2112
Replace uniffi inner binding with apid module
KendallWeihe Jun 14, 2024
d8e865f
Remove presentation definition binding, add JwkError
KendallWeihe Jun 14, 2024
507e96a
Add Result for dsa module
KendallWeihe Jun 14, 2024
e47d0ca
Remove all unwrap()'s in apid module
KendallWeihe Jun 14, 2024
c4ba6c2
Add RcbError and funnel all results into it, prefix all bound with 'Rcb'
KendallWeihe Jun 16, 2024
029bd7e
Rename bind and bound, remove unimplemented's, fix linting
KendallWeihe Jun 16, 2024
aea0fa2
Remove panic's, fix linting
KendallWeihe Jun 16, 2024
ad8484b
Add PresentationDefinition (w/ recursive Filter support commented)
KendallWeihe Jun 17, 2024
8906047
Add ed25519 generator binding, add did method resolve bindings
KendallWeihe Jun 17, 2024
e6622c5
Remove 🚧 comments
KendallWeihe Jun 17, 2024
fa13331
Bind latest did:web resolve from #190
KendallWeihe Jun 17, 2024
d0ae195
Run kotlin binding
KendallWeihe Jun 17, 2024
85cf071
Rename bind to bindings
KendallWeihe Jun 17, 2024
4a841e4
Remove Rcb prefix, run kt binding
KendallWeihe Jun 17, 2024
dd0a169
Rename vc module to 1_1
KendallWeihe Jun 17, 2024
645c1d7
Rename Error to RustCoreError
KendallWeihe Jun 17, 2024
441cd10
Rename to error_type to avoid special keywords
KendallWeihe Jun 17, 2024
6361958
Rename to_signer and to_verifier to to_inner
KendallWeihe Jun 17, 2024
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
21 changes: 11 additions & 10 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ lint: setup

bind: setup
just bind-kotlin
just bind-swift
# #234 temporarily commenting out swift because kotlin is the sole focus
# just bind-swift

bind-kotlin: setup
cargo build --release --package web5-uniffi
Expand All @@ -29,9 +30,9 @@ bind-kotlin: setup
generate --library target/release/libweb5_uniffi.dylib \
--language kotlin \
--out-dir target/bindgen-kotlin
cp target/release/libweb5_uniffi.dylib binded/kt/src/main/resources/natives
cp target/bindgen-kotlin/web5/sdk/web5.kt binded/kt/src/main/kotlin/web5/sdk
cd binded/kt && ./fix-load.sh
cp target/release/libweb5_uniffi.dylib bound/kt/src/main/resources/natives
cp target/bindgen-kotlin/web5/sdk/rust/web5.kt bound/kt/src/main/kotlin/web5/sdk/rust
cd bound/kt && ./fix-load.sh

bind-swift: setup
cargo build --release --package web5-uniffi
Expand All @@ -41,23 +42,23 @@ bind-swift: setup
--language swift \
--out-dir target/bindgen-swift
mkdir -p target/xcframework-staging
mv target/bindgen-swift/web5.swift binded/swift/Sources/UniFFI
mv target/bindgen-swift/web5.swift bound/swift/Sources/UniFFI
mv target/bindgen-swift/web5FFI.modulemap target/xcframework-staging/module.modulemap
mv target/bindgen-swift/web5FFI.h target/xcframework-staging/
rm -rf binded/swift/libweb5-rs.xcframework
rm -rf bound/swift/libweb5-rs.xcframework
xcodebuild -create-xcframework \
-library target/release/libweb5_uniffi.dylib \
-headers target/xcframework-staging \
-output binded/swift/libweb5-rs.xcframework
-output bound/swift/libweb5-rs.xcframework

test-binded: setup
test-bound: setup
just test-kotlin
just test-swift

test-kotlin: setup
cd binded/kt && mvn clean test
cd bound/kt && mvn clean test

test-swift: setup
cd binded/swift && \
cd bound/swift && \
swift package clean && \
swift test
Loading
Loading