-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
670: Implement `Cross.toml` deserialization using `serde` r=Emilgardis a=mntns This PR implements the deserialization of the `Cross.toml` config using `serde`. It can therefore be seen as some preliminary work on the issues #657, #664, and is related to #532 on #624. I added some basic documentation as module-level documentation, although I'm not sure whether this is the best place for that. Ideally it should be documentated in the `README.md` at some point. Furthermore, `CrossToml` lives in its own module, but a more suitable place might be the `config` module. Co-authored-by: Niklas Kunz <[email protected]>
- Loading branch information
Showing
8 changed files
with
305 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
The `cross` configuration in the `Cross.toml` file, can contain the following elements: | ||
|
||
# `build` | ||
The `build` key allows you to set global variables, e.g.: | ||
|
||
```toml | ||
[build] | ||
xargo = true | ||
``` | ||
|
||
# `build.env` | ||
With the `build.env` key you can globally set volumes that should be mounted | ||
in the Docker container or environment variables that should be passed through. | ||
For example: | ||
|
||
```toml | ||
[build.env] | ||
volumes = ["VOL1_ARG", "VOL2_ARG"] | ||
passthrough = ["IMPORTANT_ENV_VARIABLES"] | ||
``` | ||
|
||
# `target.TARGET` | ||
The `target` key allows you to specify parameters for specific compilation targets. | ||
|
||
```toml | ||
[target.aarch64-unknown-linux-gnu] | ||
volumes = ["VOL1_ARG", "VOL2_ARG"] | ||
passthrough = ["VAR1", "VAR2"] | ||
xargo = false | ||
image = "test-image" | ||
runner = "custom-runner" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.