near / borsh-rs

Rust implementation of Binary Object Representation Serializer for Hashing
https://borsh.io/
Apache License 2.0
299 stars 65 forks source link

Enable `derive` when `schema` feature is enabled #208

Closed mina86 closed 1 year ago

mina86 commented 1 year ago

Currently, enabling schema without enabling derive feature causes a compilation error. The error describes the solution which is great but it raises the question that if the code knows how to solve the problem why doesn’t it do it automatically? This feels user-hostile.

Change the features such that schema enables derive eliminating that error condition.

dj8yfo commented 1 year ago

Has been handled in #205