{
  "id": "rust-cargo-features-table",
  "kind": "table",
  "slug": "rust-cargo-features",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/rust-cargo-features/",
  "title": "Cargo package features",
  "columns": [
    "name",
    "kind",
    "detail"
  ],
  "rows": [
    {
      "name": "[features]",
      "kind": "manifest",
      "detail": "Features are defined in the [features] table of Cargo.toml."
    },
    {
      "name": "--features",
      "kind": "cli",
      "detail": "Package features can be enabled on the command line with --features."
    },
    {
      "name": "feature list",
      "kind": "contents",
      "detail": "A feature lists other features or optional dependencies it enables."
    },
    {
      "name": "default",
      "kind": "feature",
      "detail": "The default feature is enabled when the package is built."
    }
  ],
  "related_slugs": [
    "rust-cargo-new-project",
    "rust-packages-crates-modules",
    "rust-cargo-build-scripts",
    "rust-cargo-test-options"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT OR Apache-2.0 (The Cargo Book); MIT OR Apache-2.0 (rust-lang/cargo (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "week-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}
