Compare commits

...

2 Commits

Author SHA1 Message Date
Joonas Koivunen
cc580312c3 README: suggest CARGO_BUILD_FLAGS for less recompilation with cargo neon changes 2023-09-28 15:13:21 +00:00
Joonas Koivunen
f51e9591e7 build: use features testing with cargo neon alias 2023-09-28 15:01:32 +00:00
2 changed files with 9 additions and 3 deletions

View File

@@ -19,4 +19,4 @@ rustdocflags = ["-Arustdoc::private_intra_doc_links"]
[alias]
build_testing = ["build", "--features", "testing"]
neon = ["run", "--bin", "neon_local"]
neon = ["run", "--bin", "neon_local", "--features", "testing"]

View File

@@ -98,8 +98,11 @@ cd neon
# demonstrably slower build than a release build. For a release build,
# use "BUILD_TYPE=release make -j`nproc` -s"
# Remove -s for the verbose build log
#
# CARGO_BUILD_FLAGS="--features=testing" is suggested because it allows to
# recompile less when compiling to run the tests or exploring locally.
make -j`nproc` -s
CARGO_BUILD_FLAGS="--features=testing" make -j`nproc` -s
```
#### Building on OSX
@@ -115,8 +118,11 @@ cd neon
# demonstrably slower build than a release build. For a release build,
# use "BUILD_TYPE=release make -j`sysctl -n hw.logicalcpu` -s"
# Remove -s for the verbose build log
#
# CARGO_BUILD_FLAGS="--features=testing" is suggested because it allows to
# recompile less when compiling to run the tests or exploring locally.
make -j`sysctl -n hw.logicalcpu` -s
CARGO_BUILD_FLAGS="--features=testing" make -j`sysctl -n hw.logicalcpu` -s
```
#### Dependency installation notes