3 Commits

Author SHA1 Message Date
e1616710aa oops 2025-07-02 15:38:54 +02:00
def3f4040f Delete .cargo/config.toml 2025-06-18 00:07:46 +02:00
8e3b1d799f Update README.org 2025-06-17 18:10:42 +02:00
4 changed files with 7 additions and 7 deletions

View File

@ -1,2 +0,0 @@
[target.wasm32-unknown-unknown]
rustflags = ['--cfg', 'getrandom_backend="wasm_js"']

4
Cargo.lock generated
View File

@ -242,8 +242,8 @@ dependencies = [
[[package]] [[package]]
name = "graphemy" name = "graphemy"
version = "0.4.0" version = "0.5.0"
source = "git+https://codeberg.org/zhuriel/graphemy?branch=master#fcc5afb41fc24f18753779c9b08a416f9bcc5e6b" source = "git+https://codeberg.org/zhuriel/graphemy?tag=v0.5.0#071ad35f4bfada64ec65ffad47e9f7fbe01ca714"
dependencies = [ dependencies = [
"bigdecimal", "bigdecimal",
"glam", "glam",

View File

@ -7,7 +7,7 @@ edition = "2021"
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
graphemy = { git = "https://codeberg.org/zhuriel/graphemy", branch = 'master' } graphemy = { git = "https://codeberg.org/zhuriel/graphemy", tag = 'v0.5.0' }
serde = "1.0" serde = "1.0"
serde_json = "1.0.140" serde_json = "1.0.140"
wasm-minimal-protocol = "0.1.0" wasm-minimal-protocol = "0.1.0"

View File

@ -10,10 +10,12 @@ Dependencies
Run ~build.sh~. Run ~build.sh~.
** Installation ** Installation
Build or download a relase.
*** As a typst package *** As a typst package
The =typst= directory contains the typst package files that you can copy to your local package repository. See the [[https://github.com/typst/packages/blob/main/README.md#local-packages][typst package documentation]] for more information. The =typst= directort of the repository or the released archive contains the typst package files that you can copy to your local package repository. See the [[https://github.com/typst/packages/blob/main/README.md#local-packages][typst package documentation]] for more information.
*** As a standalone typst file *** As a standalone typst file
Copy =typst/graphemy_typst.wasm= and =typst/graphemy.typ= to your project directory. (this is the method that will be used in the rest of this document.) Copy =graphemy_typst.wasm= and =graphemy.typ= to your project directory. (this is the method that will be used in the rest of this document.)
** Usage ** Usage
Import the ~load-gmy~ function from the package Import the ~load-gmy~ function from the package
#+begin_src typst #+begin_src typst