-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support did_dht_resolution in C #390
Conversation
TBD Spec Test Vectors Report (web5-core-kt)
❌ Missing Vectors (15)These are test vectors without any test cases.
Automatically generated at: 2024-10-11T16:01:32.183Z |
TBD Spec Test Vectors Report (web5-rs)
❌ Missing Vectors (13)These are test vectors without any test cases.
Automatically generated at: 2024-10-11T15:58:11.360Z |
} else { | ||
match unsafe { CStr::from_ptr(gateway_url).to_str() } { | ||
Ok(s) => Some(s.to_string()), | ||
Err(_) => return ptr::null_mut(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at some point we should introduce better error handling over the C FFI, but it's not necessary at this moment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #392 to track.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well done 👏
What type of PR is this? (check all applicable)
Description
Adds support for
did_dht_resolution
in a C ABI.Let me know if it's cool to include the tokio runtime
web5_c
library that's being built by thebindc
recipe.Related Tickets & Documents
N/A - couldn't find any. I wanted to add this because I'm aiming to extend curl so that it can handle
did
protocols. This is critical in order to promote interop. Since curl is written in C, this is a simple first step to use the rust-core to power the curl fork I'll be working on.Mobile & Desktop Screenshots/Recordings
N/A
Added code snippets?
Added tests?
No tests? Add a note
The provided example code is the test itself. There is a README with the explanation.
Added to documentation?
No docs? Add a note
Added a README that explains how to run the given code.
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?