chris-morgan / mopa

MOPA: My Own Personal Any. A macro to implement all the `Any` methods on your own trait.
Other
112 stars 9 forks source link

refactor(*): rustc 1.0.0-beta.4 #2

Closed flaub closed 9 years ago

flaub commented 9 years ago

This allows mopa to work with rust 1.0.0-beta. I've tried to maintain the ability to use #[no_std] but I have not tested this against nightly.

Breaking Change

Users must now use mopa::Any rather than std::any::Any or core::any::Any.

flaub commented 9 years ago

I don't know how to feature gate the no_std examples. For now they are commented out. Looks like this issue could resolve it: rust-lang/cargo#1570

allan-simon commented 9 years ago

+1 as it would permit rustless framework to compile with rust beta

chris-morgan commented 9 years ago

I took the basic concepts here and adjusted them as suited me best and made 24f6c2df065ad72f9ad3579551f360d9395be8fa of it; mopa 0.2.0 is now published with this change.

Thanks!

flaub commented 9 years ago

Cool, I think I've learned a little more on exactly what a trait object is and how to interact with them. Cheers!