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(core-api): add weaver protobuf codegen #1556 #1759

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

petermetz
Copy link
Member

@petermetz petermetz commented Jan 11, 2022

feat(core-api): add weaver protobuf codegen #1556

Rust code now gets generated from the Weaver protocol buffer definitions
Next step is to have the automated publishing set up.

To test the rust build, you need to run either one of the following:

yarn lerna run proto:protoc-gen-rust (from the project root)

or a regular cargo build from the core-api package directory, e.g.:

cd packages/cactus-core-api/
cargo build

Fixes #1556

Signed-off-by: Peter Somogyvari peter.somogyvari@accenture.com

@petermetz
Copy link
Member Author

@VRamakrishna What do you think of this? If it looks good I'll set up the auto-publishing github workflow for a crate.

@VRamakrishna
Copy link
Contributor

How do we now build the relay as a standalone component using the code generated from the protos?

Also, can you add a Makefile and a short README.md to the folder?

@petermetz
Copy link
Member Author

petermetz commented Jan 18, 2022

How do we now build the relay as a standalone component using the code generated from the protos?

Also, can you add a Makefile and a short README.md to the folder?

@VRamakrishna Adding the readme in the scope of another issue that we had open for a while, stay tuned for the follow-up PR with that: #833

Added a Makefile so now you can run make within the package directory and it will run the cargo build.

Rust code now gets generated from the Weaver protocol buffer definitions
Next step is to have the automated publishing set up.

To test the rust build, you need to run either one of the following:

`yarn lerna run proto:protoc-gen-rust` (from the project root)

or a regular cargo build from the core-api package directory, e.g.:

```sh
cd packages/cactus-core-api/
cargo build
```

Fixes hyperledger#1556

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@petermetz
Copy link
Member Author

#1794

@petermetz petermetz marked this pull request as ready for review January 18, 2022 22:40
@petermetz petermetz requested review from takeutak, izuru0 and jagpreetsinghsasan and removed request for jonathan-m-hamilton January 18, 2022 22:40
@petermetz petermetz added Core_API Changes related to the Core API Package dependencies Pull requests that update a dependency file Weaver Tasks related to the future of Cactus & Weaver together. labels Jan 18, 2022
@petermetz petermetz merged commit b5b68a7 into hyperledger:main Jan 21, 2022
@petermetz petermetz deleted the petermetz/issue1556 branch January 21, 2022 20:08
@petermetz petermetz removed the request for review from izuru0 January 21, 2022 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core_API Changes related to the Core API Package dependencies Pull requests that update a dependency file Weaver Tasks related to the future of Cactus & Weaver together.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(core-api): add weaver protobuf codegen
4 participants