json-ld icon indicating copy to clipboard operation
json-ld copied to clipboard

Stable release channel?

Open roper79 opened this issue 3 years ago • 2 comments

Compiling 0.6.1 with stable rustc 1.62.1 results in:

error[E0554]: `#![feature]` may not be used on the stable release channel
   --> /home/rob/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-traits-0.7.3/src/lib.rs:104:1
    |
104 | #![feature(generic_associated_types)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Is there a possibility to enable building with stable and avoid nigthtly, which is not endorsed for production?

P.S. I tried to update the cc-traits to the newest 0.8.1, but the result is the same.

roper79 avatar Jul 28 '22 10:07 roper79

Hi, unfortunately generic associated types are required. They are currently in the process of being stabillized so we just have to wait a little longer.

However we currently also rely on trait aliases, another unstable feature that won't be stabilized any time soon. That is why I'm also working on the new version of json-ld that will get rid of all unstable features except for GATs. I'm doing my best to be done as soon as possible to finally have something usable with stable Rust.

timothee-haudebourg avatar Jul 28 '22 11:07 timothee-haudebourg

Thank you very much for your effort and a swift reaction, @timothee-haudebourg! In the meanwhile, I will try to go with nightly.

roper79 avatar Jul 28 '22 12:07 roper79

@timothee-haudebourg What is the latest version that works on stable?

LuisOsta avatar Sep 22 '22 20:09 LuisOsta

@timothee-haudebourg , GATS are stabilized now. It will be great if a json-ld parser, transformer is available for rust stable. Thanks for great work.

damooo avatar Oct 08 '22 21:10 damooo

Hey, sorry for the delay I was on break.

Yes GATs are soon to be released on the stable channel (probably with Rust 1.65). But as I said above:

However we currently also rely on trait aliases, another unstable feature that won't be stabilized any time soon. That is why I'm also working on the new version of json-ld that will get rid of all unstable features except for GATs. I'm doing my best to be done as soon as possible to finally have something usable with stable Rust.

See #37 to see the progress on that. Only some work on the compaction algorithm remains before I can release it.

timothee-haudebourg avatar Oct 10 '22 08:10 timothee-haudebourg

Rust 1.65 with GATs is out!

roper79 avatar Nov 03 '22 15:11 roper79

@timothee-haudebourg When do you think we could have a version release of json-ld that's stable? Is there anything we can do to help that along

LuisOsta avatar Nov 15 '22 17:11 LuisOsta

If you want a version of json-ld that works with Rust stable, I published a beta version. It still lacks documentation and a few features and design testing before I can release a proper non beta version. If you want to help you can try to use it and give me feedback on the API, although with the current state of the doc, I don't expect it will be easy to do.

Please be patient until I can free some time to finish all that up.

timothee-haudebourg avatar Nov 22 '22 10:11 timothee-haudebourg

Thanks a lot @timothee-haudebourg for your kind effort! That is a great progress, I will definitely give it a try.

roper79 avatar Nov 22 '22 13:11 roper79

I've just release version 0.9.1, which work with stable Rust 1.65. The transition from the old architecture may be rough, please don't hesitate to ask if you need help transitioning.

timothee-haudebourg avatar Dec 09 '22 16:12 timothee-haudebourg