-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rust: add proc-macro
capabilities to QL tests
#19800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
299fe2e
d2a0588
214bbf4
03599b4
8bf171f
b29ad5b
80ef303
27eeaf2
75616de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{#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 = "2021" | ||
[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 = "2021" | ||
[lib] | ||
path = "../proc_macro.rs" | ||
proc_macro = true | ||
[dependencies] | ||
quote = "1.0.40" | ||
syn = { version = "2.0.100", features = ["full"] } | ||
{{/Macro}} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
Cargo.toml | ||
lib.rs | ||
target/ | ||
.proc_macro/ | ||
.lib/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
multiplePathResolutions | ||
| macro_expansion.rs:1:5:1:14 | proc_macro | file://:0:0:0:0 | Crate([email protected]) | | ||
| macro_expansion.rs:1:5:1:14 | proc_macro | proc_macro.rs:0:0:0:0 | Crate([email protected]) | |
Uh oh!
There was an error while loading. Please reload this page.