mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Rather than fixing the version separately for each test, we can just request to use a nightly in the `options.yml` file, with the specific version hard-coded in `qltest.rs`. We can update it if we need to. It's better to have a single nightly version for all tests that require it, in order to avoid downloading more versions than necessary.
43 lines
781 B
Plaintext
43 lines
781 B
Plaintext
{{#Workspace}}
|
|
[workspace]
|
|
resolver = "2"
|
|
members = [".lib", ".proc_macro"]
|
|
{{/Workspace}}
|
|
|
|
{{#Lib}}
|
|
{{^uses_proc_macro}}
|
|
[workspace]
|
|
{{/uses_proc_macro}}
|
|
[package]
|
|
name = "test"
|
|
version = "0.0.1"
|
|
edition = "{{ edition }}"
|
|
[lib]
|
|
path = "{{#uses_proc_macro}}../{{/uses_proc_macro}}lib.rs"
|
|
{{#uses_main}}
|
|
[[bin]]
|
|
name = "main"
|
|
path = "{{#uses_proc_macro}}../{{/uses_proc_macro}}main.rs"
|
|
{{/uses_main}}
|
|
[dependencies]
|
|
{{#uses_proc_macro}}
|
|
proc_macro = { path = "../.proc_macro" }
|
|
{{/uses_proc_macro}}
|
|
{{#dependencies}}
|
|
{{{.}}}
|
|
{{/dependencies}}
|
|
{{/Lib}}
|
|
|
|
{{#Macro}}
|
|
[package]
|
|
name = "proc_macro"
|
|
version = "0.0.1"
|
|
edition = "{{ edition }}"
|
|
[lib]
|
|
path = "../proc_macro.rs"
|
|
proc_macro = true
|
|
[dependencies]
|
|
quote = "1.0.40"
|
|
syn = { version = "2.0.100", features = ["full"] }
|
|
{{/Macro}}
|