Skip to content

Rename rmk_protocol to rynk, add basic rynk protocol, remove postcard-rpc#847

Merged
HaoboGu merged 4 commits into
feat/rynk_protocolfrom
feat/rynk-pr1-protocol
May 13, 2026
Merged

Rename rmk_protocol to rynk, add basic rynk protocol, remove postcard-rpc#847
HaoboGu merged 4 commits into
feat/rynk_protocolfrom
feat/rynk-pr1-protocol

Conversation

@HaoboGu
Copy link
Copy Markdown
Owner

@HaoboGu HaoboGu commented May 13, 2026

No description provided.

HaoboGu added 4 commits May 12, 2026 21:27
Adds new rynk/ protocol module (buffer, cmd, header, fingerprint, mod)
with the new wire format. Migrates per-domain modules (combo, encoder,
fork, keymap, macro_data, morse, status, system) from the previous
rmk/ namespace, and removes the old endpoint/topic snapshot-based
layout. Also drops unused derives/imports across rmk-types/src/*.rs.

Signed-off-by: Haobo Gu <haobogu@outlook.com>
Signed-off-by: Haobo Gu <haobogu@outlook.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

Size Report

Example main PR Diff .text .data .bss
use_config/nrf52832_ble 372.2 KiB 372.2 KiB +0.00% ⬆️ +4 0 0
use_config/nrf52840_ble 421.9 KiB 421.9 KiB +0.00% ⬇️ -16 0 0
use_config/nrf52840_ble_split (central) 497.1 KiB 497.1 KiB +0.00% 0 0 0
use_config/nrf52840_ble_split (peripheral) 322.3 KiB 322.3 KiB +0.00% ⬆️ +8 0 0
use_config/pi_pico_w_ble 659.6 KiB 659.6 KiB +0.00% ⬇️ -40 0 0
use_config/rp2040 147.4 KiB 147.4 KiB +0.00% ⬇️ -4 0 0
use_config/rp2040_split (central) 160.5 KiB 160.5 KiB +0.00% ⬆️ +4 0 0
use_config/rp2040_split (peripheral) 27.4 KiB 27.4 KiB +0.01% ⬆️ +4 0 0
use_config/stm32f1 62.4 KiB 62.4 KiB +0.00% 0 0 0
use_config/stm32h7 99.8 KiB 99.8 KiB +0.00% 0 0 0
use_rust/nrf52832_ble 359.6 KiB 359.6 KiB +0.00% ⬇️ -8 0 0
use_rust/nrf52840_ble 418.0 KiB 418.0 KiB +0.00% ⬆️ +4 0 0
use_rust/nrf52840_ble_split (central) 506.8 KiB 506.8 KiB +0.00% ⬆️ +16 0 0
use_rust/nrf52840_ble_split (peripheral) 319.1 KiB 319.1 KiB +0.00% ⬆️ +4 0 0
use_rust/pi_pico_w_ble 660.0 KiB 660.0 KiB +0.00% ⬇️ -36 0 0
use_rust/rp2040 147.1 KiB 147.1 KiB +0.00% ⬆️ +4 0 0
use_rust/rp2040_split (central) 159.6 KiB 159.6 KiB +0.00% ⬇️ -4 0 0
use_rust/rp2040_split (peripheral) 27.8 KiB 27.8 KiB +0.01% ⬆️ +4 0 0
use_rust/stm32f1 62.0 KiB 62.0 KiB +0.00% 0 0 0
use_rust/stm32h7 121.0 KiB 121.0 KiB +0.00% 0 0 0
use_config/nrf52832_ble — 372.2 KiB → 372.2 KiB (+0.00% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 341576	   5256	  34312	 381144	  5d0d8	rmk-nrf52832

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 341572	   5256	  34312	 381140	  5d0d4	rmk-nrf52832

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +187  [ = ]       0    .debug_str
  +0.0%      +9  [ = ]       0    .strtab
  +0.0%      +4  +0.0%      +4    .text
  -5.7%      -4  [ = ]       0    [Unmapped]
  -0.7%     -53  [ = ]       0    .debug_abbrev
  -0.0%    -153  [ = ]       0    .debug_line
  -0.0%    -570  [ = ]       0    .debug_info
  -0.0%    -580  +0.0%      +4    TOTAL
use_config/nrf52840_ble — 421.9 KiB → 421.9 KiB (+0.00% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 375624	   5264	  51112	 432000	  69780	rmk-nrf52840

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 375640	   5264	  51112	 432016	  69790	rmk-nrf52840

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +2.74Ki  [ = ]       0    .debug_info
  +0.1% +1.04Ki  [ = ]       0    .debug_loc
  +0.1%    +307  [ = ]       0    .debug_line
  +0.0%    +207  [ = ]       0    .debug_str
  +0.4%     +36  [ = ]       0    .debug_abbrev
   +18%      +8  [ = ]       0    [Unmapped]
  -0.0%      -8  [ = ]       0    .debug_aranges
  -0.0%     -16  -0.0%     -16    .text
  -0.0%     -20  [ = ]       0    .debug_frame
  -0.0%     -32  [ = ]       0    .debug_ranges
  -0.0%     -32  [ = ]       0    .symtab
  -0.0%     -58  [ = ]       0    .strtab
  +0.1% +4.17Ki  -0.0%     -16    TOTAL
use_config/nrf52840_ble_split (central) — 497.1 KiB → 497.1 KiB (+0.00%)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 455564	   6588	  46928	 509080	  7c498	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 455564	   6588	  46928	 509080	  7c498	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +2.10Ki  [ = ]       0    .debug_info
  +0.1% +1.03Ki  [ = ]       0    .debug_loc
  +0.0%    +127  [ = ]       0    .debug_line
  +5.3%      +2  [ = ]       0    [Unmapped]
  -0.0%      -8  [ = ]       0    .debug_aranges
  -0.0%     -20  [ = ]       0    .debug_frame
  -0.0%     -21  [ = ]       0    .strtab
  -0.0%     -32  [ = ]       0    .debug_ranges
  -0.0%     -32  [ = ]       0    .symtab
  -1.1%     -95  [ = ]       0    .debug_abbrev
  -0.0%    -439  [ = ]       0    .debug_str
  +0.0% +2.62Ki  [ = ]       0    TOTAL
use_config/nrf52840_ble_split (peripheral) — 322.3 KiB → 322.3 KiB (+0.00% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 296576	   5920	  27512	 330008	  50918	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 296568	   5920	  27512	 330000	  50910	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +712  [ = ]       0    .debug_info
  +0.0%    +596  [ = ]       0    .debug_str
  +0.0%     +30  [ = ]       0    .debug_loc
  +0.0%      +8  +0.0%      +8    .text
  +0.0%      +5  [ = ]       0    .strtab
  +0.0%      +4  [ = ]       0    .debug_line
 -19.3%     -11  [ = ]       0    [Unmapped]
  +0.0% +1.31Ki  +0.0%      +8    TOTAL
use_config/pi_pico_w_ble — 659.6 KiB → 659.6 KiB (+0.00% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 619884	      0	  55508	 675392	  a4e40	rmk-pi-pico-w

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 619924	      0	  55508	 675432	  a4e68	rmk-pi-pico-w

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%     +12  [ = ]       0    .strtab
   +13%      +8  [ = ]       0    [Unmapped]
  -0.0%     -40  -0.0%     -40    .text
  -0.4%     -46  [ = ]       0    .debug_abbrev
  -0.0%    -104  [ = ]       0    .debug_ranges
  -0.0%    -168  [ = ]       0    .debug_line
  -0.0%    -620  [ = ]       0    .debug_info
  -0.1%    -814  [ = ]       0    .debug_loc
  -0.0% -1.23Ki  [ = ]       0    .debug_str
  -0.0% -2.96Ki  -0.0%     -40    TOTAL
use_config/rp2040 — 147.4 KiB → 147.4 KiB (+0.00% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 135588	      0	  15308	 150896	  24d70	rmk-rp2040

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 135592	      0	  15308	 150900	  24d74	rmk-rp2040

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +288  [ = ]       0    .debug_info
  +0.0%    +197  [ = ]       0    .debug_str
  +0.0%     +16  [ = ]       0    .strtab
  +0.0%     +12  [ = ]       0    .debug_loc
  +7.9%      +3  [ = ]       0    [Unmapped]
  -0.0%      -4  -0.0%      -4    .text
  -0.0%     -84  [ = ]       0    .debug_line
  +0.0%    +428  -0.0%      -4    TOTAL
use_config/rp2040_split (central) — 160.5 KiB → 160.5 KiB (+0.00% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 148224	      0	  16120	 164344	  281f8	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 148220	      0	  16120	 164340	  281f4	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +453  [ = ]       0    .debug_str
  +0.0%     +30  [ = ]       0    .debug_line
  +0.0%     +23  [ = ]       0    .debug_info
  +0.0%     +19  [ = ]       0    .strtab
  +0.0%      +4  +0.0%      +4    .text
  -2.0%      -1  [ = ]       0    [Unmapped]
  +0.0%    +528  +0.0%      +4    TOTAL
use_config/rp2040_split (peripheral) — 27.4 KiB → 27.4 KiB (+0.01% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  25260	     60	   2764	  28084	   6db4	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  25256	     60	   2764	  28080	   6db0	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%     +43  [ = ]       0    .debug_str
  +0.1%      +4  +0.1%      +4    .rodata
  -0.0%      -2  [ = ]       0    .debug_line
  -0.0%      -3  [ = ]       0    .strtab
 -13.0%      -6  [ = ]       0    [Unmapped]
  +0.0%     +36  +0.0%      +4    TOTAL
use_config/stm32f1 — 62.4 KiB → 62.4 KiB (+0.00%)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  56468	     28	   7440	  63936	   f9c0	rmk-stm32f1

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  56468	     28	   7440	  63936	   f9c0	rmk-stm32f1

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +196  [ = ]       0    .debug_info
  -0.0%     -28  [ = ]       0    .debug_line
  -0.0%    -128  [ = ]       0    .debug_str
  +0.0%     +40  [ = ]       0    TOTAL
use_config/stm32h7 — 99.8 KiB → 99.8 KiB (+0.00%)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  92264	    268	   9672	 102204	  18f3c	rmk-stm32h7

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  92264	    268	   9672	 102204	  18f3c	rmk-stm32h7

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%      +4  [ = ]       0    .debug_str
  -4.8%      -3  [ = ]       0    [Unmapped]
  -0.0%      -6  [ = ]       0    .debug_info
  -0.1%    -171  [ = ]       0    .debug_line
  -0.0%    -176  [ = ]       0    TOTAL
use_rust/nrf52832_ble — 359.6 KiB → 359.6 KiB (+0.00% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 329660	   5264	  33304	 368228	  59e64	rmk-nrf52832

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 329668	   5264	  33304	 368236	  59e6c	rmk-nrf52832

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +1.66Ki  [ = ]       0    .debug_info
  +0.2% +1.05Ki  [ = ]       0    .debug_loc
  +0.0%    +669  [ = ]       0    .debug_str
  +0.1%    +217  [ = ]       0    .debug_line
   +18%     +11  [ = ]       0    [Unmapped]
  -0.0%      -8  [ = ]       0    .debug_aranges
  -0.0%      -8  -0.0%      -8    .text
  -0.0%     -16  [ = ]       0    .debug_ranges
  -0.0%     -20  [ = ]       0    .debug_frame
  -0.0%     -32  [ = ]       0    .symtab
  -0.0%     -36  [ = ]       0    .strtab
  -0.9%     -76  [ = ]       0    .debug_abbrev
  +0.1% +3.39Ki  -0.0%      -8    TOTAL
use_rust/nrf52840_ble — 418.0 KiB → 418.0 KiB (+0.00% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 376148	   5264	  46592	 428004	  687e4	rmk-nrf52840

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 376144	   5264	  46592	 428000	  687e0	rmk-nrf52840

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1% +1.97Ki  [ = ]       0    .debug_info
  +0.1% +1.03Ki  [ = ]       0    .debug_loc
  +0.1%    +283  [ = ]       0    .debug_line
  +0.0%      +4  +0.0%      +4    .text
  -2.2%      -1  [ = ]       0    [Unmapped]
  -0.0%      -8  [ = ]       0    .debug_aranges
  -0.0%     -20  [ = ]       0    .debug_frame
  -0.0%     -29  [ = ]       0    .strtab
  -0.0%     -32  [ = ]       0    .debug_ranges
  -0.0%     -32  [ = ]       0    .symtab
  -0.0%    -532  [ = ]       0    .debug_str
  +0.0% +2.64Ki  +0.0%      +4    TOTAL
use_rust/nrf52840_ble_split (central) — 506.8 KiB → 506.8 KiB (+0.00% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 459744	   6588	  52664	 518996	  7eb54	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 459728	   6588	  52664	 518980	  7eb44	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%     +16  +0.0%     +16    .text
  +0.0%      +3  [ = ]       0    .strtab
 -23.5%     -16  [ = ]       0    [Unmapped]
  -0.3%     -22  [ = ]       0    .debug_abbrev
  -0.0%     -32  [ = ]       0    .debug_loc
  -0.0%    -180  [ = ]       0    .debug_line
  -0.0%    -926  [ = ]       0    .debug_info
  -0.0% -1.65Ki  [ = ]       0    .debug_str
  -0.0% -2.78Ki  +0.0%     +16    TOTAL
use_rust/nrf52840_ble_split (peripheral) — 319.1 KiB → 319.1 KiB (+0.00% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 295104	   5360	  26272	 326736	  4fc50	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 295100	   5360	  26272	 326732	  4fc4c	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +672  [ = ]       0    .debug_info
  +0.0%    +397  [ = ]       0    .debug_str
  +0.0%     +95  [ = ]       0    .debug_line
  +0.0%     +32  [ = ]       0    .debug_loc
  +0.0%      +4  +0.0%      +4    .text
  +0.0%      +3  [ = ]       0    .strtab
  -4.5%      -3  [ = ]       0    [Unmapped]
  +0.0% +1.17Ki  +0.0%      +4    TOTAL
use_rust/pi_pico_w_ble — 660.0 KiB → 660.0 KiB (+0.00% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 620184	      0	  55652	 675836	  a4ffc	rmk-pi-pico-w

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 620220	      0	  55652	 675872	  a5020	rmk-pi-pico-w

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +235  [ = ]       0    .debug_str
  +0.0%     +12  [ = ]       0    .strtab
  +7.7%      +4  [ = ]       0    [Unmapped]
  -0.2%     -19  [ = ]       0    .debug_abbrev
  -0.0%     -36  -0.0%     -36    .text
  -0.0%     -92  [ = ]       0    .debug_line
  -0.0%    -104  [ = ]       0    .debug_ranges
  -0.0%    -480  [ = ]       0    .debug_info
  -0.1%    -856  [ = ]       0    .debug_loc
  -0.0% -1.30Ki  -0.0%     -36    TOTAL
use_rust/rp2040 — 147.1 KiB → 147.1 KiB (+0.00% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 135412	      0	  15188	 150600	  24c48	rmk-rp2040

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 135408	      0	  15188	 150596	  24c44	rmk-rp2040

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +479  [ = ]       0    .debug_info
  +0.0%     +80  [ = ]       0    .debug_line
  +0.0%     +80  [ = ]       0    .debug_str
  +0.0%     +16  [ = ]       0    .strtab
  +0.0%      +4  +0.0%      +4    .text
  -7.8%      -5  [ = ]       0    [Unmapped]
  -0.0%     -10  [ = ]       0    .debug_loc
  +0.0%    +644  +0.0%      +4    TOTAL
use_rust/rp2040_split (central) — 159.6 KiB → 159.6 KiB (+0.00% ⬇️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 147552	      0	  15900	 163452	  27e7c	central

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 147556	      0	  15900	 163456	  27e80	central

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.1%    +886  [ = ]       0    .debug_str
  +0.0%     +32  [ = ]       0    .debug_loc
  +0.0%     +19  [ = ]       0    .strtab
   +14%      +6  [ = ]       0    [Unmapped]
  -0.0%      -4  -0.0%      -4    .text
  -0.0%     -47  [ = ]       0    .debug_line
  -0.0%    -256  [ = ]       0    .debug_info
  +0.0%    +636  -0.0%      -4    TOTAL
use_rust/rp2040_split (peripheral) — 27.8 KiB → 27.8 KiB (+0.01% ⬆️)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  25376	     60	   3028	  28464	   6f30	peripheral

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  25372	     60	   3028	  28460	   6f2c	peripheral

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%     +43  [ = ]       0    .debug_str
  +0.1%      +4  +0.1%      +4    .rodata
  -1.8%      -1  [ = ]       0    [Unmapped]
  -0.0%      -2  [ = ]       0    .debug_line
  -0.0%      -4  [ = ]       0    .strtab
  +0.0%     +40  +0.0%      +4    TOTAL
use_rust/stm32f1 — 62.0 KiB → 62.0 KiB (+0.00%)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
  56012	     28	   7416	  63456	   f7e0	rmk-stm32f1

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
  56012	     28	   7416	  63456	   f7e0	rmk-stm32f1

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%      +9  [ = ]       0    .debug_info
  +2.6%      +1  [ = ]       0    [Unmapped]
  -0.0%     -18  [ = ]       0    .debug_str
  -0.0%     -28  [ = ]       0    .debug_line
  -0.0%     -36  [ = ]       0    TOTAL
use_rust/stm32h7 — 121.0 KiB → 121.0 KiB (+0.00%)

cargo size (PR):

   text	   data	    bss	    dec	    hex	filename
 108124	    324	  15460	 123908	  1e404	rmk-stm32h7

cargo size (main):

   text	   data	    bss	    dec	    hex	filename
 108124	    324	  15460	 123908	  1e404	rmk-stm32h7

Bloaty diff (PR vs main):

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +0.0%    +316  [ = ]       0    .debug_str
  +0.0%    +117  [ = ]       0    .debug_info
  -0.0%     -12  [ = ]       0    .debug_loc
  -0.0%     -21  [ = ]       0    .debug_line
  +0.0%    +400  [ = ]       0    TOTAL

@HaoboGu HaoboGu changed the base branch from main to feat/rynk_protocol May 13, 2026 09:22
@HaoboGu HaoboGu merged commit 8252052 into feat/rynk_protocol May 13, 2026
45 checks passed
@HaoboGu HaoboGu mentioned this pull request May 13, 2026
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.

1 participant