oficina / slides Public

Clone
git clone https://amadan.net/oficina/slides

Plain git — no account needed to clone.

Download

Download this file

1[package]
2name = "slides-core"
3version = "0.1.0"
4edition = "2021"
5
6[lib]
7crate-type = ["cdylib", "rlib"]
8
9[dependencies]
10yrs = "=0.23.5"
11# The op batch and the view both cross the ABI as JSON. Pinned exact,
12# like yrs, so a build is the same build everywhere the lockfile goes.
13# float_roundtrip: every number reads back as the double that was sent, as
14# JSON.parse reads it; the default parser can land one bit off, and a scene's
15# version (scene.rs) is worked out by agents from the numbers they sent.
16serde = { version = "=1.0.229", features = ["derive"] }
17serde_json = { version = "=1.0.151", features = ["float_roundtrip"] }
18
19# Only used by the __getrandom_v03_custom hook in src/lib.rs, which is
20# itself cfg(target_arch = "wasm32") — the custom getrandom backend has no
21# role on native builds (tests, tooling), so keep the dependency scoped to
22# match instead of pulling it into every target unconditionally.
23[target.'cfg(target_arch = "wasm32")'.dependencies]
24getrandom = "=0.4.3"
25
26[profile.release]
27opt-level = "s"
28lto = true
29panic = "abort"
30
31[dev-dependencies]
32wasmi = "=0.32.3"
33wasmparser = "=0.258.0"
34
35# See vendor/README.md — this fixes a `getrandom`/`fastrand` feature
36# conflict that only manifests when overriding getrandom's backend to
37# avoid a wasm-bindgen (JS) import on wasm32-unknown-unknown.
38[patch.crates-io]
39fastrand = { path = "vendor/fastrand-2.5.0" }
40