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
To run the main codegen process, use the following command:
19
19
20
20
```bash
21
-
cargo +nightly-2024-11-05 bevy-api-gen generate
21
+
cargo +nightly-2024-01-24 bevy-api-gen generate
22
22
```
23
23
24
-
This will perform all parts of the process and generate meta as well as .rs files for each crate in your workspace in your `/target/plugin-nightly-2024-11-05/bevy_api_gen` directory
24
+
This will perform all parts of the process and generate meta as well as .rs files for each crate in your workspace in your `/target/plugin-nightly-2024-01-24/bevy_api_gen` directory
25
25
26
26
## Collect
27
27
28
28
After generating all the files, you can 'collect' them in a mod.rs file like so:
29
29
30
30
```bash
31
-
cargo +nightly-2024-11-05 bevy-api-gen collect
31
+
cargo +nightly-2024-01-24 bevy-api-gen collect
32
32
```
33
33
34
34
## List Types
35
35
36
36
To see a list of all `Reflect` implementing types in your workspace run:
Copy file name to clipboardExpand all lines: crates/bevy_api_gen/src/meta.rs
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,28 @@ impl MetaLoader {
66
66
self.meta_for_retry(crate_name,3)
67
67
}
68
68
69
+
/// Searches the given meta sources in order for the provided DefPathHash, once a meta file containing this hash is found
70
+
/// the search stops and returns true, if no meta file is found containing the hash, false is returned
71
+
///
72
+
/// if a curr_source argument is provided, the search will skip this source as it is assumed that the current crate is still being compiled and not meta file for it exists yet
None => returnfalse,// TODO: is it possible we get false negatives here ? perhaps due to parallel compilation ? or possibly because of dependency order
0 commit comments