-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat: add wrap-abi-bindgen support + upgrade js client to v0.11 #1795
Conversation
…abi-bindgen-wraps # Conflicts: # packages/schema/bind/package.json
… failing due to spacing
…p in different PR)
…abi-bindgen-wraps # Conflicts: # packages/cli/src/lib/docgen/docusaurus/index.ts # packages/cli/src/lib/docgen/jsdoc/index.ts # packages/cli/src/lib/docgen/schema/index.ts # packages/test-cases/cases/cli/docgen/002-custom-config/config.ts # packages/test-cases/cases/cli/docgen/004-app/expected/docs/Logger_enums.md # packages/test-cases/cases/cli/docgen/004-app/expected/docs/Logger_module.md
…abi-bindgen-wraps
…ewest polywrap client
const result = await client.invoke<Output>({ | ||
uri, | ||
method: "generateBindings", | ||
args: (args as unknown) as Record<string, unknown>, |
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.
Unrelated: Is this casting really required? If so I think we should fix this because it isn't a very good developer experience.
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.
Yeah, it's required when using statically typed args objects. TypeScript complains without the cast because args
is of type Record<string, unknown> | Uint8Array | undefined
.
…abi-bindgen-wraps # Conflicts: # packages/cli/package.json # packages/cli/src/lib/project/PolywrapProject.ts # packages/cli/src/lib/project/manifests/polywrap/languages.ts # packages/schema/bind/package.json # packages/schema/bind/src/__tests__/test-cases.spec.ts # packages/schema/bind/src/bindings/index.ts # packages/schema/bind/src/types.ts # yarn.lock
Kris: This PR integrates
wrap-abi-bindgen
, which replaces the current bindings generation with wrap-based bindings.See https://github.com/polywrap/wrap-abi-bindgen
A separate PR will add
wrap-rust
wrap-based bindings.