Skip to content

Commit

Permalink
chore(enterprise): Deprecate the enterprise feature (#20437)
Browse files Browse the repository at this point in the history
* chore(enterprise): Deprecate the `enterprise` feature

* Fix removal version

* Change warning wording

* Fix markdown
  • Loading branch information
bruceg committed May 6, 2024
1 parent 04a6b55 commit 79a2294
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions changelog.d/20437-enterprise.deprecation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The `enterprise` feature has been deprecated and will be removed in a future
version.
2 changes: 2 additions & 0 deletions docs/DEPRECATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ For example:
## To be migrated

## To be removed

- v0.39.0 enterprise_feature The `enterprise` feature has been deprecated and will be removed.
6 changes: 4 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,11 @@ fn build_enterprise(
config: &mut Config,
config_paths: Vec<ConfigPath>,
) -> Result<Option<EnterpriseReporter<BoxFuture<'static, ()>>>, ExitCode> {
use crate::ENTERPRISE_ENABLED;
if config.enterprise.is_some() {
warn!("DEPRECATED: The `enterprise` feature has been deprecated and will be removed in the next release.");
}

ENTERPRISE_ENABLED
crate::ENTERPRISE_ENABLED
.set(
config
.enterprise
Expand Down

0 comments on commit 79a2294

Please sign in to comment.