birkenfeld / ads-rs

Rust crate to access PLCs via the Beckhoff ADS protocol
https://crates.io/crates/ads
Apache License 2.0
45 stars 8 forks source link

Compilation currently broken #16

Closed gimmi closed 1 year ago

gimmi commented 1 year ago

Hello, I am triying to run the example but seems that the build is broken:

> git clone https://github.com/birkenfeld/ads-rs.git
> cd ads-rs
> cargo build
error: failed to download `syn v2.0.15`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `C:\Users\gimmi\.cargo\registry\src\github.com-1ecc6299db9ec823\syn-2.0.15\Cargo.toml`

Caused by:
  failed to parse the `edition` key

Caused by:
  this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
birkenfeld commented 1 year ago

Thanks, fixed by pinning a dependency.

I'll probably release a new minor version soon, it might get higher MSRV.

gimmi commented 1 year ago

Wow that was quick!

Confirm compiling fine now.