Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changes/fixed/3112.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use Protobuf types in serialization rather than opaque bytes
5 changes: 4 additions & 1 deletion crates/services/block_aggregator_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ rust-version = { workspace = true }
description = "Block Aggregator API Service for Fuel Core"
build = "build.rs"

[features]
fault-proving = ["fuel-core-types/fault-proving"]

[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
Expand All @@ -22,7 +25,7 @@ futures = { workspace = true }
log = "0.4.27"
num_enum = { workspace = true }
postcard = { workspace = true }
prost = { workspace = true }
prost = { workspace = true, features = ["derive"] }
rand = { workspace = true }
serde = { workspace = true, features = ["derive"] }
strum = { workspace = true }
Expand Down
5 changes: 4 additions & 1 deletion crates/services/block_aggregator_api/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_prost_build::compile_protos("proto/api.proto")?;
tonic_prost_build::configure()
.type_attribute(".", "#[derive(serde::Serialize,serde::Deserialize)]")
.type_attribute(".", "#[allow(clippy::large_enum_variant)]")
.compile_protos(&["proto/api.proto"], &["proto/"])?;
Ok(())
}
Loading
Loading