Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jhartzell42 opened this issue Apr 6, 2022 · 2 comments

Comments

@jhartzell42
Copy link

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
Copy link
Owner

mibes404 commented Apr 9, 2022

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

@albx79
Copy link

albx79 commented Jun 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants