summaryrefslogtreecommitdiff
path: root/doc/README.md
blob: 300e834c3727197bc7a30e05c96bafc3a5f8dc53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Prerequisites

The tutorials aim to explain the rules' usage and not learn Rust or
the `Justbuild` tool. Therefore, the user is assumed to know the Rust
programming language and `Justbuild`.

A `rustc` compiler must be installed and accessible in your
environment.

- [Getting started](./getting-started/README.md) tutorial teaches you
  how to define Rust binaries, libraries, and tests and configure the
  project, for example, using specific compile flags.

- [Interoperability](./interoperability/README.md) proposes two
  tutorials on how to mix Rust and C. On the one hand, a Rust library
  is consumed by a C binary, on the other hand, a C library is
  consumed by a Rust binary.

- [Number guessing](./number-guessing/README.md), it showcases how to
  *transition* a Rust-only Cargo-based project to `Justbuild` using
  the script [`just-import-cargo.py`](../bin/just-import-cargo.py).

- [Number guessing bot](./number-guessing-bot/README.md) demonstrates
  how to *import* a Cargo-based repository in another project, written
  in C++ in this example.