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
`oj-verify` uses [root source files](https://docs.rs/cargo_metadata/0.12.0/cargo_metadata/struct.Target.html#structfield.src_path) of [binary targets](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#binaries) or [example targets](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#examples) (excluding targets which `crate-type` is specified) which have the [`PROBLEM`](#available-macro-definitions) attribute
66
+
67
+
You can customize the method to list depending files with `languages.rust.list_dependencies_backend` of `.verify-helper/config.toml`.
68
+
69
+
-`kind = "none"`
70
+
71
+
This is the default behavoir.
72
+
For each target, all `.rs` files in the target is treated as a block. The dependency relationship of files in each target are not analyzed.
73
+
74
+
```toml
75
+
[languages.rust.list_dependencies_backend]
76
+
kind = "none"
77
+
```
78
+
79
+
- For a file which is a root source file of a target, the file depends all `.rs` files in its target and all depending local crates.
80
+
- For a file which is not a root source file of any targets, the file depends all `.rs` files in its target.
81
+
82
+
- `kind = "cargo-udeps"`
83
+
84
+
This method is similar to `kind = "none"`, but uses [cargo-udeps](https://github.com/est31/cargo-udeps) in `$PATH` to narrow down dependencies. It computes the dependency relationship of files using the dependencies relationship between crates.
85
+
86
+
```toml
87
+
[languages.rust.list_dependencies_backend]
88
+
kind = "cargo-udeps"
89
+
toolchain = "nightly-yyyy-mm-dd"# defaults to "nightly"
90
+
```
91
+
62
92
### Settings for other languages
63
93
64
94
You can use languages other than above (e.g. AWK [examples/awk/circle.test.awk](https://github.com/online-judge-tools/verification-helper/blob/master/examples/awk/circle.test.awk)). Please write commands to compile and execute in the config file `.verify-helper/config.toml` (e.g. [.verify-helper/config.toml](https://github.com/kmyk/online-judge-verify-helper/blob/master/.verify-helper/config.toml)).
0 commit comments