Skip to content

Commit 21e4521

Browse files
committed
chore: trim barretenberg public includes
1 parent f11406a commit 21e4521

6 files changed

Lines changed: 15 additions & 10 deletions

File tree

barretenberg/cpp/src/barretenberg/api/api.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22
#include <filesystem>
3-
#include <iostream>
3+
#include <ostream>
4+
#include <string>
45

56
namespace bb {
67

barretenberg/cpp/src/barretenberg/api/api_chonk.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ namespace { // anonymous namespace
3434
void write_chonk_vk(std::vector<uint8_t> bytecode, const std::filesystem::path& output_path, const API::Flags& flags)
3535
{
3636
auto response =
37-
bbapi::ChonkComputeVk{ .circuit = { .bytecode = std::move(bytecode) }, .use_zk_flavor = flags.use_zk_flavor }
37+
bbapi::ChonkComputeVk{ .circuit = { .name = "", .bytecode = std::move(bytecode) },
38+
.use_zk_flavor = flags.use_zk_flavor }
3839
.execute();
3940

4041
const bool is_stdout = output_path == "-";

barretenberg/cpp/src/barretenberg/avm_fuzzer/common/process.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "process.hpp"
2+
#include <cerrno>
23
#include <cstring>
4+
#include <stdexcept>
5+
#include <sys/wait.h>
6+
#include <unistd.h>
37

48
Process::Process(const std::string& command)
59
{

barretenberg/cpp/src/barretenberg/avm_fuzzer/common/process.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
#pragma once
22

3-
#include <array>
4-
#include <iostream>
5-
#include <memory>
63
#include <string>
7-
#include <sys/wait.h>
8-
#include <unistd.h>
4+
#include <sys/types.h>
95

106
class Process {
117
private:

barretenberg/cpp/src/barretenberg/common/benchmark.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
#include "barretenberg/common/throw_or_abort.hpp"
44
#include "barretenberg/env/hardware_concurrency.hpp"
5+
#include <cerrno>
56
#include <cstdlib>
67
#include <ctime>
8+
#include <exception>
79
#include <fcntl.h>
8-
#include <iostream>
10+
#include <ostream>
911
#include <sstream>
1012
#include <string>
1113
#include <unistd.h>

barretenberg/cpp/src/barretenberg/lmdblib/types.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
#include "barretenberg/serialize/msgpack.hpp"
44
#include "lmdb.h"
55
#include <cstdint>
6-
#include <iostream>
76
#include <optional>
7+
#include <ostream>
88
#include <string>
9+
#include <utility>
910
#include <vector>
1011
namespace bb::lmdblib {
1112
using Key = std::vector<uint8_t>;
@@ -66,4 +67,4 @@ struct DBStats {
6667
}
6768
};
6869

69-
} // namespace bb::lmdblib
70+
} // namespace bb::lmdblib

0 commit comments

Comments
 (0)