zerotier / libzt

Encrypted P2P sockets over ZeroTier
https://zerotier.com
Other
183 stars 54 forks source link

Rust/Windows Support #213

Open alexipeck opened 1 year ago

alexipeck commented 1 year ago

What work needs to be done for the Rust version? The Rust crate hasn't been updated in 2 years and currently doesn't compile under Windows.

The following error output is the main culprit preventing compilation under Windows, this particular issue is likely from the proc-macro-crate and was fixed in version 1.2.1 (https://github.com/rust-lang/rust/issues/94913) "thread 'main' panicked at '"zts_net_info_tstruct(unnamed_at_src/include/ZeroTierSockets_h_816_5)" is not a valid Ident', C:\Users\alexi.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro2-1.0.52\src\fallback.rs:752:9"

If a public repo for the Rust crate became available, I would be like to assist in maintaining it and fully integrate this into another project.

janvanbouwel commented 1 year ago

The rust crate lives in this repository, at https://github.com/zerotier/libzt/tree/main/pkg%2Fcrate%2Flibzt