The JIT that runs makepad apps from source: lexer, front end, type checker, lazy borrow checker (Gandalf; `--check-first` opts in), codegen, session and warm/cold caches keyed by compiler stamp, provided crates bound late, startup images, live patching. User-facing name is `makepad run` (binary `makepad`, MAKEPAD_RUN_* env, ~/.makepad-run); libs/relax stays the internal library name. `makepad check` reports rustc-style diagnostics with rustc error codes and checks a whole workspace (`--workspace`). Runs on macOS, Linux, Windows and Android. makepad-remote: one tool schema for apps and the WM (app/1): grabs, captures, traces, frame profiles and tweaks. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
11 lines
438 B
Rust
11 lines
438 B
Rust
// raw identifiers in attributes are the plain names (rustc; tests/ui rfc-2151-raw-identifiers/attr.rs):
|
|
// `#[r#repr(r#C, r#packed)]` packs, `#[r#derive(r#Debug)]` derives
|
|
#[r#repr(r#C, r#packed)]
|
|
struct Packed { _a: bool, _b: u64 }
|
|
#[r#derive(r#Debug, r#Clone)]
|
|
struct T2(#[allow(dead_code)] u32);
|
|
#[test]
|
|
fn raw_attrs() {
|
|
assert_eq!(std::mem::size_of::<Packed>(), 9);
|
|
assert_eq!(format!("{:?}", T2(123).clone()), "T2(123)");
|
|
}
|