Skip to content

Commit 79a2294

Browse files
authored
chore(enterprise): Deprecate the enterprise feature (#20437)
* chore(enterprise): Deprecate the `enterprise` feature * Fix removal version * Change warning wording * Fix markdown
1 parent 04a6b55 commit 79a2294

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The `enterprise` feature has been deprecated and will be removed in a future
2+
version.

docs/DEPRECATIONS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ For example:
1717
## To be migrated
1818

1919
## To be removed
20+
21+
- v0.39.0 enterprise_feature The `enterprise` feature has been deprecated and will be removed.

src/app.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,11 @@ fn build_enterprise(
539539
config: &mut Config,
540540
config_paths: Vec<ConfigPath>,
541541
) -> Result<Option<EnterpriseReporter<BoxFuture<'static, ()>>>, ExitCode> {
542-
use crate::ENTERPRISE_ENABLED;
542+
if config.enterprise.is_some() {
543+
warn!("DEPRECATED: The `enterprise` feature has been deprecated and will be removed in the next release.");
544+
}
543545

544-
ENTERPRISE_ENABLED
546+
crate::ENTERPRISE_ENABLED
545547
.set(
546548
config
547549
.enterprise

0 commit comments

Comments
 (0)