From e770c11ae05408902892763efaa42d42b5d46457 Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Wed, 10 Feb 2021 16:37:17 +0100 Subject: [PATCH] docs: add --no-default-features to build command --- Cargo.toml | 2 +- docs/developers/backends.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index abf3f0d..76038d5 100644 --- a/Cargo.toml +++ b/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] diff --git a/docs/developers/backends.md b/docs/developers/backends.md index 1ac62c2..1b810d3 100644 --- a/docs/developers/backends.md +++ b/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