File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ mod reassemble;
4545pub mod router;
4646pub mod serial;
4747pub mod usb;
48+ #[ macro_use]
4849mod util;
4950
5051pub use fragment:: { Fragmenter , SendOutput } ;
@@ -80,8 +81,6 @@ pub(crate) const HEADER_LEN: usize = 4;
8081/// during the build. Those variables can be set in the `[env]`
8182/// section of `.cargo/config.toml`.
8283pub mod config {
83- use crate :: get_build_var;
84-
8584 /// Maximum size of a MCTP message payload in bytes, default 1032
8685 ///
8786 /// This does not include the MCTP type byte.
Original file line number Diff line number Diff line change 11/// Takes a `usize` from a build-time environment variable.
22///
33/// If unset, the default is used. Can be used in a const context.
4- #[ macro_export]
54macro_rules! get_build_var {
65 ( $name: literal, $default: expr) => { {
76 match option_env!( $name) {
You can’t perform that action at this time.
0 commit comments