Skip to content

Commit 9b47cde

Browse files
committed
re-export prost::Message
To decode a model into ModelProto you need to have the prost::Message trait in scope. If you depend on a different version of prost then candle decoding will fail. By re-exporting prost users can depend directly on our version.
1 parent 372c9cf commit 9b47cde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

candle-onnx/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use candle::Result;
2+
pub use prost;
23
use prost::Message;
34

45
pub mod onnx {

0 commit comments

Comments
 (0)