Commit 44245be
committed
Expose crate as ::rustapi_rs; update tests
Allow proc-macro expansions to reference this crate via an absolute path by adding `extern crate self as rustapi_rs` and using `::rustapi_rs` when `FoundCrate::Itself` is detected in the macro. This ensures generated code also works in examples/benches inside the rustapi-rs package. Also update the CLI test helper to use `assert_cmd::cargo::cargo_bin_cmd!` instead of `Command::cargo_bin`.1 parent 7d551c2 commit 44245be
File tree
3 files changed
+7
-2
lines changed- crates
- cargo-rustapi/tests
- rustapi-macros/src
- rustapi-rs/src
3 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
0 commit comments