Skip to content

Commit

Permalink
Restore prost-reflect dependency in build crate
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Nov 13, 2023
1 parent 57a7132 commit 3321d41
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions node/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node/libs/protobuf_build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ heck.workspace = true
prettyplease.workspace = true
proc-macro2.workspace = true
prost-build.workspace = true
prost-reflect.workspace = true
protox.workspace = true
quote.workspace = true
syn.workspace = true
3 changes: 2 additions & 1 deletion node/libs/protobuf_build/src/canonical.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//! Checks whether messages in the given file descriptor set support canonical encoding.
use crate::syntax::extract_message_names;
use anyhow::Context as _;
use protox::prost_reflect::{self, prost_types};
use prost_reflect::{self, prost_types};
use std::collections::HashSet;

#[derive(Default)]
Expand Down
7 changes: 3 additions & 4 deletions node/libs/protobuf_build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
//! these are being built simultaneously from the same build script).
#![allow(clippy::print_stdout)]

pub use self::syntax::*;
use anyhow::Context as _;
use protox::{
file::File,
prost_reflect::{self, prost::Message as _, prost_types},
};
use prost_reflect::{prost::Message as _, prost_types};
use protox::file::File;
use std::{
collections::{HashMap, HashSet},
env, fs,
Expand Down
2 changes: 1 addition & 1 deletion node/libs/protobuf_build/src/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use super::ident;
use anyhow::Context as _;
use protox::prost_reflect::prost_types;
use prost_reflect::prost_types;
use std::{
collections::BTreeMap,
fmt,
Expand Down

0 comments on commit 3321d41

Please sign in to comment.