Skip to content

Rework macros - #1168

Merged
HaoboGu merged 3 commits into
mainfrom
feat/macro
Sep 30, 2026
Merged

HaoboGu merged 3 commits into
mainfrom
feat/macro

Conversation

@HaoboGu

@HaoboGu HaoboGu commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Closes #923

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Deploying rmk-rs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 667e5bb
Status: ✅  Deploy successful!
Preview URL: https://47326338.rmk-4a2.pages.dev
Branch Preview URL: https://feat-macro.rmk-4a2.pages.dev

View logs

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Size Report

Example main PR Diff .text .data .bss
use_config/nrf52832_ble 357.1 KiB 357.5 KiB +0.11% ⬆️ +2900 -144 -2352
use_config/nrf52840_ble 417.8 KiB 417.3 KiB -0.11% ⬇️ +2684 -144 -3024
use_config/nrf52840_ble_split (central) 489.7 KiB 489.6 KiB -0.01% ⬇️ +3256 -144 -3200
use_config/nrf52840_ble_split (peripheral) 310.7 KiB 311.1 KiB +0.11% ⬆️ +1752 -144 -1248
use_config/pi_pico_w_ble 664.4 KiB 663.6 KiB -0.11% ⬇️ +2212 0 -3028
use_config/rp2040 141.5 KiB 142.2 KiB +0.49% ⬆️ +2724 0 -2008
use_config/rp2040_split (central) 156.6 KiB 157.4 KiB +0.50% ⬆️ +2824 0 -2012
use_config/rp2040_split (peripheral) 27.9 KiB 27.9 KiB +0.06% ⬆️ +20 0 0
use_config/stm32f1 60.3 KiB 59.5 KiB -1.34% ⬇️ -676 0 -156
use_config/stm32h7 97.7 KiB 98.7 KiB +0.97% ⬆️ +864 0 +108
use_rust/nrf52832_ble 346.8 KiB 347.8 KiB +0.30% ⬆️ +3580 -144 -2352
use_rust/nrf52840_ble 413.4 KiB 412.8 KiB -0.14% ⬇️ +2568 -144 -3032
use_rust/nrf52840_ble_split (central) 488.9 KiB 489.8 KiB +0.18% ⬆️ +4256 -144 -3192
use_rust/nrf52840_ble_split (peripheral) 302.5 KiB 302.6 KiB +0.01% ⬆️ +1440 -144 -1240
use_rust/pi_pico_w_ble 664.2 KiB 663.6 KiB -0.08% ⬇️ +2424 0 -3028
use_rust/rp2040 141.0 KiB 142.0 KiB +0.72% ⬆️ +3060 0 -2012
use_rust/rp2040_split (central) 155.8 KiB 156.6 KiB +0.47% ⬆️ +2772 0 -2008
use_rust/rp2040_split (peripheral) 28.3 KiB 28.3 KiB +0.02% ⬆️ +8 0 0
use_rust/stm32f1 59.8 KiB 59.0 KiB -1.30% ⬇️ -652 0 -148
use_rust/stm32h7 115.8 KiB 117.0 KiB +1.03% ⬆️ +3428 -192 -2012
use_config/nrf52832_ble — 357.1 KiB → 357.5 KiB (+0.11% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 327364	   8600	  30160	 366124	  5962c	rmk-nrf52832

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 324464	   8744	  32512	 365720	  59498	rmk-nrf52832

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +2.3% +85.5Ki  [ = ]       0    .debug_str
  +0.8% +15.0Ki  [ = ]       0    .debug_info
  +1.3% +3.69Ki  [ = ]       0    .debug_line
  +1.0% +3.00Ki  [ = ]       0    .strtab
  +0.8% +2.30Ki  +0.8% +2.30Ki    .text
  +1.6%    +684  [ = ]       0    .debug_frame
  +1.4%    +540  +1.4%    +540    .rodata
  +0.5%    +528  [ = ]       0    .symtab
  +0.3%    +152  [ = ]       0    .debug_aranges
  +0.1%    +112  [ = ]       0    .debug_ranges
 -10.2%      -6  [ = ]       0    [Unmapped]
  -1.0%      -8  [ = ]       0    .defmt
  -0.2%     -18  [ = ]       0    .debug_abbrev
  -1.6%    -144  -1.6%    -144    .data
  -0.1%    -635  [ = ]       0    .debug_loc
  [ = ]       0  -7.5% -2.30Ki    .bss
  +1.5%  +110Ki  +0.1%    +404    TOTAL
use_config/nrf52840_ble — 417.8 KiB → 417.3 KiB (-0.11% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 377388	   8628	  41344	 427360	  68560	rmk-nrf52840

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 374704	   8772	  44368	 427844	  68744	rmk-nrf52840

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.9% +80.8Ki  [ = ]       0    .debug_str
  +0.8% +15.7Ki  [ = ]       0    .debug_info
  +1.1% +3.55Ki  [ = ]       0    .debug_line
  +0.9% +3.02Ki  [ = ]       0    .strtab
  +0.6% +2.10Ki  +0.6% +2.10Ki    .text
  +0.3% +1.98Ki  [ = ]       0    .debug_loc
  +0.6% +1.28Ki  [ = ]       0    .debug_ranges
  +0.8%    +976  [ = ]       0    .symtab
  +1.9%    +852  [ = ]       0    .debug_frame
  +1.3%    +532  +1.3%    +532    .rodata
  +0.5%    +224  [ = ]       0    .debug_aranges
  -0.9%      -8  [ = ]       0    .defmt
 -21.5%     -14  [ = ]       0    [Unmapped]
  -0.7%     -66  [ = ]       0    .debug_abbrev
  -1.6%    -144  -1.6%    -144    .data
  [ = ]       0  -7.0% -2.95Ki    .bss
  +1.3%  +110Ki  -0.1%    -484    TOTAL
use_config/nrf52840_ble_split (central) — 489.7 KiB → 489.6 KiB (-0.01% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 445692	   8676	  47008	 501376	  7a680	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 442436	   8820	  50208	 501464	  7a6d8	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.8% +86.9Ki  [ = ]       0    .debug_str
  +0.6% +15.0Ki  [ = ]       0    .debug_info
  +0.6% +4.93Ki  [ = ]       0    .debug_loc
  +1.2% +4.80Ki  [ = ]       0    .strtab
  +1.1% +4.02Ki  [ = ]       0    .debug_line
  +0.7% +2.59Ki  +0.7% +2.59Ki    .text
  +0.8% +1.09Ki  [ = ]       0    .symtab
  +1.9%   +1004  [ = ]       0    .debug_frame
  +1.3%    +604  +1.3%    +604    .rodata
  +0.2%    +552  [ = ]       0    .debug_ranges
  +0.6%    +280  [ = ]       0    .debug_aranges
  -3.6%      -2  [ = ]       0    [Unmapped]
  -0.2%     -16  [ = ]       0    .debug_abbrev
  -1.6%    -144  -1.6%    -144    .data
  [ = ]       0  -6.5% -3.12Ki    .bss
  +1.2%  +121Ki  -0.0%     -88    TOTAL
use_config/nrf52840_ble_split (peripheral) — 310.7 KiB → 311.1 KiB (+0.11% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 286832	   8516	  23184	 318532	  4dc44	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 285080	   8660	  24432	 318172	  4dadc	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.5% +16.8Ki  [ = ]       0    .debug_str
  +1.0% +2.24Ki  [ = ]       0    .debug_line
  +0.7% +1.72Ki  +0.7% +1.72Ki    .text
  +0.5%    +712  [ = ]       0    .debug_ranges
  +1.2%    +372  [ = ]       0    .debug_frame
  +0.3%    +336  [ = ]       0    .symtab
  +0.1%    +239  [ = ]       0    .strtab
  +0.2%     +88  [ = ]       0    .debug_aranges
  +0.0%      +4  [ = ]       0    .debug_abbrev
  -0.0%      -8  -0.0%      -8    .rodata
 -17.3%     -13  [ = ]       0    [Unmapped]
  -0.0%     -70  [ = ]       0    .debug_loc
  -1.7%    -144  -1.7%    -144    .data
  [ = ]       0  -5.3% -1.22Ki    .bss
  -0.2% -3.04Ki  [ = ]       0    .debug_info
  +0.3% +19.2Ki  +0.1%    +360    TOTAL
use_config/pi_pico_w_ble — 664.4 KiB → 663.6 KiB (-0.11% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 628324	      0	  51228	 679552	  a5e80	rmk-pi-pico-w

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 626112	      0	  54256	 680368	  a61b0	rmk-pi-pico-w

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.9% +82.0Ki  [ = ]       0    .debug_str
  +0.8% +18.6Ki  [ = ]       0    .debug_info
  +1.6% +6.47Ki  [ = ]       0    .debug_line
  +0.8% +2.72Ki  [ = ]       0    .strtab
  +0.7% +2.16Ki  +0.7% +2.16Ki    .text
  +1.5%    +632  [ = ]       0    .debug_frame
  +0.5%    +400  [ = ]       0    .symtab
  +0.0%    +144  +0.0%    +144    .rodata
  +0.3%    +136  [ = ]       0    .debug_aranges
   +52%     +26  [ = ]       0    [Unmapped]
  -0.9%      -8  [ = ]       0    .defmt
  -0.1%     -10  [ = ]       0    .debug_abbrev
  -0.1%    -128  [ = ]       0    .debug_ranges
  -1.7%    -144  -1.7%    -144    .data
  [ = ]       0  -5.7% -2.96Ki    .bss
  -0.5% -5.83Ki  [ = ]       0    .debug_loc
  +1.1%  +107Ki  -0.1%    -816    TOTAL
use_config/rp2040 — 141.5 KiB → 142.2 KiB (+0.49% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 134468	      0	  11180	 145648	  238f0	rmk-rp2040

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 131744	      0	  13188	 144932	  23624	rmk-rp2040

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +4.4% +78.9Ki  [ = ]       0    .debug_str
  +1.9% +18.7Ki  [ = ]       0    .debug_info
  +3.6% +10.8Ki  [ = ]       0    .debug_loc
  +3.4% +5.51Ki  [ = ]       0    .debug_line
  +2.4% +2.67Ki  +2.4% +2.67Ki    .text
  +2.1% +2.48Ki  [ = ]       0    .strtab
  +1.0%    +840  [ = ]       0    .debug_ranges
  +3.7%    +620  [ = ]       0    .debug_frame
  +1.3%    +416  [ = ]       0    .symtab
  +1.1%    +180  +1.1%    +180    .rodata
  +0.8%    +136  [ = ]       0    .debug_aranges
  +1.0%     +80  [ = ]       0    .debug_abbrev
  -2.1%      -1  [ = ]       0    [Unmapped]
  -2.0%      -8  [ = ]       0    .defmt
 -42.9%    -192 -47.1%    -192    .data
  [ = ]       0 -16.5% -1.96Ki    .bss
  +3.3%  +121Ki  +0.5%    +716    TOTAL
use_config/rp2040_split (central) — 156.6 KiB → 157.4 KiB (+0.50% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 148932	      0	  12268	 161200	  275b0	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 146108	      0	  14280	 160388	  27284	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +3.6% +77.9Ki  [ = ]       0    .debug_str
  +1.6% +18.3Ki  [ = ]       0    .debug_info
  +1.5% +5.27Ki  [ = ]       0    .debug_loc
  +2.9% +5.15Ki  [ = ]       0    .debug_line
  +2.3% +2.77Ki  +2.3% +2.77Ki    .text
  +1.9% +2.51Ki  [ = ]       0    .strtab
  +1.5% +1.29Ki  [ = ]       0    .debug_ranges
  +3.5%    +656  [ = ]       0    .debug_frame
  +0.8%    +304  [ = ]       0    .symtab
  +0.9%    +176  +0.9%    +176    .rodata
  +0.8%    +144  [ = ]       0    .debug_aranges
  +1.0%     +80  [ = ]       0    .debug_abbrev
  -5.9%      -3  [ = ]       0    [Unmapped]
 -42.1%    -192 -46.2%    -192    .data
  [ = ]       0 -15.2% -1.96Ki    .bss
  +2.7%  +114Ki  +0.5%    +812    TOTAL
use_config/rp2040_split (peripheral) — 27.9 KiB → 27.9 KiB (+0.06% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  25584	     60	   2956	  28600	   6fb8	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  25564	     60	   2956	  28580	   6fa4	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.2% +4.58Ki  [ = ]       0    .debug_info
  +0.3% +2.83Ki  [ = ]       0    .debug_str
  +0.7%    +393  [ = ]       0    .debug_line
  +0.1%     +51  [ = ]       0    .debug_loc
  +0.1%     +20  +0.1%     +20    .text
   +35%     +18  [ = ]       0    [Unmapped]
  -0.3%     -15  [ = ]       0    .debug_abbrev
  -0.2%     -24  [ = ]       0    .debug_aranges
  -0.2%     -44  [ = ]       0    .strtab
  -0.3%     -56  [ = ]       0    .debug_ranges
  +0.5% +7.75Ki  +0.1%     +20    TOTAL
use_config/stm32f1 — 60.3 KiB → 59.5 KiB (-1.34% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  54384	     28	   6480	  60892	   eddc	rmk-stm32f1

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  55060	     28	   6636	  61724	   f11c	rmk-stm32f1

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
   +40%    +320   +42%    +320    .rodata
  +0.1%     +54  [ = ]       0    .strtab
  -1.5%      -1  [ = ]       0    [Unmapped]
  -0.2%     -20  [ = ]       0    .debug_frame
  -0.6%     -32  [ = ]       0    .debug_aranges
  -0.8%    -144  [ = ]       0    .symtab
  [ = ]       0  -2.4%    -156    .bss
  -3.6%    -202  [ = ]       0    .debug_abbrev
  -0.4%    -485  [ = ]       0    .debug_loc
  -2.3%    -960  [ = ]       0    .debug_ranges
  -1.8%    -996  -1.8%    -996    .text
  -2.2% -1.90Ki  [ = ]       0    .debug_line
  -0.4% -3.45Ki  [ = ]       0    .debug_str
  -0.7% -3.87Ki  [ = ]       0    .debug_info
  -0.6% -11.6Ki  -1.3%    -832    TOTAL
use_config/stm32h7 — 97.7 KiB → 98.7 KiB (+0.97% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  92300	    264	   8488	 101052	  18abc	rmk-stm32h7

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  91436	    264	   8380	 100080	  186f0	rmk-stm32h7

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +3.0% +59.6Ki  [ = ]       0    .debug_str
  +1.8% +17.0Ki  [ = ]       0    .debug_info
  +4.5% +7.40Ki  [ = ]       0    .debug_loc
  +4.2% +2.50Ki  [ = ]       0    .strtab
  +0.6%    +712  [ = ]       0    .debug_line
  +0.9%    +584  [ = ]       0    .debug_ranges
  +3.4%    +468  [ = ]       0    .debug_frame
  +3.5%    +464  +3.5%    +464    .rodata
  +1.8%    +464  [ = ]       0    .symtab
  +0.5%    +400  +0.5%    +400    .text
  +0.4%    +120  [ = ]       0    .debug_aranges
  [ = ]       0  +1.3%    +108    .bss
  +1.5%     +91  [ = ]       0    .debug_abbrev
  -1.6%      -1  [ = ]       0    [Unmapped]
  +2.6% +89.8Ki  +1.0%    +972    TOTAL
use_rust/nrf52832_ble — 346.8 KiB → 347.8 KiB (+0.30% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 317476	   8600	  30096	 356172	  56f4c	rmk-nrf52832

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 313896	   8744	  32448	 355088	  56b10	rmk-nrf52832

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +2.3% +85.0Ki  [ = ]       0    .debug_str
  +0.9% +15.8Ki  [ = ]       0    .debug_info
  +1.3% +3.67Ki  [ = ]       0    .debug_line
  +1.4% +3.47Ki  [ = ]       0    .strtab
  +1.2% +3.32Ki  +1.2% +3.32Ki    .text
  +1.4%    +576  [ = ]       0    .debug_frame
  +0.5%    +464  [ = ]       0    .symtab
  +0.2%    +440  [ = ]       0    .debug_ranges
  +0.0%    +219  [ = ]       0    .debug_loc
  +0.5%    +184  +0.5%    +184    .rodata
  +0.2%    +104  [ = ]       0    .debug_aranges
  -0.0%      -2  [ = ]       0    .debug_abbrev
 -19.4%     -13  [ = ]       0    [Unmapped]
  -1.6%    -144  -1.6%    -144    .data
  [ = ]       0  -7.5% -2.30Ki    .bss
  +1.5%  +113Ki  +0.3% +1.06Ki    TOTAL
use_rust/nrf52840_ble — 413.4 KiB → 412.8 KiB (-0.14% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 375596	   8636	  38432	 422664	  67308	rmk-nrf52840

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 373028	   8780	  41464	 423272	  67568	rmk-nrf52840

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +2.0% +81.3Ki  [ = ]       0    .debug_str
  +0.8% +16.3Ki  [ = ]       0    .debug_info
  +1.3% +4.07Ki  [ = ]       0    .debug_line
  +0.8% +2.80Ki  [ = ]       0    .strtab
  +0.7% +2.33Ki  +0.7% +2.33Ki    .text
  +1.0% +1.20Ki  [ = ]       0    .symtab
  +2.3% +1.03Ki  [ = ]       0    .debug_frame
  +0.2%    +528  [ = ]       0    .debug_ranges
  +0.7%    +328  [ = ]       0    .debug_aranges
  +0.4%    +180  +0.4%    +180    .rodata
  -0.9%      -8  [ = ]       0    .defmt
 -31.8%     -21  [ = ]       0    [Unmapped]
  -1.3%    -123  [ = ]       0    .debug_abbrev
  -1.6%    -144  -1.6%    -144    .data
  [ = ]       0  -7.5% -2.96Ki    .bss
  -0.4% -3.23Ki  [ = ]       0    .debug_loc
  +1.3%  +106Ki  -0.1%    -608    TOTAL
use_rust/nrf52840_ble_split (central) — 488.9 KiB → 489.8 KiB (+0.18% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 444416	   8676	  48440	 501532	  7a71c	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 440160	   8820	  51632	 500612	  7a384	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.6% +81.2Ki  [ = ]       0    .debug_str
  +0.8% +18.1Ki  [ = ]       0    .debug_info
  +1.5% +5.38Ki  [ = ]       0    .debug_line
  +1.0% +3.92Ki  +1.0% +3.92Ki    .text
  +0.9% +3.69Ki  [ = ]       0    .strtab
  +0.5% +1.16Ki  [ = ]       0    .debug_ranges
  +1.5%    +800  [ = ]       0    .debug_frame
  +0.5%    +800  [ = ]       0    .symtab
  +0.5%    +244  +0.5%    +244    .rodata
  +0.4%    +184  [ = ]       0    .debug_aranges
 -36.2%     -25  [ = ]       0    [Unmapped]
  -0.6%     -55  [ = ]       0    .debug_abbrev
  -1.6%    -144  -1.6%    -144    .data
  -0.2% -1.29Ki  [ = ]       0    .debug_loc
  [ = ]       0  -6.3% -3.12Ki    .bss
  +1.2%  +113Ki  +0.2%    +920    TOTAL
use_rust/nrf52840_ble_split (peripheral) — 302.5 KiB → 302.6 KiB (+0.01% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 278588	   8516	  22728	 309832	  4ba48	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 277148	   8660	  23968	 309776	  4ba10	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.5% +16.3Ki  [ = ]       0    .debug_str
  +1.0% +2.29Ki  [ = ]       0    .debug_line
  +0.6% +1.41Ki  +0.6% +1.41Ki    .text
  +0.3%    +856  [ = ]       0    .strtab
  +1.3%    +404  [ = ]       0    .debug_frame
  +0.4%    +368  [ = ]       0    .symtab
  +0.2%    +104  [ = ]       0    .debug_aranges
  -0.0%      -8  -0.0%      -8    .rodata
 -21.9%     -14  [ = ]       0    [Unmapped]
  -0.2%     -15  [ = ]       0    .debug_abbrev
  -0.1%     -80  [ = ]       0    .debug_ranges
  -1.7%    -144  -1.7%    -144    .data
  [ = ]       0  -5.4% -1.21Ki    .bss
  -0.1% -2.14Ki  [ = ]       0    .debug_info
  -0.7% -3.79Ki  [ = ]       0    .debug_loc
  +0.2% +15.5Ki  +0.0%     +56    TOTAL
use_rust/pi_pico_w_ble — 664.2 KiB → 663.6 KiB (-0.08% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 628580	      0	  50908	 679488	  a5e40	rmk-pi-pico-w

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 626156	      0	  53936	 680092	  a609c	rmk-pi-pico-w

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.9% +82.0Ki  [ = ]       0    .debug_str
  +0.8% +18.9Ki  [ = ]       0    .debug_info
  +1.6% +6.23Ki  [ = ]       0    .debug_line
  +0.7% +2.49Ki  [ = ]       0    .strtab
  +1.0% +2.41Ki  [ = ]       0    .debug_ranges
  +0.7% +2.37Ki  +0.7% +2.37Ki    .text
  +0.2% +1.75Ki  [ = ]       0    .debug_loc
  +1.5%    +632  [ = ]       0    .debug_frame
  +0.7%    +560  [ = ]       0    .symtab
  +0.0%    +144  +0.0%    +144    .rodata
  +0.3%    +136  [ = ]       0    .debug_aranges
   +11%      +8  [ = ]       0    [Unmapped]
  -0.9%      -8  [ = ]       0    .defmt
  -0.1%     -10  [ = ]       0    .debug_abbrev
  -1.7%    -144  -1.7%    -144    .data
  [ = ]       0  -5.7% -2.96Ki    .bss
  +1.2%  +117Ki  -0.1%    -604    TOTAL
use_rust/rp2040 — 141.0 KiB → 142.0 KiB (+0.72% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 134392	      0	  11012	 145404	  237fc	rmk-rp2040

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 131332	      0	  13024	 144356	  233e4	rmk-rp2040

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +4.4% +78.9Ki  [ = ]       0    .debug_str
  +1.9% +18.5Ki  [ = ]       0    .debug_info
  +2.3% +6.97Ki  [ = ]       0    .debug_loc
  +3.2% +5.21Ki  [ = ]       0    .debug_line
  +2.7% +3.00Ki  +2.7% +3.00Ki    .text
  +2.1% +2.40Ki  [ = ]       0    .strtab
  +3.0% +2.30Ki  [ = ]       0    .debug_ranges
  +3.9%    +648  [ = ]       0    .debug_frame
  +1.4%    +464  [ = ]       0    .symtab
  +1.1%    +180  +1.1%    +180    .rodata
  +0.9%    +152  [ = ]       0    .debug_aranges
  +1.0%     +80  [ = ]       0    .debug_abbrev
   +28%     +13  [ = ]       0    [Unmapped]
  -2.0%      -8  [ = ]       0    .defmt
 -42.9%    -192 -47.1%    -192    .data
  [ = ]       0 -16.8% -1.96Ki    .bss
  +3.3%  +118Ki  +0.7% +1.02Ki    TOTAL
use_rust/rp2040_split (central) — 155.8 KiB → 156.6 KiB (+0.47% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 148320	      0	  12012	 160332	  2724c	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 145548	      0	  14020	 159568	  26f50	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +3.7% +78.9Ki  [ = ]       0    .debug_str
  +1.6% +18.5Ki  [ = ]       0    .debug_info
  +2.1% +7.46Ki  [ = ]       0    .debug_loc
  +3.0% +5.34Ki  [ = ]       0    .debug_line
  +2.2% +2.72Ki  +2.2% +2.72Ki    .text
  +2.0% +2.57Ki  [ = ]       0    .strtab
  +0.8%    +728  [ = ]       0    .debug_ranges
  +3.6%    +656  [ = ]       0    .debug_frame
  +0.9%    +304  [ = ]       0    .symtab
  +0.9%    +180  +0.9%    +180    .rodata
  +0.8%    +144  [ = ]       0    .debug_aranges
  +1.0%     +80  [ = ]       0    .debug_abbrev
 -25.4%     -17  [ = ]       0    [Unmapped]
 -42.1%    -192 -46.2%    -192    .data
  [ = ]       0 -15.5% -1.96Ki    .bss
  +2.8%  +117Ki  +0.5%    +764    TOTAL
use_rust/rp2040_split (peripheral) — 28.3 KiB → 28.3 KiB (+0.02% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  25676	     60	   3220	  28956	   711c	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  25668	     60	   3220	  28948	   7114	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +1.2% +4.58Ki  [ = ]       0    .debug_info
  +0.3% +2.83Ki  [ = ]       0    .debug_str
  +0.7%    +385  [ = ]       0    .debug_line
  +0.1%     +87  [ = ]       0    .debug_loc
  +0.0%      +8  +0.0%      +8    .text
  -4.5%      -2  [ = ]       0    [Unmapped]
  -0.3%     -15  [ = ]       0    .debug_abbrev
  -0.2%     -24  [ = ]       0    .debug_aranges
  -0.2%     -44  [ = ]       0    .strtab
  -0.3%     -48  [ = ]       0    .debug_ranges
  +0.5% +7.75Ki  +0.0%      +8    TOTAL
use_rust/stm32f1 — 59.8 KiB → 59.0 KiB (-1.30% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  53968	     28	   6408	  60404	   ebf4	rmk-stm32f1

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  54620	     28	   6556	  61204	   ef14	rmk-stm32f1

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
   +43%    +320   +46%    +320    .rodata
  +0.1%     +49  [ = ]       0    .strtab
   +30%     +16  [ = ]       0    [Unmapped]
  -0.0%      -4  [ = ]       0    .debug_frame
  -0.6%     -24  [ = ]       0    .debug_aranges
  [ = ]       0  -2.3%    -148    .bss
  -3.7%    -202  [ = ]       0    .debug_abbrev
  -0.2%    -241  [ = ]       0    .debug_loc
  -1.5%    -272  [ = ]       0    .symtab
  -1.2%    -480  [ = ]       0    .debug_ranges
  -1.8%    -972  -1.8%    -972    .text
  -2.0% -1.67Ki  [ = ]       0    .debug_line
  -0.4% -3.77Ki  [ = ]       0    .debug_str
  -0.7% -3.92Ki  [ = ]       0    .debug_info
  -0.6% -11.1Ki  -1.3%    -800    TOTAL
use_rust/stm32h7 — 115.8 KiB → 117.0 KiB (+1.03% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 108108	    400	  11280	 119788	  1d3ec	rmk-stm32h7

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 104680	    592	  13292	 118564	  1cf24	rmk-stm32h7

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +3.0% +77.4Ki  [ = ]       0    .debug_str
  +1.5% +17.9Ki  [ = ]       0    .debug_info
  +5.3% +12.7Ki  [ = ]       0    .debug_loc
  +3.4% +5.01Ki  [ = ]       0    .debug_line
  +5.2% +3.98Ki  [ = ]       0    .debug_ranges
  +3.3% +3.27Ki  +3.4% +3.27Ki    .text
  +2.6% +2.66Ki  [ = ]       0    .strtab
  +2.4%    +816  [ = ]       0    .symtab
  +3.9%    +736  [ = ]       0    .debug_frame
  +0.4%    +176  [ = ]       0    .debug_aranges
  +1.6%    +104  [ = ]       0    .debug_abbrev
  +2.0%     +80  +2.0%     +80    .rodata
  -9.8%      -6  [ = ]       0    [Unmapped]
 -30.4%    -192 -32.4%    -192    .data
  [ = ]       0 -16.4% -1.96Ki    .bss
  +2.8%  +124Ki  +1.0% +1.20Ki    TOTAL

@HaoboGu
HaoboGu force-pushed the feat/macro branch 3 times, most recently from 7be8744 to da330bd Compare September 28, 2026 09:50
@HaoboGu
HaoboGu marked this pull request as ready for review September 28, 2026 15:00
@HaoboGu
HaoboGu force-pushed the feat/macro branch 9 times, most recently from 933b063 to c1ba052 Compare September 29, 2026 13:09
Signed-off-by: Haobo Gu <haobogu@outlook.com>
@HaoboGu
HaoboGu force-pushed the feat/macro branch 5 times, most recently from bb30230 to 88385f9 Compare September 30, 2026 11:31
Signed-off-by: Haobo Gu <haobogu@outlook.com>
Clippy denies `manual_is_multiple_of` under `-D warnings`, which failed
the CI check job on rmk-config.

Signed-off-by: Haobo Gu <haobogu@outlook.com>
@HaoboGu
HaoboGu merged commit 9607aed into main Sep 30, 2026
67 checks passed
@HaoboGu
HaoboGu deleted the feat/macro branch September 30, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redesign macro system: typed Action-based ops, Vial as compatibility view

1 participant