Rust
The ActorCore Rust client provides a way to connect to and interact with actors from Rust applications.
ActorCore is still pre-v1.0. Please help us by report bugs on GitHub Issues!
Quickstart
Create a new Rust project
Create a new Rust project:
Add dependencies
Add ActorCore client & related dependencies to your project:
Define your actor
Create a file actors/app.ts
in your project with your actor definition:
Create your client
Modify src/main.rs
to connect to your actor:
Start your ActorCore development server
Launch the development server with:
This will automatically start your app and open the studio in your browser. The studio supports hot-reloading, state inspection, visual RPC testing, and more debugging tools.
Run your client
In a separate terminal, run your client code:
You should see output like:
Run it again to see the state update.
Deploy your ActorCore app
Now that you have your project running, deploy your application to one of these platforms: