Set up typst wasm plugin
This commit is contained in:
parent
49d6a2c022
commit
179d0653bb
10 changed files with 76 additions and 1 deletions
8
showbits-typst-plugin/src/lib.rs
Normal file
8
showbits-typst-plugin/src/lib.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use wasm_minimal_protocol::*;
|
||||
|
||||
initiate_protocol!();
|
||||
|
||||
#[wasm_func]
|
||||
pub fn debug_print(arg: &[u8]) -> Vec<u8> {
|
||||
format!("{arg:?}").into_bytes()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue