mibes404 / zeep

XSD/WSDL client code generator for Rust
MIT License
41 stars 18 forks source link

Generated code includes calls to log macros without `use log::*` or similar #8

Open jhartzell42 opened 2 years ago

jhartzell42 commented 2 years ago

It shows up with debug! and warn!, but does not import them, resulting in errors like:

error: cannot find macro `debug` in this scope
   --> src/soap.rs:368:21
    |
368 |                     debug!("SOAP Request: {}", body);
    |                     ^^^^^
    |
    = note: consider importing this macro:
            log::debug
mibes404 commented 2 years ago

Latest code in the yaserde_08 branch adds this use statement to the generated code: use log::{debug, warn};

albx79 commented 1 year ago

use log::{warn, debug}; is present in the toplevel module, but not in the bindings submodule.