-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
compile failed on mac #384
Comments
Hello @openersoft! It looks like the "missing" |
It does look like it "should" work though. Our configuration targets are utilizing the rustc compilation flags for OS as the console must be written too differently depending on the platform we are targeting. Based on this response from the duckduckgo AI search results. I unfortunately do not have any Mac Silicon to test against, if you discover we should be using a better configuration target, please feel free to create a PR!
|
ok, i'll try to change back to log4rs and build again. thank for your response. |
System
system : macOS Sonoma 14.4.1
Chip: Apple M1
active-toolchain
stable-aarch64-apple-darwin (default)
Cargo.toml
[workspace.dependencies.log]
version = "0.4"
[workspace.dependencies.log4rs]
version = "1.3.0"
Compile output:
error[E0433]: failed to resolve: use of undeclared crate or module
imp
--> /og4rs-1.3.0/src/encode/writer/console.rs:54:9
|
54 | imp::Writer::stdout().map(ConsoleWriter)
| ^^^ use of undeclared crate or module
imp
|
note: enum
crate::append::console::Writer
exists but is inaccessible--> /log4rs-1.3.0/src/append/console.rs:49:1
|
49 | enum Writer {
| ^^^^^^^^^^^ not accessible
error[E0433]: failed to resolve: use of undeclared crate or module
imp
--> /log4rs-1.3.0/src/encode/writer/console.rs:62:9
|
62 | imp::Writer::stderr().map(ConsoleWriter)
| ^^^ use of undeclared crate or module
imp
|
note: enum
crate::append::console::Writer
exists but is inaccessible--> /log4rs-1.3.0/src/append/console.rs:49:1
|
49 | enum Writer {
| ^^^^^^^^^^^ not accessible
Done in 452ms.
error[E0433]: failed to resolve: use of undeclared crate or module
imp
--> /log4rs-1.3.0/src/encode/writer/console.rs:46:26
|
46 | pub struct ConsoleWriter(imp::Writer);
| ^^^ use of undeclared crate or module
imp
error[E0433]: failed to resolve: use of undeclared crate or module
imp
--> /log4rs-1.3.0/src/encode/writer/console.rs:96:34
|
96 | pub struct ConsoleWriterLock<'a>(imp::WriterLock<'a>);
| ^^^ use of undeclared crate or module
imp
The text was updated successfully, but these errors were encountered: