{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreieyyud4xqbolv5szhnm45rrd5dor6sjbmdrd676z6bxc4mtakvloe",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mgscrarhea42"
  },
  "path": "/t/optional-features-are-part-of-the-crate-the-project-should-say-so/24069#post_9",
  "publishedAt": "2026-03-11T15:32:45.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "You can add something like in your `Cargo.toml`\n\n\n    [dev-dependencies]\n    mycrate = { path = \".\", features = [\"stuff\", \"disabled\", \"by\", \"default\"] }\n\n\nand rust-analyzer picks those features. You'll probably need them enabled anyway if you want to add any tests.\n\nAlso configuration for rust-analyzer can go not only into editor specific files but also into `rust-analyzer.toml` sitting in a project root - doc mentions that the support is somewhat spotty though. I imagine they would take a pull request adding some support that is missing.",
  "title": "Optional features are part of the crate — the project should say so"
}