Skip to content

cannot build on macos : 'log' only in linux cfg #1

@bezalel

Description

@bezalel

I could not run zeos-caterpillar-mpc on my mac

Compiling zeos-caterpillar v0.1.0 (...../ZKP/ZEOS/zeos-caterpillar)
error[E0432]: unresolved import crate::log
--> src/wallet.rs:20:5
|
20 | log
| ^^^ no log in the root
|

I succeeded build by removing target_os macro
//#[cfg(target_os = "linux")]
pub fn log(msg: &str)
{
println!("{}", msg);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions