-
Notifications
You must be signed in to change notification settings - Fork 47
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
Errors from example code #47
Comments
I think you maybe just need to add |
When I do that, I get the |
That's progress, at least the code compiles now! That second error actually is a known issue in the There should be a bit more detail to the error message - you're likely either running in a multi-threaded environment or on an OS the There's a list of workarounds for
|
@kief I thought I recognized that username! Thank you for Infrastructure as Code! 😄 |
Thanks @jakewan, glad you found it useful! And thanks @borntyping. The error message doesn't give much more detail than your suggestions (MacOS 11.6.1):
I'll find a way to work around it. Clearly not an issue with simple_logger, so, . Thanks! |
UTC timestamps are now the default in simple_logger 2.0.0. |
Hi,
I'm new to Rust, so may be missing something obvious to more experienced folks.
I created a project following the usage example, but get the error
use of undeclared crate or module 'log'
when I runcargo run
. When I runcargo run --example init
I get the errorno example target named 'init'
.My project has a fail src/main.rs with a copy/paste of the example code:
My Cargo.toml is:
When I run
cargo run
:Is the example is missing something (like a use statement) that a more experienced Rustacian would know to include? I've tried adding use 'log' and including a log crate in my Cargo.toml, but then I get entirely different error messages. I figured I should make sure I'm on the right track with the example and not going down a completely different rabbithole.
The example documentation also suggests running
cargo run --example init
. When I do this, I get thisAgain, this smells like I'm missing a "Rust 101" concept. Clues would be appreciated!
The text was updated successfully, but these errors were encountered: