Browse Source

docs: add --no-default-features to build command

c_for-loops
Garrit Franke 3 years ago
parent
commit
e770c11ae0
  1. 2
      Cargo.toml
  2. 4
      docs/developers/backends.md

2
Cargo.toml

@ -20,7 +20,7 @@ backend_node = []
backend_llvm = ["inkwell"]
# To change, use the --featues flag:
# cargo run --features backend_llvm
# cargo run --no-default-features --features backend_llvm
default = ["backend_node"]
[dependencies]

4
docs/developers/backends.md

@ -10,10 +10,10 @@ The backend can be specified in the `Cargo.toml` file in the root of the project
default = ["backend_c"]
```
If you're working on an unstable backend, you can override the backend using the `--features` flag of the cargo CLI:
If you're working on an unstable backend, you can override the backend using the `--features --no-default-features` flag of the cargo CLI:
```
cargo run --features backend_llvm ...
cargo run --no-default-features --features backend_llvm ...
```
## Available Backends

Loading…
Cancel
Save