Core and the app · crate
kinogaki-build-id
A fresh id each time the crate naming it is compiled.
- Repository
- Core and the app (kinogaki/studio-core)
- Folder
studio/core/build-id- Source
- 1 file, 25 lines
- Tests
- 0 files, 0 lines
What it is
A fresh id each time the crate naming it is compiled.
Cargo compiles a crate again exactly when something it is built from changed (its sources, a dependency, the compiler, the flags), and a procedural macro runs at every compile. So build_id! names one compile of the crate it is used in: kinogaki-shared names its build with it, every plugin records the build it was compiled against, and Studio refuses a plugin that records another.
Depends on
None.
Third-party
None.
Used by
| Crate | Repository | As | What it is |
|---|---|---|---|
kinogaki-shared | Core and the app | normal | The crates Studio and its plugins share, built once as a Rust dylib. |
Modules
One file: the crate root.
Public types and traits
Procedural macros build_id!
Besides these, 1 public function at module level.
