You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
serde properties of Config should be under a feature gate along with Toml serde impl #308
Apparently Config already allows you to config it programmatically. However, refinery-core (used by refinery) uses serde by default to support serialization and deserialization of this type.
This is unnecessary if you don't use refinery-cli and configure it programmatically (using the set_xxx methods).
On top of that, refinery makes the assumption that Toml will be used to deserialize/serialize this type, as toml dependency is used as well in refinery-core by default. Again it's not always the case, this is more related with refinery-cli.
I suggest declaring both toml and serde dependencies as optional, under a feature flag. They can appear under the default-features, if they are used so often. It will also help not breaking anyone's code.
Activity
jxs commentedon Jan 25, 2024
Hi, yeah makes sense, would you like to submit a PR addressing this?
Thanks!
Make `serde`, `toml` deps optional
Make `serde`, `toml` deps optional
vasilakisfil commentedon Jan 29, 2024
@jxs take a look at #310
Make `serde`, `toml` deps optional (#310)