[package] name = "docs-core" version = "0.1.0" edition = "2021" [lib] crate-type = ["cdylib", "rlib"] [dependencies] yrs = "=0.23.5" # 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] serde_json = "=1.0.151" 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" } # Shared with the native editor: see its README for the upstream deletion fixes. yrs = { path = "../native/vendor/yrs-0.23.5" }