I have a git repository (not crates.io) which has different features, let's call them A and B, which are mutually exclusive - the two features expose structs and API of the same names, hence compiling both naively will result in conflicts and fail.
As a developer of a dependant package, I want to use both features.
I can use aliasing. It fails if I use the same git repository url, but it works if in Cargo.toml I use two different git repositories:
[dependencies]
my_package_A = {package = "my_package", git = "/first/url", features = ["A"]}
my_package_B = {package = "my_package", git = "/second/url", features = ["B"]}
I want to avoid forking my repository to a different url.
Is there a way to do that?