# SPDX-License-Identifier: MIT [package] name = "play-2600" version = "0.1.0" edition = "2021" rust-version = "1.85" description = "The Atari 2600 in the browser: a2600-rust-fast behind wasm-bindgen, for play-2600.supertux.com" license = "MIT" publish = false [lib] name = "play_2600" crate-type = ["cdylib", "rlib"] [dependencies] # The board, unchanged (its library is `a2600`), from the checkout beside this one, at # a2600-rust-fast ac4b2ed (clean tree; d0246eb plus two repins of its Python references, # to a2600-python 4ad24f2 in 1f8cdcd and c410e47 by merging a2600-rust 4802263, no Rust # change, the same wasm), on 6502-rust 1a7e134 (129e742 plus a reference repin, no # src change; its own path dependency, ../6502-rust). scripts/build-wasm.sh refuses to # build from any other commit or a dirty tree. # The archived GitHub repository of the same name is a different, older board: never pin it. a2600-rust-fast = { path = "../a2600-rust-fast" } # Cartridges inside a .zip or .7z, read in memory (play-gb's choice of crates). zip = { version = "2", default-features = false, features = ["deflate"] } sevenz-rust2 = { version = "=0.24.0", default-features = false } # Rewind's snapshots, compressed in memory. flate2 = "1" # The headless check's checksum: a2600-bench's, so the wasm can be compared with the native board. crc32fast = "1" # Pinned exactly; the CLI that post-processes the .wasm must be the same version. wasm-bindgen = "=0.2.128" # Cargo uses the top crate's profile, not the board's. The board's own release profile is the # default one (its docs/not-kept.md: fat LTO was noise natively); play-gb's wasm profile is kept # here and was measured against the plain one in Node (docs/status.md, "Speed"). [profile.release] lto = "fat" codegen-units = 1 panic = "abort"