Skip to content

Conversation

@joshrotenberg
Copy link
Collaborator

Summary

  • Fixes the docs.rs issue where redisctl shows "not a library"
  • Simplifies workspace structure by removing unnecessary internal crate
  • Prevents redis-common from being published to crates.io

Changes

  • Moved redis-common modules (config, error, output) directly into redisctl/src
  • Updated all imports from redis_common:: to crate::
  • Added lib.rs to redisctl with documentation for docs.rs
  • Marked redis-common as publish=false (and later will be removed entirely)
  • Removed redis-common from workspace members
  • Added redis-common dependencies directly to redisctl's Cargo.toml

Motivation

The redis-common crate was only used by redisctl, not by the library crates (redis-cloud and redis-enterprise). Since it's an internal utility crate with no standalone value, it makes more sense to have these modules directly in redisctl. This also fixes the docs.rs issue where redisctl wasn't showing documentation because it was a binary-only crate.

Testing

  • ✅ All tests pass
  • ✅ cargo fmt passes
  • ✅ cargo clippy passes with no warnings
  • ✅ Binary builds and runs correctly
  • ✅ Feature-gated binaries (redis-cloud, redis-enterprise) build correctly

Closes #21

- Move redis-common modules (config, error, output) into redisctl/src
- Update all imports from redis_common:: to crate::
- Add lib.rs to redisctl with documentation for docs.rs
- Mark redis-common as publish=false since it's internal only
- Remove redis-common from workspace members
- Add dependencies from redis-common to redisctl Cargo.toml

This fixes the docs.rs issue where redisctl showed "not a library" and
simplifies the workspace structure since redis-common was only used by
the CLI, not the library crates.
@joshrotenberg joshrotenberg merged commit 1948f82 into main Aug 28, 2025
9 checks passed
@joshrotenberg joshrotenberg deleted the fix/redisctl-docs branch August 28, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants