nes-sim 0.1.1

A NES (Famicom) emulator core library written in pure Rust.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "nes-sim"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A NES (Famicom) emulator core library written in pure Rust."
homepage = "https://github.com/taiyuuki/nes-sim"
documentation = "https://docs.rs/nes-sim"
readme = "README.md"
keywords = [
    "nes",
    "game",
    "emulator",
    "nintendo",
]
license = "MIT"
repository = "https://github.com/taiyuuki/nes-sim"

[package.metadata.scripts]
export-rockman2-frame = 'cargo run --example export_frame -- "roms/mmc1/Rockman2(J).nes" "out/rockman2.ppm" 180'
export-ducktales-frame = 'cargo run --example export_frame -- "roms/uxrom/DuckTales(E).nes" "out/ducktales.ppm" 180'
export-supercontra-frame = 'cargo run --example export_frame -- "roms/mmc3/SuperContra(U).nes" "out/supercontra.ppm" 180'
hash-rockman2-frame = 'cargo run --example hash_frame -- "roms/mmc1/Rockman2(J).nes" 180 "out/rockman2-current.ppm"'
hash-ducktales-frame = 'cargo run --example hash_frame -- "roms/uxrom/DuckTales(E).nes" 180 "out/ducktales-current.ppm"'
hash-supercontra-frame = 'cargo run --example hash_frame -- "roms/mmc3/SuperContra(U).nes" 180 "out/supercontra-current.ppm"'
run-desktop = 'cargo run --release --features desktop --example desktop_frontend -- "roms/mmc1/Rockman2(J).nes"'
test-boot-frame-hashes = "cargo test boot_frame_matches_reference_hash -- --ignored"
test-all = "cargo test"
publish = "cargo publish"

[features]
default = []
desktop = [
    "dep:cpal",
    "dep:minifb",
]

[lib]
name = "nes_sim"
path = "src/lib.rs"

[[example]]
name = "analyze_audio"
path = "examples/analyze_audio.rs"

[[example]]
name = "analyze_state"
path = "examples/analyze_state.rs"

[[example]]
name = "desktop_frontend"
path = "examples/desktop_frontend.rs"
required-features = ["desktop"]

[[example]]
name = "export_frame"
path = "examples/export_frame.rs"

[[example]]
name = "hash_frame"
path = "examples/hash_frame.rs"

[dependencies.cpal]
version = "0.15"
optional = true

[dependencies.minifb]
version = "0.27"
optional = true

[profile.release]
lto = "fat"
codegen-units = 1