JohnTitor / ctest2

Automatic testing of FFI bindings for Rust
https://crates.io/crates/ctest2
Apache License 2.0
22 stars 21 forks source link

2018 edition support? #48

Open alex opened 1 year ago

alex commented 1 year ago

Hi, I'm attempting to use ctest2 with a -sys crate that uses edition = "2018", however it looks like that may be unsupported?

The proximate errors I'm seeing are:

error: expected identifier, found keyword crate

I suspect adding new edition support is non-trivial, but I figured I should ask. If adding it is too difficult, it may be worth documenting.

JohnTitor commented 1 year ago

It would require a complete rewrite, see https://github.com/JohnTitor/ctest2/issues/6#issuecomment-678550173 and other issues. I'm afraid I don't have enough time to do this, but I'd love to see any PRs/suggestions/opinions, etc. about it!

alex commented 1 year ago

That's sort of what I was afraid of :-) In the meantime I hacked around crate by replacing it with super (and super::super!) in a few places, so this one came off the front burner.