Commit graph

34 commits

Author SHA1 Message Date
Nicolas Mattia
c7d2337880 Create logRun in configurePhase 2019-09-17 12:27:53 +02:00
Nicolas Mattia
6c072bd0ed Use cargo_release arg list for --release 2019-09-11 13:45:06 +02:00
Bas van Dijk
df0c276e7a Use the cargoTestCommands specified by the user for building the deps 2019-09-09 11:21:51 +02:00
Bas van Dijk
2791c3bd52 Use cargo build --out-dir instead of cargo install
Since we don't use cargo install anymore we go back to building the
workspace instead of building each crate separately.
2019-09-04 17:36:40 +02:00
Bas van Dijk
e98ef6b715 Run cargoBuild and cargoTest per crate 2019-09-04 12:14:36 +02:00
Bas van Dijk
d7e6f3780f Disable building docs per crate because that's slower apparently
TODO: find out why this is the case.
2019-09-04 11:05:19 +02:00
Bas van Dijk
8e0af29278 Pass through the builtDependencies
So that it's easy to reference them which is handy during debugging.
2019-09-04 10:42:49 +02:00
Bas van Dijk
5c762ec61b Don't create $out/lib 2019-09-02 12:49:16 +02:00
Bas van Dijk
087f5bf3ea Don't copy to $out/lib 2019-08-30 20:24:13 +02:00
Bas van Dijk
b133123ee3 Document and install per crate 2019-08-30 18:25:40 +02:00
Nicolas Mattia
51e8f903c4 Fix features rebuild 2019-08-28 19:21:13 +02:00
Bas van Dijk
156328e941 Don't copy the docs to a separate doc output for the dependencies
In the deps derivation the docs are already contained in `target`
which is copied to `$out`. So in that case also copying the docs to a
separate `$doc` output wastes space. Only the final derivation should
have its docs in a separate `$doc` output.
2019-08-26 16:35:05 +02:00
Bas van Dijk
1845453377 Don't allow parameterization of cargoDoc 2019-08-26 15:39:06 +02:00
Bas van Dijk
f7a6150900 Respect the release profile in cargo doc 2019-08-26 15:13:56 +02:00
Bas van Dijk
8d59785ca6 Pass cargolock/cargotoml via file instead of via env var
Apparently the cargolock env var can become too big so we replace it
with a file. This fixes the following error:

  building
  '/nix/store/s8bv90acizsyvh1s9gk7yvpiyw2gcpnx-dfinity-application-and-others-deps.drv'...
  while setting up the build environment: executing
  '/nix/store/cinw572b38aln37glr0zb8lxwrgaffl4-bash-4.4-p23/bin/bash':
  Argument list too long

See the following on the background of why env vars can become too big:
https://stackoverflow.com/questions/28865473/setting-environment-variable-to-a-large-value-argument-list-too-long
2019-08-26 11:05:41 +02:00
Bas van Dijk
39df9959ce Remove references to the source code from the generated cargo docs 2019-08-23 16:19:30 +02:00
Nicolas Mattia
4d509c7633 Avoid IFD more 2019-07-31 16:16:51 +02:00
Nicolas Mattia
2692cfbfc1 Avoid IFD as much as possible 2019-07-31 15:53:30 +02:00
Nicolas Mattia
bdf64f6034 wip 2019-07-31 13:41:34 +02:00
Nicolas Mattia
7387010557 Improve incremental builds 2019-07-30 12:41:32 +02:00
Bas van Dijk
4701ae2622 Add support for cargo doc 2019-07-16 14:43:32 +02:00
Nicolas Mattia
4c2daf7ccd Fix workspaces 2019-07-11 11:39:40 +02:00
Nicolas Mattia
4022afd8b9 Add support for prebuilt dependencies 2019-07-11 11:06:43 +02:00
Nicolas Mattia
9787ccbeee Clean up unused argument 2019-07-11 11:06:43 +02:00
Nicolas Mattia
6c1d36a3a9 Forward correct profile 2019-07-11 11:06:43 +02:00
Nicolas Mattia
0bf7e5d952 Fix crate install in workspace 2019-07-05 14:50:10 +02:00
Nicolas Mattia
0068df8a99 Cleanup 2019-07-02 12:50:32 +02:00
Nicolas Mattia
1b8d99a907 Drop more fromTOML 2019-07-02 11:42:41 +02:00
Nicolas Mattia
85a5d5399c Clean up incremental build 2019-06-28 16:45:41 +02:00
Nicolas Mattia
824b109e92 Clarify cargo file overrides 2019-06-28 11:43:47 +02:00
Nicolas Mattia
80a0a147aa break-all-the-things 2019-06-27 17:49:59 +02:00
Nicolas Mattia
0068d11d38 POC of incrementality 2019-06-27 12:43:01 +02:00
Nicolas Mattia
59642e1e3b Simplify build commands 2019-06-26 10:59:29 +02:00
Nicolas Mattia
58c2afc80e Factor out build and lib code 2019-06-25 17:36:22 +02:00