dtolnay / typetag

Serde serializable and deserializable trait objects
Apache License 2.0
1.19k stars 38 forks source link

Is it possible to make ctor dependency optional? #30

Closed vi closed 2 years ago

vi commented 3 years ago

Is it possible to make a cfg-selected mode where you need to explicitly register all possible types manually in fn main instead of relying on intentory/ctor? Less automatic, more portable.

Or should such explicit mode be added to inventory first?

dtolnay commented 2 years ago

I would prefer not to add this, but it would be reasonable for someone to maintain a different implementation which can be used this way.

vi commented 2 years ago

Why is the issue closed as "completed" instead of as "not planned"?