You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: make enterprise feature additive per Rust conventions (#80)
## Changes
Refactored the `community` and `enterprise` features to follow Rust's
requirement that cfg flags must be additive.
- **Removed** `community` feature - community edition is now the default
- **Kept** `enterprise` feature as an additive flag that enables
enterprise-only APIs
- Updated build.rs, CI workflows, and documentation accordingly
## Motivation
Previously, `community` and `enterprise` were mutually exclusive (XOR
enforcement), which violates Rust's cfg additivity rules. Since
enterprise edition is a strict superset of community (adds encryption,
P2P replication, etc.), it should be modeled as an additive feature.
## Usage
```shell
cargo build # Community edition (default)
cargo build --features=enterprise # Enterprise edition
```
All existing `#[cfg(feature = "enterprise")]` guards remain unchanged -
they correctly gate enterprise-only functionality.
Co-authored-by: Claude <[email protected]>
0 commit comments