Skip to content

refactor: replace runtime symbol lookup with direct FFI bindings#279

Open
HamdaanAliQuatil wants to merge 3 commits into
masterfrom
ffi-direct-bindings
Open

refactor: replace runtime symbol lookup with direct FFI bindings#279
HamdaanAliQuatil wants to merge 3 commits into
masterfrom
ffi-direct-bindings

Conversation

@HamdaanAliQuatil

@HamdaanAliQuatil HamdaanAliQuatil commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Closes #277

@HamdaanAliQuatil HamdaanAliQuatil requested a review from jonasfj June 9, 2026 20:58
Comment thread tool/generate_direct_bindings.dart Outdated
@HamdaanAliQuatil HamdaanAliQuatil requested a review from jonasfj June 12, 2026 00:18

@jonasfj jonasfj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please outline how this works in the PR description

Comment thread src/symbols.yaml
### List of BoringSSL symbols used
# This file is the source of truth for which BoringSSL symbols can be used from
# in the Dart code using`dart:ffi`.
# This file is the source of truth for which prefixed BoringSSL entry points

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this still true. What are we using this file for now?

Comment thread src/webcrypto.c
return sizeof(CBB);
}

WEBCRYPTO_EXPORT void* webcrypto_get_EVP_PKEY_free_address(void) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we still need this hack? Or can we get the address from the ffigen bindings?

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.

FFI refactor: reduce/remove indirect symbol lookup

2 participants