Skip to content

Require default-features=false for dependencies#1993

Merged
palfrey merged 2 commits intoTraceMachina:mainfrom
palfrey:require-default-features
Oct 18, 2025
Merged

Require default-features=false for dependencies#1993
palfrey merged 2 commits intoTraceMachina:mainfrom
palfrey:require-default-features

Conversation

@palfrey
Copy link
Member

@palfrey palfrey commented Oct 17, 2025

Description

We have a somewhat standard of requiring default-features=false and specifying the particular features needed from a crate to reduce the overall sprawl of dependencies. This wasn't enforced however, and we had a fair number of deps that did not use this.

By editing https://www.schemastore.org/cargo.json and applying it as the schema for Cargo.toml files however we can make that format a requirement, which this PR does.

Type of change

Please delete options that aren't relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

pre-commit mostly as we now run taplo validate to find these issues.

Checklist

  • Updated documentation if needed
  • Tests added/amended
  • bazel test //... passes locally
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

@palfrey palfrey force-pushed the require-default-features branch from 3978c39 to 1aaf293 Compare October 17, 2025 15:06
@palfrey palfrey force-pushed the require-default-features branch from 1aaf293 to 360b34b Compare October 17, 2025 15:15
@palfrey palfrey force-pushed the require-default-features branch from 360b34b to e3f0370 Compare October 17, 2025 16:08
@palfrey palfrey marked this pull request as ready for review October 17, 2025 16:42
Copy link
Collaborator

@MarcusSorealheis MarcusSorealheis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@palfrey palfrey merged commit 0146c34 into TraceMachina:main Oct 18, 2025
31 checks passed
@palfrey palfrey deleted the require-default-features branch October 18, 2025 06:48
MarcusSorealheis added a commit to MarcusSorealheis/nativelink that referenced this pull request Nov 3, 2025
Co-authored-by: Marcus Eagan <marcuseagan@gmail.com>
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