[package] name = "slides-core" version = "0.1.0" edition = "2021" [lib] crate-type = ["cdylib", "rlib"] [dependencies] yrs = "=0.23.5" # The op batch and the view both cross the ABI as JSON. Pinned exact, # like yrs, so a build is the same build everywhere the lockfile goes. serde = { version = "=1.0.229", features = ["derive"] } serde_json = "=1.0.151" # Only used by the __getrandom_v03_custom hook in src/lib.rs, which is # itself cfg(target_arch = "wasm32") — the custom getrandom backend has no # role on native builds (tests, tooling), so keep the dependency scoped to # match instead of pulling it into every target unconditionally. [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = "=0.4.3" [profile.release] opt-level = "s" lto = true panic = "abort" [dev-dependencies] wasmi = "=0.32.3" wasmparser = "=0.258.0" # See vendor/README.md — this fixes a `getrandom`/`fastrand` feature # conflict that only manifests when overriding getrandom's backend to # avoid a wasm-bindgen (JS) import on wasm32-unknown-unknown. [patch.crates-io] fastrand = { path = "vendor/fastrand-2.5.0" }