Skip to content

Commit 52e9e98

Browse files
andholpil
authored andcommitted
docs(dependencies): add docs for DependencyManagerConfig struct fields 📝
1 parent 1dc2884 commit 52e9e98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compiler-cli/src/dependencies.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,15 @@ fn same_requirements(
646646
}
647647

648648
pub struct DependencyManagerConfig {
649+
/// In `Prod` mode, dev dependencies are not considered during the executed operation.
650+
/// Otherwise (`Dev` or `Lsp`), all dependencies are considered
649651
pub mode: Mode,
652+
// If `Yes` we read the manifest from disc. If not set then we ignore any
653+
// manifest which will result in the latest versions of the dependency
654+
// packages being resolved (not the locked ones).
650655
pub use_manifest: UseManifest,
656+
/// When set to `Yes`, the cli will check for major version updates of direct dependencies and
657+
/// print them to the console if the major versions are not upgradeable due to constraints.
651658
pub check_major_versions: CheckMajorVersions,
652659
}
653660

0 commit comments

Comments
 (0)