Download this file
| 1 | [package] |
| 2 | name = "docs-core" |
| 3 | version = "0.1.0" |
| 4 | edition = "2021" |
| 5 | |
| 6 | [lib] |
| 7 | crate-type = ["cdylib", "rlib"] |
| 8 | |
| 9 | [dependencies] |
| 10 | yrs = "=0.23.5" |
| 11 | |
| 12 | # Only used by the __getrandom_v03_custom hook in src/lib.rs, which is |
| 13 | # itself cfg(target_arch = "wasm32") — the custom getrandom backend has no |
| 14 | # role on native builds (tests, tooling), so keep the dependency scoped to |
| 15 | # match instead of pulling it into every target unconditionally. |
| 16 | [target.'cfg(target_arch = "wasm32")'.dependencies] |
| 17 | getrandom = "=0.4.3" |
| 18 | |
| 19 | [profile.release] |
| 20 | opt-level = "s" |
| 21 | lto = true |
| 22 | panic = "abort" |
| 23 | |
| 24 | [dev-dependencies] |
| 25 | serde_json = "=1.0.151" |
| 26 | wasmi = "=0.32.3" |
| 27 | wasmparser = "=0.258.0" |
| 28 | |
| 29 | # See vendor/README.md — this fixes a `getrandom`/`fastrand` feature |
| 30 | # conflict that only manifests when overriding getrandom's backend to |
| 31 | # avoid a wasm-bindgen (JS) import on wasm32-unknown-unknown. |
| 32 | [patch.crates-io] |
| 33 | fastrand = { path = "vendor/fastrand-2.5.0" } |
| 34 | # Shared with the native editor: see its README for the upstream deletion fixes. |
| 35 | yrs = { path = "../native/vendor/yrs-0.23.5" } |
| 36 | |