slawlor / ractor

Rust actor framework
MIT License
1.3k stars 66 forks source link

Not depend protobuf-src on windows #228

Open hemaolong opened 2 months ago

hemaolong commented 2 months ago

Is your feature request related to a problem? Please describe. The ractor_cluster can not compile on windows.

Describe the solution you'd like Do not depend the protobuf-src and use the protoc directly(Can find by the ENV).

fn build_protobufs() {
        if cfg!(windows){
            if std::env::var("PROTOC").is_err(){
                panic!("Set protoc.exe path to the PROTOC!");
            }
        }
        else{
            std::env::set_var("PROTOC", protobuf_src::protoc());
        }

        //    ...
    }
slawlor commented 2 months ago

Please feel free to submit a Windows specific pr! I don't have an environment to test this with easily so feel free to contribute