You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to docs.rs we should offer that people can configure the build options for each package in the Cargo.toml via metadata subsection`.
[package]
//...
[package.metadata.unleash]
# Features to pass to Cargo (default: [])features = ["feature1", "feature2"]
# Whether to pass `--all-features` to Cargo (default: false)all-features = true# Whether to pass `--no-default-features` to Cargo (default: false)no-default-features = true# Target to test build on, used as the default landing page (default: "x86_64-unknown-linux-gnu")## Any target supported by rustup can be used.default-target = "x86_64-unknown-linux-gnu"# Targets to build (default: see below)## Any target supported by rustup can be used.## Default targets:# - x86_64-unknown-linux-gnu# - x86_64-apple-darwin# - x86_64-pc-windows-msvc# - i686-unknown-linux-gnu# - i686-pc-windows-msvc## Set this to `[]` to only build the default target.## If `default-target` is unset, the first element of `targets` is treated as the default target.# Otherwise, these `targets` are built in addition to the default target.# If both `default-target` and `targets` are unset,# all tier-one targets will be built and `x86_64-unknown-linux-gnu` will be used as the default target.targets = ["x86_64-apple-darwin", "x86_64-pc-windows-msvc"]
# Additional `RUSTFLAGS` to set (default: [])rustc-args = ["--example-rustc-arg"]
# Additional `RUSTDOCFLAGS` to set (default: [])rustdoc-args = ["--example-rustdoc-arg"]
It probably also makes sense to add these to the main workspace and inherit the section if not given. What do you think?
This discussion was converted from issue #20 on November 10, 2021 11:22.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Similar to
docs.rs
we should offer that people can configure the build options for each package in theCargo.toml
viametadata
subsection`.It probably also makes sense to add these to the main workspace and inherit the section if not given. What do you think?
Beta Was this translation helpful? Give feedback.
All reactions