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

Allow to extend agent communication from external crates #721

Merged
merged 4 commits into from Nov 1, 2019

Conversation

dunnock
Copy link
Contributor

@dunnock dunnock commented Oct 31, 2019

Fixed and reopened #719

This PR will open communication data structures to allow external crates to implement custom Agents for their purposes. For example wasi worker implementation which provides ~2x faster execution for wasm target https://github.com/dunnock/wasi-worker.

After opening structures it will be possible to implement custom trait for Agent with Reach=Public to allow custom initialization, also it will allow to provide custom implementation for Responder trait. It should be enough to have custom Agent implementation to be able to communicate with main yew application. Example https://github.com/dunnock/wasi-worker/blob/master/examples/yewworker/src/main.rs

Cargo.toml Outdated Show resolved Hide resolved
@jstarry
Copy link
Member

jstarry commented Nov 1, 2019

Looks good!

@jstarry jstarry merged commit 8b46aac into yewstack:master Nov 1, 2019
@dunnock dunnock deleted the extensible-agent branch November 2, 2019 09:18
llebout pushed a commit to llebout/yew that referenced this pull request Jan 20, 2020
* allow to extend agent communication from external crates

* Fixing build on rustc 1.35

* implement Default for AgentScope with public new

* toml-rs 0.5.5 fixed compatibility with rustc 1.35
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.

None yet

2 participants