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
Copy file name to clipboardExpand all lines: docs/usage.md
+3-9Lines changed: 3 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,9 @@ provides various options and flags to tweak its behaviour: you can display a
9
9
detailed documentation with `--help`.
10
10
In particular, you can pretty-print the translated crate with both `--print-ullbc` and `--print-llbc`, depending on the Charon intermediate representation you wish to use.
11
11
12
-
If there is a `Charon.toml` file at the root of your project, `charon` will also take options from it.
13
-
The file supports the same options at the cli interface, except for the options that relate to
14
-
input/output like `--print-llbc`. Example `Charon.toml`:
15
-
```toml
16
-
[charon]
17
-
extract_opaque_bodies = true
18
-
[rustc]
19
-
flags = ["--cfg", "abc"]
20
-
```
12
+
Charon supports per-crate configuration via the `[package.metadata.charon]` section in `Cargo.toml`.
13
+
The exact list can be found by looking at `src/bin/charon/toml_config.rs`.
14
+
If an option is set both as a CLI flag and as a toml value and we can't merge them, the CLI flag wins.
21
15
22
16
**Remark**: because Charon is compiled with Rust nightly (this is a requirement to implement a rustc
23
17
driver), it will build your crate with Rust nightly. You can find the nightly version pinned for
0 commit comments