Running examples
You can either run the examples from the latest released version of Ambient, or with the development main
branch.
However, the version of Ambient must match the version that the examples were built for. For instance, if you are running the main
branch of Ambient, you must also run the main
branch of the examples.
We recommend that you use the examples from the Ambient website, as they have a version associated with them.
Running examples from main
- Clone the GitHub repository.
- Install Ambient with
cargo install --path app ambient
. - Run the examples in the
guest/rust/example
directory:ambient run guest/rust/examples/basics/primitives