[package]
edition = "2021"
rust-version = "1.86.0"
name = "boytacean"
version = "0.12.1"
authors = ["João Magalhães <joamag@gmail.com>"]
build = "build.rs"
exclude = [
"/frontends",
"/res/roms",
"/res/screens",
"/res/videos",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Game Boy emulator that is written in Rust."
readme = "README.md"
keywords = [
"gameboy",
"emulator",
"rust",
]
license = "Apache-2.0"
repository = "https://github.com/joamag/boytacean"
[package.metadata.docs.rs]
features = [
"wasm",
"gen-mock",
]
[features]
cpulog = []
debug = []
default = []
gen-mock = []
pedantic = []
python = [
"pyo3",
"boytacean-common/python",
]
simd = [
"boytacean-encoding/simd",
"boytacean-hashing/simd",
]
wasm = [
"wasm-bindgen",
"js-sys",
"boytacean-common/wasm",
]
[lib]
name = "boytacean"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "bosc-decompress"
path = "src/bin/bosc-decompress.rs"
[[bin]]
name = "bosc-thumbnail"
path = "src/bin/bosc-thumbnail.rs"
[[example]]
name = "bench_headless"
path = "examples/bench_headless.rs"
[[example]]
name = "bench_ppu_fast"
path = "examples/bench_ppu_fast.rs"
[[example]]
name = "simple"
path = "examples/simple.rs"
[[bench]]
name = "color"
path = "benches/color.rs"
harness = false
[[bench]]
name = "cpu"
path = "benches/cpu.rs"
harness = false
[[bench]]
name = "encoding"
path = "benches/encoding.rs"
harness = false
[[bench]]
name = "hashing"
path = "benches/hashing.rs"
harness = false
[dependencies.boytacean-common]
version = "0.12.1"
[dependencies.boytacean-encoding]
version = "0.12.1"
[dependencies.boytacean-hashing]
version = "0.12.1"
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.pyo3]
version = "0.25"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.criterion]
version = "0.5"
[build-dependencies.built]
version = "0.7"
features = ["cargo-lock"]
[build-dependencies.chrono]
version = "0.4"
[build-dependencies.regex]
version = "1"
[profile.bench]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
[profile.release-safe]
opt-level = 3
lto = true
debug = 0
inherits = "release"