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

Add example app #689

Merged
merged 13 commits into from
Apr 30, 2024
Merged

Add example app #689

merged 13 commits into from
Apr 30, 2024

Conversation

Velua
Copy link
Contributor

@Velua Velua commented Apr 17, 2024

No description provided.

rust/psibase/src/services/demoapp1.rs Outdated Show resolved Hide resolved
dev/DemoApp1/plugin/src/lib.rs Outdated Show resolved Hide resolved
dev/DemoApp1/plugin/src/lib.rs Outdated Show resolved Hide resolved
@@ -18,6 +21,15 @@ impl Intf for Component {
fn helloworld2() -> Result<String, CommonTypes::Error> {
Copy link
Member

Choose a reason for hiding this comment

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

you could also delete helloworld and helloworld2 if you want, just to clean up the example app

dev/DemoApp1/plugin/wit/world.wit Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

At some point this should also be deleted. We can just set up demoapp1 in cmake so it's not deployed separately. Should also help make sure we don't break demoapp1 when its dependencies change (if we change common plugin interfaces, and such, for example).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@Velua
Copy link
Contributor Author

Velua commented Apr 18, 2024

@James-Mart I've made those changes except the Rust wrapper import, I can't crack that... will try get on a call and sus it.

@@ -3,11 +3,16 @@ package demoapp1:example;
interface intf {
use common:plugin/types.{error};
helloworld2: func() -> result<string, error>;
multiply: func(a: u32, b: u32) -> result<string, error>;
Copy link
Member

Choose a reason for hiding this comment

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

Bit odd for multiply to return a string

@James-Mart
Copy link
Member

Feel free to merge before you start getting merge conflicts

@Velua Velua merged commit 5c94053 into main Apr 30, 2024
3 checks passed
@Velua Velua deleted the add-test-service branch April 30, 2024 20:05
@James-Mart James-Mart added the Dev Experience Related to the experience of developers label May 7, 2024
@James-Mart James-Mart changed the title Add test service Add example app May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev Experience Related to the experience of developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants