stanislav-tkach / os_info

Rust library to detect the operating system type
MIT License
175 stars 52 forks source link

Fix compilation for FreeBSD #258

Closed davidkna closed 3 years ago

davidkna commented 3 years ago
stanislav-tkach commented 3 years ago

I would like to release a new version with this fix (https://github.com/stanislav-tkach/os_info/pull/259), but I have also made some refactoring along the way. Could you please check the release branch?

davidkna commented 3 years ago

@stanislav-tkach Now it complains about uname being private in freebsd/mod.rs.

stanislav-tkach commented 3 years ago

@davidkna Thanks! I have fixed that.

davidkna commented 3 years ago

By the way cross supports FreeBSD if you add a Cross.toml with:

[target.x86_64-unknown-freebsd]
image = "docker.io/rustembedded/cross:x86_64-unknown-freebsd"
davidkna commented 3 years ago

@stanislav-tkach It seems to work and compile fine now.

stanislav-tkach commented 3 years ago

@davidkna Thanks. I have released the 3.0.3 version.