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

feat: add wrap-abi-bindgen support + upgrade js client to v0.11 #1795

Merged
merged 26 commits into from
Jul 13, 2023

Conversation

dOrgJelli
Copy link
Contributor

@dOrgJelli dOrgJelli commented Jun 29, 2023

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.

@krisbitney krisbitney marked this pull request as ready for review July 10, 2023 19:16
…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
@dOrgJelli dOrgJelli changed the title feat: add wrap-abi-bindgen support feat: add wrap-abi-bindgen support + upgrade js client to v0.11 Jul 10, 2023
const result = await client.invoke<Output>({
uri,
method: "generateBindings",
args: (args as unknown) as Record<string, unknown>,
Copy link
Contributor Author

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.

Copy link
Contributor

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.

krisbitney and others added 5 commits July 13, 2023 09:28
…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
@dOrgJelli dOrgJelli merged commit 2d8bf26 into origin-dev Jul 13, 2023
@krisbitney krisbitney deleted the integrate-wrap-abi-bindgen-wraps branch July 14, 2023 00:46
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.

2 participants