Skip to content

Commit

Permalink
Disable scale ext for protos
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Dec 12, 2024
1 parent 20d8e5c commit 9a403f6
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ jobs:
- name: Run Clippy
run: cargo clippy -- -D warnings --allow unused_variables

- name: Cargo fmt check
run: cargo fmt --check --all

- name: Run tests
run: cargo test
1 change: 1 addition & 0 deletions kms/rpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ fn main() {
let mut builder = prpc_build::configure()
.out_dir(out_dir)
.mod_prefix("super::")
.build_scale_ext(false)
.disable_package_emission();
builder = builder.type_attribute(".kms", "#[::prpc::serde_helpers::prpc_serde_bytes]");
builder = builder.type_attribute(
Expand Down
1 change: 0 additions & 1 deletion kms/rpc/src/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ pub use kms::*;

#[allow(async_fn_in_trait)]
mod kms;
mod protos_codec_extensions;
1 change: 1 addition & 0 deletions tappd/rpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ fn main() {
let mut builder = prpc_build::configure()
.out_dir(out_dir)
.mod_prefix("super::")
.build_scale_ext(false)
.disable_package_emission();
builder = builder.type_attribute(".tappd", "#[::prpc::serde_helpers::prpc_serde_bytes]");
builder = builder.type_attribute(
Expand Down
1 change: 0 additions & 1 deletion tappd/rpc/src/generated.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub use tappd::*;

mod protos_codec_extensions;
#[allow(async_fn_in_trait)]
mod tappd;
1 change: 1 addition & 0 deletions teepod/rpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ fn main() {
let mut builder = prpc_build::configure()
.out_dir(out_dir)
.mod_prefix("super::")
.build_scale_ext(false)
.disable_package_emission();
builder = builder.type_attribute(".teepod", "#[::prpc::serde_helpers::prpc_serde_bytes]");
builder = builder.type_attribute(
Expand Down
1 change: 0 additions & 1 deletion teepod/rpc/src/generated.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub use teepod::*;

mod protos_codec_extensions;
#[allow(async_fn_in_trait)]
mod teepod;
1 change: 1 addition & 0 deletions tproxy/rpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ fn main() {
let mut builder = prpc_build::configure()
.out_dir(out_dir)
.mod_prefix("super::")
.build_scale_ext(false)
.disable_package_emission();
builder = builder.type_attribute(".tproxy", "#[::prpc::serde_helpers::prpc_serde_bytes]");
builder = builder.type_attribute(
Expand Down
1 change: 0 additions & 1 deletion tproxy/rpc/src/generated.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
pub use tproxy::*;

mod protos_codec_extensions;
#[allow(async_fn_in_trait)]
mod tproxy;

0 comments on commit 9a403f6

Please sign in to comment.