githubEdit

Get Started

In this section, we will guide you to start using Orion successfully. We will help you install Cairo 1.0 and add Orion dependency in your project.

circle-info

Orion supports Cairo and Scarb v2.4.0

πŸ“¦ Installations

chevron-rightInstall Cairohashtag

Step 1: Install Cairo

There are different ways to install Cairo. Use the one that suits you best: Cairo installer.arrow-up-right

Step 2: Setup Language Server

Install the Cairo 1 VS Code Extension for proper syntax highlighting and code navigation. Just follow the steps indicated herearrow-up-right.

chevron-rightInstall the Cairo package manager Scarbhashtag

Step 1: Install Scarb

Follow the installation guide on the Scarb's Websitearrow-up-right.

Step 2: Create a new Scarb project

Follow the instructions herearrow-up-right to start a new Scarb project.

βš™οΈ Add orion dependency in your project

If your Scarb.toml doesn't already have a [dependencies] section, add it, then list the package name and the URL to its Git repository.

Scarb.toml
[dependencies]
orion = { git = "https://github.com/gizatechxyz/onnx-cairo" }

Now, run scarb build, and Scarb will fetch orion dependency and all its dependencies. Then it will compile your package with all of these packages included:

scarb build

You can now use the orion in your files:

πŸ”­ Discover the Orion APIs

Last updated