# The dice plugin: the first first-party WebAssembly plugin of NotesCraft. # # It lives in its own workspace on purpose: `cargo build` in this folder # produces a `wasm32-unknown-unknown` module and never touches the lock file # or the profile of the app. [workspace] [package] name = "notescraft-dice" description = "Dice roller for NotesCraft: the first first-party WebAssembly plugin" version = "0.1.0" edition = "2024" rust-version = "1.95" license = "MIT OR Apache-2.0" publish = false [lib] crate-type = ["cdylib"] path = "src/lib.rs" # A plugin is loaded by the host, so the module is small and never unwinds: # a panic in the guest is an abort, which the host reports as a trap. [profile.release] opt-level = "s" panic = "abort" lto = true codegen-units = 1 strip = true