Core and the app · crate

kinogaki-build-id

Coreproc-macro

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
depends onused by tests alonedependencies for tests alone are listed below, not drawn

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

CrateRepositoryAsWhat it is
kinogaki-sharedCore and the appnormalThe 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.