Skip to content

Don't break semver compatibility when enabling a feature #54

@Hofer-Julian

Description

@Hofer-Julian

Looking at the code, configparser changes the function signature depending on whether the indexmap feature is introduced.

#[cfg(feature = "indexmap")]
use indexmap::IndexMap as Map;
#[cfg(not(feature = "indexmap"))]
use std::collections::HashMap as Map;

This shouldn't happen, according to the Cargo book: https://doc.rust-lang.org/cargo/reference/features.html#semver-compatibility

I think the proper way is to expose additional functions when the feature indexmap is enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions