Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cargo.toml): add profile.*.strip to the schema #760

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions site/site/public/schemas/Cargo.toml.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,25 @@
}
}
},
"Strip": {
"title": "Strip symbols or debuginfo",
"description": "The strip option controls the [`-C strip` flag](https://doc.rust-lang.org/rustc/codegen-options/index.html#strip), which directs rustc to\nstrip either symbols or debuginfo from a binary",
"enum": ["none", "debuginfo", "symbols", true, false],
"x-taplo": {
"docs": {
"enumValues": [
"Do not strip anything.",
"Strip debuginfo. This retains symbols.",
"Strip all symbols. This is the most aggressive stripping mode.",
"Strip all symbols. This is the most aggressive stripping mode. Equivalent to `strip = \"symbols\"`.",
"Do not strip anything. Equivalent to `strip = \"none\"`."
]
},
"links": {
"key": "https://doc.rust-lang.org/cargo/reference/profiles.html#strip"
}
}
},
"Package": {
"title": "Package",
"description": "The only fields required by Cargo are [`name`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field) and\n[`version`](https://doc.rust-lang.org/cargo/reference/manifest.html#the-version-field). If publishing to a registry, the registry may\nrequire additional fields. See the notes below and [the publishing chapter](https://doc.rust-lang.org/cargo/reference/publishing.html) for requirements for publishing to [crates.io](https://crates.io/).",
Expand Down Expand Up @@ -962,6 +981,9 @@
"opt-level": {
"$ref": "#/definitions/OptLevel"
},
"strip": {
"$ref": "#/definitions/Strip"
},
"overflow-checks": {
"description": "The `overflow-checks` setting controls the [`-C overflow-checks` flag](https://doc.rust-lang.org/rustc/codegen-options/index.html#overflow-checks) which\ncontrols the behavior of [runtime integer overflow](https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow). When overflow-checks are\nenabled, a panic will occur on overflow.",
"type": "boolean",
Expand Down
Loading