Skip to content

Why bb8-redis can't support redis features?  #146

@Cheban1996

Description

@Cheban1996

I want use redis script but for bb8-redis features is disable default-features = false
How i can enabled them?

Activity

djc

djc commented on Dec 26, 2022

@djc
Owner

By depending on redis directly in your downstream crate and enabling the features there. If you want I'd welcome a PR that adds forwarding features to bb8-redis.

henrydropped

henrydropped commented on Dec 8, 2023

@henrydropped

@djc

I'm using bb8 and would like to fix this, but I can really use a hand.

  1. What does it mean by depending on redis directly on your downstream crate? Does it mean to have both bb8 and redis-rs? If so, could you please elaborate more on how to connect them? I tried but the error is too much for me.
  2. I understand the term forwarding features, but still have no idea how to implement after browsing round. Best I could find is having local patches, which is also what I have been doing, so could you please provide some links/guide?

Thank you!

djc

djc commented on Dec 11, 2023

@djc
Owner
  1. Yes, you'd have dependencies for both. Have to make sure they're using the same version, though.
  2. I meant sending a PR that adds lines like "foo" = ["redis/foo"] to the bb8-redis Cargo.toml.
linked a pull request that will close this issue on Dec 22, 2023
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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @djc@Cheban1996@henrydropped

      Issue actions

        Why bb8-redis can't support redis features? · Issue #146 · djc/bb8