constellation-rs / constellation

Distributed programming for Rust.
Apache License 2.0
564 stars 24 forks source link

Rust stable? #99

Open dmilith opened 3 years ago

dmilith commented 3 years ago

Would be great to be able to run constellation on stable channel :)

At the moment it's:

   Compiling metatype v0.2.1
error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /home/dmilith/.cargo/registry/src/github.com-1ecc6299db9ec823/metatype-0.2.1/src/lib.rs:34:1
   |
34 | #![feature(arbitrary_self_types)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /home/dmilith/.cargo/registry/src/github.com-1ecc6299db9ec823/metatype-0.2.1/src/lib.rs:35:1
   |
35 | #![feature(ptr_metadata)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /home/dmilith/.cargo/registry/src/github.com-1ecc6299db9ec823/metatype-0.2.1/src/lib.rs:36:1
   |
36 | #![feature(specialization)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0554`.
error: could not compile `metatype`
alecmocatta commented 3 years ago

Agreed! If you're willing to take a look I'm happy to advise.

metatype and serde_traitobject are the blockers.

IIRC specialization should be okay to avoid. It's ptr_metadata and arbitrary_self_types that will be tricky/impossible without being unsound and risking miscompilation.

taqtiqa-mark commented 2 years ago

Thanks for all the effort you have put into Constellation, and for making it OpenSource. I'm not sure I fully understand, but I think erased-serde is an alternative - appreciate any clarification or insight into whether that is correct?