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

Remove dependency on macros package from c api #352

Merged

Conversation

CharlesShuller
Copy link
Contributor

@CharlesShuller CharlesShuller commented May 2, 2023

Removes dependency on didkit_macros from the C API.

Tests covering this are in the didkit-c repo, PR: https://github.com/spruceid/didkit-c/pull/3

@CharlesShuller
Copy link
Contributor Author

I'm extending the tests in didkit-c to validate the values returned are still what we expect to be returned. The changes to remove the didkit macros were more complex than expected.

@CharlesShuller CharlesShuller marked this pull request as ready for review May 9, 2023 15:38
Copy link
Member

@sbihel sbihel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the PR does a bit too much compared to what it was supposed to do, even though it's mostly for the better. Just makes the review a bit harder.

Two additional points:

  • the actual removal of the macro is missing; and
  • Clippy raises a few warnings, the base branch isn't up to date with main so that's why the CI isn't failing. Can you address the warnings raised from this PR please?

lib/src/c.rs Outdated Show resolved Hide resolved
PR Feedback indicated that the long 'and_then' chains used to marshal
C strings into rust data structures were difficult to read.  I've replaced
them in two functions to see if reviewers prefer the new function calls.

Impacted functions are:

* didkit_key_to_did
* didkit_vc_issue_credential
PR Feedback indicated that the long 'and_then' chains used to marshal
C strings into rust data structures were difficult to read.  I've replaced
them in two functions to see if reviewers prefer the new function calls.

Impacted functions are:

* didkit_key_to_did
* didkit_vc_issue_credential
…ceid/didkit into feat/remove-didkit-macro-from-c-api
@CharlesShuller CharlesShuller merged commit d7e70af into feat/macro-prepare-secp May 15, 2023
@CharlesShuller CharlesShuller deleted the feat/remove-didkit-macro-from-c-api branch May 15, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants