Document how to wire up bambulab modules in lib.rs once messages exist
This commit is contained in:
@@ -7,3 +7,18 @@ pub mod continuum {
|
||||
pub use continuum::v1::{
|
||||
MaterialProfile, PrintJob, PrintJobStatus, PrintParameters, Template,
|
||||
};
|
||||
|
||||
// bambulab/*.proto currently have no messages (see proto/bambulab/), so
|
||||
// there's nothing for prost to emit yet — `include!` against a
|
||||
// nonexistent file would break the build. Once you've added real messages
|
||||
// to proto/bambulab/{common,v1/*,v2/*}.proto, add:
|
||||
//
|
||||
// pub mod bambulab {
|
||||
// include!(concat!(env!("OUT_DIR"), "/bambulab.rs")); // common.proto's messages
|
||||
// pub mod v1 {
|
||||
// include!(concat!(env!("OUT_DIR"), "/bambulab.v1.rs")); // request.proto + report.proto combined — same package
|
||||
// }
|
||||
// pub mod v2 {
|
||||
// include!(concat!(env!("OUT_DIR"), "/bambulab.v2.rs"));
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user