Skip to content

serde properties of Config should be under a feature gate along with Toml serde impl #308

Closed

Description

@vasilakisfil

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

  1. jxs commented on Jan 25, 2024

    @jxs
    Member

    Hi, yeah makes sense, would you like to submit a PR addressing this?
    Thanks!

  2. added 2 commits that reference this issue on Jan 29, 2024
    a365bca
    f159779
  3. vasilakisfil commented on Jan 29, 2024

    @vasilakisfil
    ContributorAuthor

    @jxs take a look at #310

  4. added a commit that references this issue on Feb 15, 2024
    d4e9449
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions