mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
Don't use store-api.hh
in worker-protocol.hh
Using abstract types like can help cut down on compilation time, both from scratch, and especially incremental builds during development. The idea is that `worker-protocol.hh` can declare all the (de)serializers, but only again abstract types; when code needs to use some (de)serializers, it can include headers just for the data types it needs to (de)serialize. `store-api.hh` in particular is a bit of a sledgehammer, and the data types we want to serialize have their own headers.
This commit is contained in:
parent
684e9be8b9
commit
9923403d90
2 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
#include "path-info.hh"
|
#include "path-info.hh"
|
||||||
#include "worker-protocol.hh"
|
#include "worker-protocol.hh"
|
||||||
|
#include "store-api.hh"
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
///@file
|
///@file
|
||||||
|
|
||||||
#include "store-api.hh"
|
|
||||||
#include "serialise.hh"
|
#include "serialise.hh"
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
@ -79,6 +78,15 @@ typedef enum {
|
||||||
class Store;
|
class Store;
|
||||||
struct Source;
|
struct Source;
|
||||||
|
|
||||||
|
// items being serialized
|
||||||
|
struct DerivedPath;
|
||||||
|
struct DrvOutput;
|
||||||
|
struct Realisation;
|
||||||
|
struct BuildResult;
|
||||||
|
struct KeyedBuildResult;
|
||||||
|
enum TrustedFlag : bool;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to guide overloading
|
* Used to guide overloading
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue