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

  1. Clone the GitHub repository.
  2. Install Ambient with cargo install --path app ambient.
  3. Run the examples in the guest/rust/example directory: ambient run guest/rust/examples/basics/primitives